* src/tables.c (tables_generate): Use free for pointers that

cannot be NULL, not XFREE.
(pack_vector): Use assert, not fatal, for bound violations.
* src/state.c (state_new): Likewise.
* src/reader.c (reader): Likewise.
* src/lalr.c (set_goto_map): Likewise.
* src/location.h (LOCATION_PRINT): If first_line is 0, just issue
the file name.
This commit is contained in:
Akim Demaille
2002-11-12 08:30:47 +00:00
parent 7ec2d4cd39
commit b1ae9233bc
6 changed files with 34 additions and 27 deletions

View File

@@ -539,10 +539,7 @@ reader (void)
grammar = p;
}
if (SYMBOL_NUMBER_MAX < nsyms)
fatal (_("too many symbols (tokens plus nonterminals); maximum %d"),
SYMBOL_NUMBER_MAX);
assert (nsyms <= SYMBOL_NUMBER_MAX);
assert (nsyms == ntokens + nvars);
xfclose (finput);