34static char sccsid[] =
"@(#)lexi.c 8.1 (Berkeley) 6/6/93";
123 0, 0, 0, 0, 0, 0, 0, 0,
124 0, 0, 0, 0, 0, 0, 0, 0,
125 0, 0, 0, 0, 0, 0, 0, 0,
126 0, 0, 0, 0, 0, 0, 0, 0,
127 0, 3, 0, 0, 1, 3, 3, 0,
128 0, 0, 3, 3, 0, 3, 0, 3,
129 1, 1, 1, 1, 1, 1, 1, 1,
130 1, 1, 0, 0, 3, 3, 3, 3,
131 0, 1, 1, 1, 1, 1, 1, 1,
132 1, 1, 1, 1, 1, 1, 1, 1,
133 1, 1, 1, 1, 1, 1, 1, 1,
134 1, 1, 1, 0, 0, 0, 3, 1,
135 0, 1, 1, 1, 1, 1, 1, 1,
136 1, 1, 1, 1, 1, 1, 1, 1,
137 1, 1, 1, 1, 1, 1, 1, 1,
138 1, 1, 1, 0, 3, 0, 3, 0
144 return (
strcmp(
e1, *(
const char *
const *)
e2));
182 if (
lastc ==
'*' &&
c ==
'/')
189 }
else if (
lastc ==
'/' &&
c ==
'/')
202 }
else if (paren_depth == 0) {
206 else if (
c ==
';' ||
c ==
',')
228 state->last_nl =
false;
231 state->col_1 =
false;
270 diag2(1,
"Unterminated literal");
344 state->last_u_d =
true;
367 state->last_u_d =
true;
372 state->last_u_d =
true;
383 if (
state->p_l_follow) {
393 if (
state->p_l_follow)
415 state->in_parameter_declaration == 0 &&
state->block_init == 0) {
419 state->in_parameter_declaration = 1;
428 else if (!
state->p_l_follow && !
state->block_init &&
435 state->last_u_d =
true;
440 state->last_u_d =
true;
456 state->last_nl =
true;
471 diag2(1,
"Unterminated literal");
544 state->last_nl =
true;
582 state->want_blank =
false;
589 state->block_init = 1;
626 if (!
state->last_u_d) {
memcpy(sums, checksumBaseOffsets, sizeof(checksumBaseOffsets))
void err(int eval, const char *fmt,...)
void diag2(int, const char *)
void lookahead_reset(void)
#define CHECK_SIZE_TOKEN(desired_size)
void add_typename(const char *key)
static int strcmp_type(const void *e1, const void *e2)
int lexi(struct parser_state *state)
void alloc_typenames(void)
static int is_func_definition(char *tp)