fixed two preprocessing bugs
authoreck <none@none>
Tue, 13 Nov 1990 16:50:55 +0000 (16:50 +0000)
committereck <none@none>
Tue, 13 Nov 1990 16:50:55 +0000 (16:50 +0000)
lang/cem/cemcom.ansi/LLlex.c
lang/cem/cemcom.ansi/replace.c

index fc1342a..3b789d7 100644 (file)
@@ -147,7 +147,11 @@ firstline:
                        return ptok->tk_symb = EOI;
 
                while ((ch = GetChar()),
-                       (ch == '#' || ch == '/' || class(ch) == STSKIP)) {
+                       (ch == '#'
+#ifndef NOPP
+                       || ch == '/'
+#endif
+                       || class(ch) == STSKIP)) {
                        /* blanks are allowed before hashes */
                        if (ch == '#') {
                                /* a control line follows */
index ce8408e..05afb86 100644 (file)
@@ -435,6 +435,10 @@ a_new_line:                ch = GetChar();
 
                        if (ch == '#') {
                                domacro();
+                               /* Clear File_Inserted since domacro could
+                                * be called again, which calls GetToken().
+                                */
+                               File_Inserted = 0;
                                goto a_new_line;
                        } else if (ch == EOI) {
                                lexerror("unterminated macro call");