mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
* src/LR0.c (state_list_t, state_list_append): New.
(first_state, last_state): Now symbol_list_t. (this_state): Remove. (new_itemsets, append_states, save_reductions): Take a state_t as argument. (set_states, generate_states): Adjust. (save_shifts): Remove, replaced by... * src/state.h, src/state.c (state_shifts_set): New. (shifts): Rename as... (shifts_t): this. Adjust all dependencies. * src/state.h (state_t): Remove the `next' member.
This commit is contained in:
@@ -108,7 +108,7 @@ static void
|
||||
print_shifts (FILE *out, state_t *state)
|
||||
{
|
||||
int i;
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
|
||||
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||
@@ -145,7 +145,7 @@ static void
|
||||
print_gotos (FILE *out, state_t *state)
|
||||
{
|
||||
int i;
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
|
||||
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||
/* Skip token shifts. */;
|
||||
@@ -169,7 +169,7 @@ static void
|
||||
print_reductions (FILE *out, state_t *state)
|
||||
{
|
||||
int i;
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
reductions *redp = state->reductions;
|
||||
errs *errp = state->errs;
|
||||
int nodefault = 0;
|
||||
@@ -305,7 +305,7 @@ static void
|
||||
print_actions (FILE *out, state_t *state)
|
||||
{
|
||||
reductions *redp = state->reductions;
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
|
||||
if (shiftp->nshifts == 0 && redp->nreds == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user