[BACK]Return to key.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

File: [local] / src / usr.bin / mg / key.h (download)

Revision 1.2, Thu Apr 13 06:12:15 2000 UTC (24 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.1: +4 -4 lines

The start of KNF + -Wall.  The code has been run through indent but
needs hand fixup.  I stopped at keymap.c...

/* key.h: Insert file for mg 2 functions that need to reference key pressed */

#ifndef EXTERN
#define EXTERN	extern
#endif

#define MAXKEY	8			/* maximum number of prefix chars */

EXTERN struct {				/* the chacter sequence in a key  */
	int	k_count;		/* number of chars		  */
	KCHAR	k_chars[MAXKEY];	/* chars			  */
} key;
#undef	EXTERN