Lines Matching refs:state
95 /* state of #if processing */
101 IS_FALSE_MIDDLE, /* a false #elif after a pass state */
102 IS_TRUE_MIDDLE, /* a true #elif after a pass state */
103 IS_PASS_ELSE, /* an else after a pass state */
104 IS_FALSE_ELSE, /* an else after a true state */
117 /* state of comment parser */
132 /* state of preprocessor line parser */
197 static Comment_state incomment; /* comment parser state */
198 static Line_state linestate; /* #if line parser state */
199 static Ifstate ifstate[MAXDEPTH]; /* #if processor state */
200 static bool ignoring[MAXDEPTH]; /* ignore comments state */
229 static void state(Ifstate);
386 * A state transition function alters the global #if processing state
388 * processing state and the type of the current line.
392 * ignore state on a stack. In some complicated cases they have to
427 static void Strue (void) { drop(); ignoreoff(); state(IS_TRUE_PREFIX); }
428 static void Sfalse(void) { drop(); ignoreoff(); state(IS_FALSE_PREFIX); }
429 static void Selse (void) { drop(); state(IS_TRUE_ELSE); }
431 static void Pelif (void) { print(); ignoreoff(); state(IS_PASS_MIDDLE); }
432 static void Pelse (void) { print(); state(IS_PASS_ELSE); }
435 static void Dfalse(void) { drop(); ignoreoff(); state(IS_FALSE_TRAILER); }
436 static void Delif (void) { drop(); ignoreoff(); state(IS_FALSE_MIDDLE); }
437 static void Delse (void) { drop(); state(IS_FALSE_ELSE); }
454 static void Mtrue (void) { keywordedit("else"); state(IS_TRUE_MIDDLE); }
455 static void Melif (void) { keywordedit("endif"); state(IS_FALSE_TRAILER); }
456 static void Melse (void) { keywordedit("endif"); state(IS_FALSE_ELSE); }
544 state(Ifstate is)
581 * The driver for the state machine.
636 * parser state between calls in the global variable linestate, with
718 /* skipcomment normally changes the state, except
737 debug("parser line %d state %s comment %s line", linenum,
967 * the comment state in the global variable incomment, and we also adjust
969 * XXX: doesn't cope with the buffer splitting inside a state transition.