mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +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:
@@ -141,8 +141,7 @@ state_new (symbol_number_t accessing_symbol,
|
||||
{
|
||||
state_t *res;
|
||||
|
||||
if (nstates >= STATE_NUMBER_MAX)
|
||||
fatal (_("too many states (max %d)"), STATE_NUMBER_MAX);
|
||||
assert (nstates < STATE_NUMBER_MAX);
|
||||
|
||||
res = STATE_ALLOC (core_size);
|
||||
res->accessing_symbol = accessing_symbol;
|
||||
|
||||
Reference in New Issue
Block a user