1*48755Sbostic /*- 2*48755Sbostic * Copyright (c) 1988 The Regents of the University of California. 333817Sbostic * All rights reserved. 433817Sbostic * 5*48755Sbostic * %sccs.include.redist.c% 633817Sbostic * 7*48755Sbostic * @(#)state.h 4.2 (Berkeley) 04/26/91 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