diff options
author | ragge <ragge> | 2008-07-29 09:10:14 +0000 |
---|---|---|
committer | ragge <ragge> | 2008-07-29 09:10:14 +0000 |
commit | 31f11fced618939efa8a18f12fd8fe05bab79a05 (patch) | |
tree | e387ff64384991508b93b974a05dcbcc1e52836d | |
parent | 2f11bc08c313ea06949900f4ef234563aa1309b1 (diff) |
Fix bug where double macro expansion could cause an internal error.
Reported by gmcgarry.
-rw-r--r-- | cpp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1117,6 +1117,8 @@ expmac(struct recur *rp) unpstr((usch *)yytext); if (orgexp == -1) cunput(EXPAND); + else if (orgexp == -2) + cunput(EXPAND), cunput(EXPAND); else if (orgexp == 1) cunput(NOEXP); unpstr(och); |