mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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:
@@ -139,7 +139,7 @@ log_resolution (rule_t *rule, int token,
|
||||
static void
|
||||
flush_shift (state_t *state, int token)
|
||||
{
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
int i;
|
||||
|
||||
bitset_reset (lookaheadset, token);
|
||||
@@ -249,7 +249,7 @@ static void
|
||||
set_conflicts (state_t *state)
|
||||
{
|
||||
int i;
|
||||
shifts *shiftp;
|
||||
shifts_t *shiftp;
|
||||
|
||||
if (state->consistent)
|
||||
return;
|
||||
@@ -308,7 +308,7 @@ count_sr_conflicts (state_t *state)
|
||||
{
|
||||
int i;
|
||||
int src_count = 0;
|
||||
shifts *shiftp = state->shifts;
|
||||
shifts_t *shiftp = state->shifts;
|
||||
|
||||
if (!shiftp)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user