From 7f958dfb8d56905ef2de4930e3fa8aaf1f06b5b9 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 f121c3ec..56d104ae 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"; }