From afd31ed29243e5840f5889c6c746e1cf37a1b153 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 11 Mar 2020 16:07:58 +0900 Subject: [PATCH] [qfcc] Rename cexpr to comma_expr It took me too long to figure out what cexpr was for. --- tools/qfcc/source/qc-parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 83ac9ca8a..5b3216d10 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -182,7 +182,7 @@ int yylex (void); %type methoddef %type opt_initializer var_initializer local_def -%type opt_init opt_expr cexpr expr +%type opt_init opt_expr comma_expr expr %type compound_init element_list %type element %type optional_state_expr texpr vector_expr @@ -1342,7 +1342,7 @@ statement break_label = $2; continue_label = $3; } - | cexpr ';' + | comma_expr ';' { $$ = $1; } @@ -1398,7 +1398,7 @@ switch_block ; opt_init - : cexpr + : comma_expr | type set_spec_storage init_var_decl_list { $$ = $3; } | /* empty */ { @@ -1431,7 +1431,7 @@ init_var_decl ; opt_expr - : cexpr + : comma_expr | /* empty */ { $$ = 0; @@ -1521,7 +1521,7 @@ texpr : expr { $$ = convert_bool ($1, 1); } ; -cexpr +comma_expr : arg_list { if ($1->next) {