corrected the treatment of PREDEF-ed macros

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

View File

@@ -81,8 +81,6 @@ init_pp()
containing a number of identifiers to be
predefined at the host machine (for example
-DPREDEFINE="vax,unix,pmds").
Note that PREDEF causes the identifier not
to be substituted.
*/
register char *s = PREDEFINE;
register char *id;
@@ -96,7 +94,7 @@ init_pp()
while (in_idf(*s++));
c = *--s;
*s = '\0';
macro_def(str2idf(id), "", -1, 0, PREDEF);
macro_def(str2idf(id), "1", -1, 1, PREDEF);
*s = c;
}
else