]> git.saurik.com Git - bison.git/commitdiff
* examples/extexi: Restore the #line generation.
authorAkim Demaille <akim@epita.fr>
Sat, 1 Oct 2005 07:20:32 +0000 (07:20 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 1 Oct 2005 07:20:32 +0000 (07:20 +0000)
ChangeLog
examples/extexi

index 58a6c9ef59e196ba92e39f50af9936dad30a03fd..118d2a5733c6513bc760e8b3cf9508b79142b1d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-01  Akim  <akim@epita.fr>
+
+       * examples/extexi: Restore the #line generation.
+
 2005-09-30  Akim Demaille  <akim@epita.fr>,
            Alexandre Duret-Lutz <adl@gnu.org>
 
index cc140f5c82cdf851832cbff670d07c5c2f6d1dc6..4bd489795f4170ca871b10788e91102c73858cf6 100644 (file)
@@ -64,6 +64,8 @@ BEGIN {
       # #line report the line number of the *next* line.
       # => + 2.
       # Note that recent Bison support it, but not Flex.
+      if (file ~ /\.[chy]*$/)
+       input = "#line " (FNR + 1) " \"" FILENAME "\"\n";
       next;
     }