mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
* src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
* src/conflicts.c: Use it. Restore a few missing `if (!SHIFT_IS_DISABLED)' which were incorrectly ``simplified''.
This commit is contained in:
@@ -146,6 +146,15 @@ typedef struct shifts
|
||||
#define SHIFT_IS_ERROR(Shifts, Shift) \
|
||||
(SHIFT_SYMBOL (Shifts, Shift) == error_token_number)
|
||||
|
||||
/* When resolving a SR conflicts, if the reduction wins, the shift is
|
||||
disabled. */
|
||||
|
||||
#define SHIFT_DISABLE(Shifts, Shift) \
|
||||
(Shifts->shifts[Shift] = 0)
|
||||
|
||||
#define SHIFT_IS_DISABLED(Shifts, Shift) \
|
||||
(Shifts->shifts[Shift] == 0)
|
||||
|
||||
|
||||
/*-------.
|
||||
| Errs. |
|
||||
|
||||
Reference in New Issue
Block a user