xref: /csrg-svn/usr.bin/tn3270/ascii/state.h (revision 31057)
1*31057Sminshall /*
2*31057Sminshall  *	@(#)state.h	3.1  10/29/86
3*31057Sminshall  */
4*31057Sminshall 
5*31057Sminshall #define	INCLUDED_STATE
6*31057Sminshall 
7*31057Sminshall /* this defines the state structure used by the key mapping routines */
8*31057Sminshall 
9*31057Sminshall #define state	struct State
10*31057Sminshall struct State {
11*31057Sminshall     int		match;		/* character to match */
12*31057Sminshall     int		result;		/* 3270 control code */
13*31057Sminshall     state	*next;		/* next entry in this same state */
14*31057Sminshall     state	*address;	/* if goto, where is next state */
15*31057Sminshall };
16