Commit | Line | Data |
---|---|---|
3170f000 | 1 | /* |
992de934 | 2 | * @(#)state.h 1.3 (Berkeley) %G% |
3170f000 GM |
3 | */ |
4 | ||
5 | #define INCLUDED_STATE | |
6 | ||
7 | /* this defines the state structure used by the key mapping routines */ | |
8 | ||
addfa672 GM |
9 | |
10 | #define STATE_NULL -1 /* Falls off edge */ | |
11 | #define STATE_GOTO -2 /* GOTO internal state */ | |
12 | ||
3170f000 GM |
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 | }; |