mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
* src/LR0.c (generate_states): Use nritems, not nitems, nor using
the 0-sentinel. * src/gram.c (ritem_longest_rhs): Likewise. * src/reduce.c (nonterminals_reduce): Likewise. * src/print_graph.c (print_graph): Likewise. * src/output.c (output_rule_data): Likewise. * src/nullable.c (set_nullable): Likewise.
This commit is contained in:
@@ -57,8 +57,8 @@ set_nullable (void)
|
||||
Hence we must allocate room for useless nonterminals too. */
|
||||
shorts **rsets = XCALLOC (shorts *, nvars) - ntokens;
|
||||
/* This is said to be more elements than we actually use.
|
||||
Supposedly nitems - nrules is enough. But why take the risk? */
|
||||
shorts *relts = XCALLOC (shorts, nitems + nvars + 1);
|
||||
Supposedly NRITEMS - NRULES is enough. But why take the risk? */
|
||||
shorts *relts = XCALLOC (shorts, nritems + nvars + 1);
|
||||
|
||||
if (trace_flag)
|
||||
fprintf (stderr, "Entering set_nullable\n");
|
||||
|
||||
Reference in New Issue
Block a user