1 /* 2 * @(#)state.h 3.1 10/29/86 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