mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
style: use consistently *_loc for locations
Some members are called foo_location, others are foo_loc. Stick to the latter. * src/gram.h, src/location.h, src/location.c, src/output.c, * src/parse-gram.y, src/reader.h, src/reader.c, src/reduce.c, * src/scan-gram.l, src/symlist.h, src/symlist.c, src/symtab.h, * src/symtab.c: Use _loc consistently, not _location.
This commit is contained in:
@@ -122,7 +122,7 @@ struct sym_content
|
||||
uniqstr type_name;
|
||||
|
||||
/** Its \c \%type's location. */
|
||||
location type_location;
|
||||
location type_loc;
|
||||
|
||||
/** Any \c \%destructor (resp. \%printer) declared specificially for this
|
||||
symbol.
|
||||
@@ -134,7 +134,7 @@ struct sym_content
|
||||
code_props props[CODE_PROPS_SIZE];
|
||||
|
||||
symbol_number number;
|
||||
location prec_location;
|
||||
location prec_loc;
|
||||
int prec;
|
||||
assoc assoc;
|
||||
|
||||
@@ -246,7 +246,7 @@ extern symbol *accept;
|
||||
/** The user start symbol. */
|
||||
extern symbol *startsymbol;
|
||||
/** The location of the \c \%start declaration. */
|
||||
extern location startsymbol_location;
|
||||
extern location startsymbol_loc;
|
||||
|
||||
/** Whether a symbol declared with a type tag. */
|
||||
extern bool tag_seen;
|
||||
|
||||
Reference in New Issue
Block a user