summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: 52cc83d263b70eda479c6b193ece162787690be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*	$OpenBSD: macro.h,v 1.7 2005/11/18 20:56:53 deraadt Exp $	*/

/* This file is in the public domain. */

/* 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 struct line	*maclhead;
extern struct line	*maclcur;