Pristine Ack-5.5
[Ack-5.5.git] / mach / proto / cg / state.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: state.h,v 2.3 1994/06/24 13:24:24 ceriel Exp $ */
6
7 #define STONSTACK       /* if defined state is saved in stackframe */
8
9 typedef struct state {
10         struct state *st_next;                  /* for linked list */
11         int st_sh;                              /* stackheight */
12         token_t st_fs[MAXFSTACK];               /* fakestack */
13         int st_na;                              /* nallreg */
14         int st_ar[MAXALLREG];                   /* allreg[] */
15         token_p st_ct;                          /* curtoken */
16         result_t st_do[LONGESTPATTERN];         /* dollar[] */
17         struct reginfo st_mr[NREGS];            /* machregs[] */
18         int st_ne;                              /* nemlines */
19         struct emline st_el[MAXEMLINES];        /* emlines[] */
20         struct emline *st_em;                   /* emp */
21         struct emline *st_se;                   /* saveemp */
22         int st_tl;                              /* tokpatlen */
23         int st_ns;                              /* nstab */
24 } state_t,*state_p;
25
26 #ifndef STONSTACK
27 state_p savestatus();
28 #endif