summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: 9ce7f892f67177e498ac77e56c309f37194bac3e (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