summaryrefslogtreecommitdiff
path: root/usr.bin/mg/macro.h
blob: 5c1f431805e6ab9ef7e83d05090cccd8b4a5f54b (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.6 2005/06/14 18:14:40 kjell 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 LINE	*maclhead;
extern LINE	*maclcur;