From 0752c662912437528a40f82d0fdb7452b17fe68c Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 7 Feb 2022 16:03:31 -0500 Subject: handle object macro definitions beginning with ( oops --- 05/preprocess.b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05/preprocess.b b/05/preprocess.b index 46a9509..71647ae 100644 --- a/05/preprocess.b +++ b/05/preprocess.b @@ -618,10 +618,10 @@ function translation_phase_4 pptoken_skip_spaces(&in) macro_name = in pptoken_skip(&in) - pptoken_skip_spaces(&in) c = *1in if c == '( goto function_macro_definition ; it's an object-like macro, e.g. #define X 47 + pptoken_skip_spaces(&in) b = look_up_object_macro(macro_name) if b != 0 goto macro_redefinition -- cgit v1.2.3