forked from aniani/nasm
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" <hpa@zytor.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
@@ -3822,14 +3822,7 @@ static Token *expand_mmac_params(Token * tline)
|
|||||||
changed = true;
|
changed = true;
|
||||||
} else if (tline->type == TOK_PREPROC_ID &&
|
} else if (tline->type == TOK_PREPROC_ID &&
|
||||||
tline->text[0] == '%' && tline->text[1] == '$') {
|
tline->text[0] == '%' && tline->text[1] == '$') {
|
||||||
/*
|
/* expand local macro */
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
t = tline;
|
t = tline;
|
||||||
tline = tline->next;
|
tline = tline->next;
|
||||||
tt = tokenize(t->text);
|
tt = tokenize(t->text);
|
||||||
|
Reference in New Issue
Block a user