1 #ifndef INCLUDED_STATE_H_
2 #define INCLUDED_STATE_H_
3 
4 #include <stddef.h>
5 
6 int state_active();
7 
8 void state_init(void);          /* call once to initialze the state stack */
9 
10 void state_push(int active);    /* active: 1, passive: 0, push also takes the
11                                    previous state into account. */
12 
13 void state_pop(unsigned linenr);  /* restores the former state */
14 
15 void state_negate(unsigned linenr); /* negates the current state, assuming the
16                                    previous state was active */
17 
18 unsigned state_size(void);
19 void   state_eof(void);         /* generates error if there are open
20                                    #if(n)defs. Called by the scanner at EOF */
21 #endif
22