148755Sbostic /*- 2*62321Sbostic * Copyright (c) 1988, 1993 3*62321Sbostic * The Regents of the University of California. All rights reserved. 433817Sbostic * 548755Sbostic * %sccs.include.redist.c% 633817Sbostic * 7*62321Sbostic * @(#)state.h 8.1 (Berkeley) 06/06/93 831057Sminshall */ 931057Sminshall 1031057Sminshall #define INCLUDED_STATE 1131057Sminshall 1231057Sminshall /* this defines the state structure used by the key mapping routines */ 1331057Sminshall 1431245Sminshall 1531245Sminshall #define STATE_NULL -1 /* Falls off edge */ 1631245Sminshall #define STATE_GOTO -2 /* GOTO internal state */ 1731245Sminshall 1831057Sminshall #define state struct State 1931057Sminshall struct State { 2031057Sminshall int match; /* character to match */ 2131057Sminshall int result; /* 3270 control code */ 2231057Sminshall state *next; /* next entry in this same state */ 2331057Sminshall state *address; /* if goto, where is next state */ 2431057Sminshall }; 25