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:
parent
bf6ea868f8
commit
aab62ed1ca
5
dist/ipf/iplang/iplang_l.l
vendored
5
dist/ipf/iplang/iplang_l.l
vendored
@ -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))
|
||||
c = input();
|
||||
}
|
||||
unput(c);
|
||||
if (c != EOF)
|
||||
unput(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user