* 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:
Akim Demaille
2001-12-29 14:15:12 +00:00
parent 255ef6389e
commit 9e7f6bbd59
8 changed files with 22 additions and 12 deletions

View File

@@ -495,7 +495,7 @@ print_results (void)
only its kernel. Requires to run closure, which need memory
allocation/deallocation. */
if (trace_flag)
new_closure (nitems);
new_closure (nritems);
/* Storage for print_reductions. */
shiftset = XCALLOC (unsigned, tokensetsize);
lookaheadset = XCALLOC (unsigned, tokensetsize);