mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user