From 985d880c15a5b26e59cdcec4af2eba0748ecfe1f Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 8 Jun 2010 18:45:06 +0400 Subject: [PATCH] expand_mmac_params: Expand local single macros unconditionally Peter proposed to expand local single macros unconditionally. This should not hurt but give us more cleaner code in result. Reported-by: "H. Peter Anvin" Signed-off-by: Cyrill Gorcunov --- preproc.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/preproc.c b/preproc.c index 01cefd713..ca31fbc61 100644 --- a/preproc.c +++ b/preproc.c @@ -3822,14 +3822,7 @@ static Token *expand_mmac_params(Token * tline) changed = true; } else if (tline->type == TOK_PREPROC_ID && tline->text[0] == '%' && tline->text[1] == '$') { - /* - * In a sake of backward compatibility we allow - * to expand local single macro that early before - * pasting token code have place - * - * NOTE: that new code MUST use %+ macro to obtain - * same result - */ + /* expand local macro */ t = tline; tline = tline->next; tt = tokenize(t->text);