mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user