diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-07-08 08:33:47 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-07-08 08:33:47 -0700 |
commit | 6f5f7ef417c37c154d10c2b3813808ad3fa65fd7 (patch) | |
tree | 8b72009b875797274ad0e437e0440e730e4f2112 | |
parent | ddd08c3cccb4b68ecdb24d7a92eab6b2b82e8c68 (diff) | |
download | nasm-6f5f7ef417c37c154d10c2b3813808ad3fa65fd7.tar.gz |
Revert "expand_mmac_params: Expand local single macros unconditionally"
This reverts commit 1f6741fc78413236816c42d26b34134ab18ba4f1.
Revert due to BR 3026808.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | preproc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3821,7 +3821,12 @@ static Token *expand_mmac_params(Token * tline) delete_Token(t); changed = true; } else if (tline->type == TOK_PREPROC_ID && - tline->text[0] == '%' && tline->text[1] == '$') { + tline->text[0] == '%' && tline->text[1] == '$' && + (tok_type_(tline->next, TOK_ID) || + tok_type_(tline->next, TOK_PREPROC_ID) || + tok_type_(tline->next, TOK_FLOAT) || + tok_type_(tline->next, TOK_NUMBER) || + tok_type_(tline->next, TOK_OTHER))) { /* * In a sake of backward compatibility we allow * to expand local single macro that early before |