Don't attempt to unput(EOF).

According to lex(1) (the manual page for flex, which is what we use for lex):
	Finally, note that you cannot put back EOF to attempt to mark the
	input stream with an end-of-file.

Fixes PR bin/8707, which had been reclassified as a toolchain bug.
This commit is contained in:
lukem 2003-07-20 03:14:40 +00:00
parent bf6ea868f8
commit aab62ed1ca

View File

@ -1,4 +1,4 @@
/* $NetBSD: iplang_l.l,v 1.3 2000/05/03 11:40:19 veego Exp $ */ /* $NetBSD: iplang_l.l,v 1.4 2003/07/20 03:14:40 lukem Exp $ */
%{ %{
/* /*
@ -320,5 +320,6 @@ void swallow()
while ((c != '\n') && (c != EOF)) while ((c != '\n') && (c != EOF))
c = input(); c = input();
} }
if (c != EOF)
unput(c); unput(c);
} }