Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/ipf/iplang Don't attempt to unput(EOF).
details: https://anonhg.NetBSD.org/src/rev/461db5761d45
branches: trunk
changeset: 549674:461db5761d45
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Jul 20 03:14:40 2003 +0000
description:
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.
diffstat:
dist/ipf/iplang/iplang_l.l | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 0026de1b5af4 -r 461db5761d45 dist/ipf/iplang/iplang_l.l
--- a/dist/ipf/iplang/iplang_l.l Sun Jul 20 02:38:43 2003 +0000
+++ b/dist/ipf/iplang/iplang_l.l Sun Jul 20 03:14:40 2003 +0000
@@ -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 @@
while ((c != '\n') && (c != EOF))
c = input();
}
- unput(c);
+ if (c != EOF)
+ unput(c);
}
Home |
Main Index |
Thread Index |
Old Index