Fixed a couple of minor bugs
authorceriel <none@none>
Tue, 19 Nov 1996 13:27:56 +0000 (13:27 +0000)
committerceriel <none@none>
Tue, 19 Nov 1996 13:27:56 +0000 (13:27 +0000)
util/LLgen/src/LLgen.g
util/LLgen/src/tokens.g

index 89a657b..3dbb503 100644 (file)
@@ -635,7 +635,8 @@ copyact(ch1,ch2,flag,level) char ch1,ch2; {
                                text_seen = 0;
                                nparams++;
                                if (ch == ',' && (flag & 2)) {
-                                       error(linecount, "Parameters may not be separated with a ','");
+                                       warning(linecount, "Parameters may not be separated with a ','");
+                                       ch = ';';
                                }
                        }
                        break;
index 3f347d4..cbfe255 100644 (file)
@@ -214,7 +214,10 @@ input() {
                backupc = 0;
                 return c;
        }
-       if ((c = getc(finput)) == EOF) return c;
+       if ((c = getc(finput)) == EOF) {
+               nonline = 0;
+               return c;
+       }
 # ifdef LINE_DIRECTIVE
        nostartline = 1;
 # endif