[qfcc] Grab undef id early

I'm unsure of the small string handling is a premature optimization, but
when most tokens are small...
This commit is contained in:
Bill Currie 2023-10-29 18:23:39 +09:00
parent e402d0fa21
commit 243a3de629

View file

@ -190,7 +190,8 @@ directive
params ')' <macro> { $$ = rua_end_params ($3, scanner); }
body { rua_macro_finish ($body, scanner); }
eod
| UNDEF ID extra_warn { rua_undefine ($2, scanner); }
| UNDEF ID { rua_undefine ($2, scanner); }
extra_warn
| ERROR text { error (0, "%s", $text->str); dstring_delete ($text); }
eod
| WARNING text { warning (0, "%s", $text->str); dstring_delete ($text); }