From: ceriel Date: Fri, 17 Nov 1989 11:40:48 +0000 (+0000) Subject: improved for EOF handling X-Git-Tag: release-5-5~2069 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cde3638bc9ef0683d670bb8c57c20fd41a4ad973;p=ack.git improved for EOF handling --- diff --git a/lang/cem/cemcom/make.tokcase b/lang/cem/cemcom/make.tokcase index f121c3ec4..56d104ae2 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"; }