style: comment and name changes

* src/output.c (prepare_symbol_names): here.
* src/reader.c: Remove obsolete comment.
* src/scan-code.l: Use || for Boolean or.
This commit is contained in:
Akim Demaille
2019-02-02 06:43:48 +01:00
parent dc654a925c
commit 9566232422
3 changed files with 8 additions and 10 deletions

View File

@@ -631,7 +631,7 @@ handle_action_dollar (symbol_list *rule, char *text, location dollar_loc)
if (!type_name
&& !sym->content.sym->content->type_name)
{
if (union_seen | tag_seen)
if (union_seen || tag_seen)
{
if (rule->midrule_parent_rule)
complain (&dollar_loc, complaint,
@@ -665,7 +665,7 @@ handle_action_dollar (symbol_list *rule, char *text, location dollar_loc)
if (!type_name
&& (!sym || !sym->content.sym->content->type_name))
{
if (union_seen | tag_seen)
if (union_seen || tag_seen)
complain (&dollar_loc, complaint,
_("$%s of %s has no declared type"), cp,
quote (effective_rule->content.sym->tag));