Don't invoke unput from scan-gram.l; it ran into a POSIX-compatibility
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Apr 2003 07:27:15 +0000 (07:27 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Apr 2003 07:27:15 +0000 (07:27 +0000)
bug in flex 2.5.31.

ChangeLog

index e5bb37a..998b724 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2003-04-17  Paul Eggert  <eggert@twinsun.com>
 
+       * src/scan-gram.l: Add %option nounput, since we no longer use unput.
+       (unexpected_eof): Renamed from unexpected_end_of_file, for brevity.
+       Do not insert the expected token via unput, as this runs afoul
+       of a POSIX-compatibility bug in flex 2.5.31.
+       All uses changed to BEGIN the parent state,
+       since we no longer insert the expected token via unput.
+       * tests/regression.at (Invalid inputs): Remove cascaded diagnostic
+       that is no longer emitted after the above change.
+
        * src/conflicts.c (set_conflicts): Resolve all conflicts, not just
        the first one.  This change is from Paul Hilfinger, and it fixes
        regression reported by Werner Lemberg in