[qfcc] Clean up some more bools

This commit is contained in:
Bill Currie 2024-12-04 23:54:35 +09:00
parent b03132825e
commit 5714433a9c
4 changed files with 6 additions and 6 deletions

View file

@ -386,9 +386,9 @@ typedef struct expr_s {
expr_type type; ///< the type of the result of this expression
int printid; ///< avoid duplicate output when printing
unsigned id;
unsigned paren:1; ///< the expression is enclosed in ()
unsigned implicit:1; ///< don't warn for implicit casts
unsigned nodag:1; ///< prevent use of dags for this expression
bool paren:1; ///< the expression is enclosed in ()
bool implicit:1; ///< don't warn for implicit casts
bool nodag:1; ///< prevent use of dags for this expression
///< propagates up
union {
ex_label_t label; ///< label expression

View file

@ -637,7 +637,7 @@ paren_expr (const expr_t *e)
{
auto paren = new_expr ();
*paren = *e;
paren->paren = 1;
paren->paren = true;
return paren;
}

View file

@ -684,7 +684,7 @@ type_function (int op, const expr_t *params)
}
auto te = new_expr ();
te->type = ex_type;
te->nodag = 1;
te->nodag = true;
te->typ = (ex_type_t) {
.op = op,
.params = params,

View file

@ -374,7 +374,7 @@ primary_exprsssion
auto val = new_type_value (&type_bool, &data);
$$ = new_value_expr (val, false);
}
| '(' expression ')' { $$ = $2; ((expr_t *) $$)->paren = 1; }
| '(' expression ')' { $$ = paren_expr ($2); }
;
postfix_expression