From 6c40cad8799571be32537513e06acc7c1edabf24 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 17 Nov 1989 11:40:48 +0000 Subject: [PATCH] improved for EOF handling --- lang/cem/cemcom/make.tokcase | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/cem/cemcom/make.tokcase b/lang/cem/cemcom/make.tokcase index f121c3ec..56d104ae 100755 --- a/lang/cem/cemcom/make.tokcase +++ b/lang/cem/cemcom/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"; }