summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: 287c949900bc19978c8a81c3ae1a8d06a97e5f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* definitions for keyboard macros */

#ifndef EXTERN
#define EXTERN extern
#define INIT(i)
#endif

#define MAXMACRO 256		/* maximum functs in a macro */

EXTERN int inmacro INIT(FALSE);
EXTERN int macrodef INIT(FALSE);
EXTERN int macrocount INIT(0);

EXTERN union {
	PF	m_funct;
	int	m_count;	/* for count-prefix	 */
} macro[MAXMACRO];

EXTERN LINE    *maclhead INIT(NULL);
EXTERN LINE    *maclcur;

#undef	EXTERN
#undef	INIT