xref: /original-bsd/usr.bin/tn3270/ascii/state.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1988, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)state.h	8.1 (Berkeley) 06/06/93
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