From a44bbb39771ac03fb0f1a719105865e7ee8653ac Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 19 Nov 1996 13:27:56 +0000 Subject: [PATCH] Fixed a couple of minor bugs --- util/LLgen/src/LLgen.g | 3 ++- util/LLgen/src/tokens.g | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/util/LLgen/src/LLgen.g b/util/LLgen/src/LLgen.g index 89a657bd4..3dbb503ba 100644 --- a/util/LLgen/src/LLgen.g +++ b/util/LLgen/src/LLgen.g @@ -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; diff --git a/util/LLgen/src/tokens.g b/util/LLgen/src/tokens.g index 3f347d411..cbfe25558 100644 --- a/util/LLgen/src/tokens.g +++ b/util/LLgen/src/tokens.g @@ -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 -- 2.34.1