[qfcc] Treat all identifiers as undefined

If ID gets to the preprocessor parser in expressions, the ID is not
defined because if it was defined, it would have been expanded. Thus,
all IDs are 0.
This commit is contained in:
Bill Currie 2023-10-27 17:27:52 +09:00
parent 4214b90de3
commit 80c9132199

View file

@ -287,8 +287,8 @@ arg : '(' <macro> { $$ = rua_macro_append ($<macro>0, yyvsp, scanner); }
| TOKEN { $$ = rua_macro_append ($<macro>0, yyvsp, scanner); }
;
id : ID { $$ = 0; }
| IDp args ')' { $$ = 0; }
id : ID { $$ = new_long_expr (0, false); }
| IDp args ')' { $$ = new_long_expr (0, false); }
;
defined