X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9a1af7e6b2ba4581b98f18a64db7431fcd8d5b52..4eaeafc1a7dbb983541dc6ea53f1e3d48617acd7:/src/reader.c diff --git a/src/reader.c b/src/reader.c index 3f7cb0e3..ae7e1d64 100644 --- a/src/reader.c +++ b/src/reader.c @@ -52,8 +52,6 @@ extern int failure; extern int expected_conflicts; extern char *token_buffer; -extern int atoi (); - extern void init_lex(); extern void tabinit(); extern void output_headers(); @@ -163,7 +161,7 @@ reader() errtoken->user_token_number = 256; /* Value specified by posix. */ /* construct a token that represents all undefined literal tokens. */ /* it is always token number 2. */ - getsym("$illegal.")->class = STOKEN; + getsym("$undefined.")->class = STOKEN; /* Read the declaration section. Copy %{ ... %} groups to ftable and fdefines file. Also notice any %token, %left, etc. found there. */ fprintf(ftable, "\n/* A Bison parser, made from %s", infile); @@ -1651,7 +1649,8 @@ packsymbols() token_translations = NEW2(max_user_token_number+1, short); /* initialize all entries for literal tokens to 2, - the internal token number for $illegal., which represents all invalid inputs. */ + the internal token number for $undefined., + which represents all invalid inputs. */ for (i = 0; i <= max_user_token_number; i++) token_translations[i] = 2; }