1 /*- 2 * Copyright (c) 1988 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)state.h 4.2 (Berkeley) 04/26/91 8 */ 9 10 #define INCLUDED_STATE 11 12 /* this defines the state structure used by the key mapping routines */ 13 14 15 #define STATE_NULL -1 /* Falls off edge */ 16 #define STATE_GOTO -2 /* GOTO internal state */ 17 18 #define state struct State 19 struct State { 20 int match; /* character to match */ 21 int result; /* 3270 control code */ 22 state *next; /* next entry in this same state */ 23 state *address; /* if goto, where is next state */ 24 }; 25