]> git.saurik.com Git - bison.git/commit
Now that states have a complete set of members, the linked list of
authorAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 09:06:48 +0000 (09:06 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 10 Dec 2001 09:06:48 +0000 (09:06 +0000)
commit49701457c2728ad7c77528205aa0bd1cb3379128
tree0581b2d804f9e35429e081c6aa6e334722242a82
parent0edad749970b23620ddf191bc5624227957bea01
Now that states have a complete set of members, the linked list of
reductions is useless: just fill directly the state's reductions
member.
* src/state.h (struct reductions): Remove member `number' and
`next'.
* src/LR0.c (first_reduction, last_reduction): Remove.
(save_reductions): Don't link the new reductions, store them in
this_state.
* src/lalr.c (set_state_table): No need to attach reductions to
states, it's already done.
* src/output.c (output_actions): No longer free the shifts, then
the reductions, then the states: free all the states and their
members.
ChangeLog
src/LR0.c
src/lalr.c
src/output.c
src/state.h