summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: 7624be8728fa2df2efd18929fc45e569d664dff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$OpenBSD: macro.h,v 1.5 2004/02/01 22:26:41 vincent Exp $	*/

/* definitions for keyboard macros */

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

extern int inmacro;
extern int macrodef;
extern int macrocount;

union macrodef {
	PF	m_funct;
	int	m_count;	/* for count-prefix	 */
};

extern union macrodef macro[MAXMACRO];

extern LINE	*maclhead;
extern LINE	*maclcur;