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:
Akim Demaille
2019-05-03 08:52:26 +02:00
parent 365b4d95a4
commit 013720f0e7
15 changed files with 65 additions and 65 deletions

View File

@@ -42,14 +42,14 @@ symbol_list_sym_new (symbol *sym, location loc)
res->midrule_parent_rhs_index = 0;
/* Members used for LHS only. */
res->rhs_loc = empty_location;
res->rhs_loc = empty_loc;
res->ruleprec = NULL;
res->percent_empty_loc = empty_location;
res->percent_empty_loc = empty_loc;
code_props_none_init (&res->action_props);
res->dprec = 0;
res->dprec_location = empty_location;
res->dprec_loc = empty_loc;
res->merger = 0;
res->merger_declaration_location = empty_location;
res->merger_declaration_loc = empty_loc;
res->expected_sr_conflicts = -1;
res->expected_rr_conflicts = -1;