mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
Try to make the use of the eoftoken valid. Given that its value
is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 is used instead of > 0 where appropriate, (ii), depend upon nritems instead of the 0-sentinel. * src/gram.h, src/gram.c (nritems): New. Expected to be duplication of nitems, but for the time being... * src/reader.c (packgram): Assert nritems and nitems are equal. * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. * src/closure.c (print_closure, print_fderives): Likewise. * src/gram.c (ritem_print): Likewise. * src/print.c (print_core, print_grammar): Likewise. * src/print_graph.c: Likewise.
This commit is contained in:
16
ChangeLog
16
ChangeLog
@@ -1,3 +1,19 @@
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Try to make the use of the eoftoken valid. Given that its value
|
||||
is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
|
||||
is used instead of > 0 where appropriate, (ii), depend upon nritems
|
||||
instead of the 0-sentinel.
|
||||
|
||||
* src/gram.h, src/gram.c (nritems): New.
|
||||
Expected to be duplication of nitems, but for the time being...
|
||||
* src/reader.c (packgram): Assert nritems and nitems are equal.
|
||||
* src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
|
||||
* src/closure.c (print_closure, print_fderives): Likewise.
|
||||
* src/gram.c (ritem_print): Likewise.
|
||||
* src/print.c (print_core, print_grammar): Likewise.
|
||||
* src/print_graph.c: Likewise.
|
||||
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/main.c (main): If there are complains after grammar
|
||||
|
||||
Reference in New Issue
Block a user