mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
Now that states have a complete set of members, the linked list of
shifts is useless: just fill directly the state's shifts member. * src/state.h (shifts): Remove the `next' member. * src/LR0.c (first_state, last_state): Remove. Adjust the callers. (augment_automaton): Don't look for the shifts that must be added a shift on EOF: it is those of the state we looked for! But now, since shifts are attached, it is no longer needed to looking merely by its id: its number.
This commit is contained in:
@@ -95,7 +95,6 @@
|
||||
|
||||
typedef struct shifts
|
||||
{
|
||||
struct shifts *next;
|
||||
short number;
|
||||
short nshifts;
|
||||
short shifts[1];
|
||||
|
||||
Reference in New Issue
Block a user