mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[qfcc] Clean up some more bools
This commit is contained in:
parent
b03132825e
commit
5714433a9c
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -637,7 +637,7 @@ paren_expr (const expr_t *e)
|
|||
{
|
||||
auto paren = new_expr ();
|
||||
*paren = *e;
|
||||
paren->paren = 1;
|
||||
paren->paren = true;
|
||||
return paren;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue