style: minor changes

* src/complain.c: Space changes.
* src/reader.c: Comment changes.
Avoid && in assertions.
* src/location.c: Move comments to...
* src/location.h: here.
* src/symlist.h, src/symlist.c: Create a pseudo section for members
that apply to the rule.
This commit is contained in:
Akim Demaille
2013-02-09 18:25:15 +01:00
parent c21e515e05
commit ec6dc4375e
6 changed files with 20 additions and 16 deletions

View File

@@ -36,19 +36,18 @@ symbol_list_sym_new (symbol *sym, location loc)
res->content_type = SYMLIST_SYMBOL;
res->content.sym = sym;
res->location = res->sym_loc = loc;
res->named_ref = NULL;
res->midrule = NULL;
res->midrule_parent_rule = NULL;
res->midrule_parent_rhs_index = 0;
code_props_none_init (&res->action_props);
/* Members used for LHS only. */
res->ruleprec = NULL;
code_props_none_init (&res->action_props);
res->dprec = 0;
res->merger = 0;
res->named_ref = NULL;
res->next = NULL;
return res;