aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-06-08 18:45:06 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-06-08 18:45:06 +0400
commit985d880c15a5b26e59cdcec4af2eba0748ecfe1f (patch)
tree2f97715e31f7d2f1ae1a5efae8cc525bcaed0fb2
parent1f6741fc78413236816c42d26b34134ab18ba4f1 (diff)
downloadnasm-test-985d880c15a5b26e59cdcec4af2eba0748ecfe1f.tar.gz
nasm-test-985d880c15a5b26e59cdcec4af2eba0748ecfe1f.tar.xz
nasm-test-985d880c15a5b26e59cdcec4af2eba0748ecfe1f.zip
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>
-rw-r--r--preproc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/preproc.c b/preproc.c
index 01cefd71..ca31fbc6 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);