From c0234090916287074834fbd0306081096d008064 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 17 Nov 1989 11:41:47 +0000 Subject: [PATCH] improved make.tokcase for EOF handling --- lang/cem/cemcom.ansi/make.tokcase | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/cem/cemcom.ansi/make.tokcase b/lang/cem/cemcom.ansi/make.tokcase index f121c3ec4..56d104ae2 100755 --- a/lang/cem/cemcom.ansi/make.tokcase +++ b/lang/cem/cemcom.ansi/make.tokcase @@ -23,6 +23,7 @@ s/.*{\(.*\),.*\(".*"\).*$/ case \1 :\ cat <<'--EOT--' default: + if (tok <= 0) return "end of file"; if (tok < 040 || tok >= 0177) { return "bad token"; } -- 2.34.1