summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: abfc4765b2993094983b66469297bd71822163ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*	$OpenBSD: macro.h,v 1.4 2001/05/24 03:05:24 mickey Exp $	*/

/* 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