corrected the treatment of PREDEF-ed macros

This commit is contained in:
erikb
1986-04-04 11:31:03 +00:00
parent b69b512875
commit 80b9feb37f
3 changed files with 10 additions and 37 deletions

View File

@@ -274,15 +274,9 @@ go_on: /* rescan, the following character has been read */
*tg++ = '\0'; /* mark the end of the identifier */
idef = ptok->tk_idf = idf_hashed(buf, tg - buf, hash);
#ifndef NOPP
if (idef->id_macro && ReplaceMacros) {
if (idef->id_macro && ReplaceMacros && replace(idef))
/* macro replacement should be performed */
if (replace(idef))
goto again;
/* arrived here: something went wrong in
replace, don't substitute in this case
*/
}
else
goto again;
if (UnknownIdIsZero) {
ptok->tk_ival = (arith)0;
ptok->tk_fund = INT;