mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
* src/conflicts.c (log_resolution): Accept the rule involved in
the sr conflicts instead of the lookahead number that points to that rule. (flush_reduce): Accept the current lookahead vector as argument, instead of the index in LA. (resolve_sr_conflict): Accept the current number of lookahead bitset to consider for the STATE, instead of the index in LA. (set_conflicts): Adjust. * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
This commit is contained in:
@@ -559,8 +559,8 @@ states_lookaheads_initialize (void)
|
||||
bitsetv pLA = LA;
|
||||
rule_t **pLArule = LArule;
|
||||
|
||||
/* Count the number of lookaheads required for each state
|
||||
(NLOOKAHEADS member). */
|
||||
/* Initialize the members LOOKAHEADS and LOOKAHEADS_RULE for each
|
||||
state. */
|
||||
for (i = 0; i < nstates; i++)
|
||||
{
|
||||
states[i]->lookaheads = pLA;
|
||||
|
||||
Reference in New Issue
Block a user