mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
style: make item_index a truly different type from item_number
See previous commit. * src/gram.h (item_index): Make it unsigned. Fix remaiming issues.
This commit is contained in:
@@ -111,14 +111,15 @@ extern int nsyms;
|
||||
extern int ntokens;
|
||||
extern int nvars;
|
||||
|
||||
/* elements of ritem */
|
||||
/* Elements of ritem. */
|
||||
typedef int item_number;
|
||||
/* indices into ritem */
|
||||
typedef int item_index;
|
||||
# define ITEM_NUMBER_MAX INT_MAX
|
||||
extern item_number *ritem;
|
||||
extern int nritems;
|
||||
|
||||
/* Indices into ritem. */
|
||||
typedef unsigned int item_index;
|
||||
|
||||
/* There is weird relationship between OT1H item_number and OTOH
|
||||
symbol_number and rule_number: we store the latter in
|
||||
item_number. symbol_number values are stored as-is, while
|
||||
|
||||
Reference in New Issue
Block a user