xref: /csrg-svn/usr.bin/tn3270/ascii/state.h (revision 31891)
1 /*
2  * @(#)state.h	1.3 (Berkeley) 07/17/87
3  */
4 
5 #define	INCLUDED_STATE
6 
7 /* this defines the state structure used by the key mapping routines */
8 
9 
10 #define	STATE_NULL	-1		/* Falls off edge */
11 #define	STATE_GOTO	-2		/* GOTO internal state */
12 
13 #define state	struct State
14 struct State {
15     int		match;		/* character to match */
16     int		result;		/* 3270 control code */
17     state	*next;		/* next entry in this same state */
18     state	*address;	/* if goto, where is next state */
19 };
20