summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: ee1c5abfa1fedd3dc2a39342191558da589c6d72 (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.3 2001/01/29 01:58:08 niklas 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