The InputLevel variable only exists when NOPP is not defined
authorceriel <none@none>
Thu, 12 Oct 1989 14:22:35 +0000 (14:22 +0000)
committerceriel <none@none>
Thu, 12 Oct 1989 14:22:35 +0000 (14:22 +0000)
lang/cem/cemcom.ansi/LLlex.c
lang/cem/cemcom.ansi/input.c
lang/cem/cemcom.ansi/skip.c

index 9856912..d3e9f78 100644 (file)
@@ -252,7 +252,11 @@ garbage:
                        UnGetChar();
                        return ptok->tk_symb = ch;
                case '/':
-                       if (nch == '*' && !InputLevel) {
+                       if (nch == '*'
+#ifndef NOPP
+                           && !InputLevel
+#endif
+                       ) {
                                skipcomment();
                                goto again;
                        }
index 3f62509..8ff07ce 100644 (file)
@@ -40,18 +40,22 @@ getwdir(fn)
        }
        return "";
 }
+
+int    InputLevel;
 #endif NOPP
 
 int    NoUnstack;
-int    InputLevel;
 
 AtEoIT()
 {
+#ifndef NOPP
        InputLevel--;
        unstackrepl();
+#endif NOPP
        return 0;
 }
 
+
 AtEoIF()
 {
 #ifndef NOPP
index 7a06c78..599313e 100644 (file)
@@ -67,7 +67,11 @@ SkipToNewLine(garbage)
 
        while ((ch = GetChar()) != '\n') {
                if (ch == '/') {
-                       if ((ch = GetChar()) == '*' && !InputLevel) {
+                       if ((ch = GetChar()) == '*'
+#ifndef NOPP
+                           && !InputLevel
+#endif
+                       ) {
                                skipcomment();
                                continue;
                        }