mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
* src/output.c (froms, tos): Are state_number_t.
(save_column): sp, sp1, and sp2 are state_number_t. (prepare): Rename `final' as `final_state_number', `nnts' as `nterms_number', `nrules' as `rules_number', `nstates' as `states_number', and `ntokens' as `tokens_number'. Remove `nsym', unused. * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust. * data/lalr1.cc (nsym_): Remove, unused.
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
| Create a new array of N shifts/gotos. |
|
||||
`---------------------------------------*/
|
||||
|
||||
#define TRANSITIONS_ALLOC(Nshifts) \
|
||||
(transitions_t *) xcalloc ((unsigned) (sizeof (transitions_t) \
|
||||
+ (Nshifts - 1) * sizeof (state_number_t)), 1)
|
||||
#define TRANSITIONS_ALLOC(Num) \
|
||||
(transitions_t *) xcalloc ((sizeof (transitions_t) \
|
||||
+ (Num - 1) * sizeof (state_number_t)), 1)
|
||||
|
||||
static transitions_t *
|
||||
transitions_new (int num, state_number_t *the_states)
|
||||
|
||||
Reference in New Issue
Block a user