Lines Matching defs:state
9 void parse_error(struct parse_state *state, const char *fmt, ...)
15 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
26 int next_token(struct parse_state *state)
28 char *x = state->ptr;
31 if (state->nexttoken) {
32 int t = state->nexttoken;
33 state->nexttoken = 0;
40 state->ptr = x;
44 state->ptr = x;
54 state->ptr = x+1;
57 state->ptr = x;
66 state->ptr = x;
70 state->text = s = x;
82 state->nexttoken = T_NEWLINE;
91 state->ptr = x;
126 state->line++;