bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Don't use locations in variant.yy.


From: Akim Demaille
Subject: [PATCH] Don't use locations in variant.yy.
Date: Sat, 15 Nov 2008 10:30:01 -0000

        * examples/variant.yy: Adjust to not using locations.
---
 ChangeLog           |    5 +++++
 examples/variant.yy |    5 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 50ef9d0..2c0343d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-15  Akim Demaille  <address@hidden>
 
+       Don't use locations in variant.yy.
+       * examples/variant.yy: Adjust to not using locations.
+
+2008-11-15  Akim Demaille  <address@hidden>
+
        Comment changes.
        * data/local.mk, etc/local.mk, examples/local.mk: Use Automake
        comments for the license.
diff --git a/examples/variant.yy b/examples/variant.yy
index 74fb109..b1987cd 100644
--- a/examples/variant.yy
+++ b/examples/variant.yy
@@ -114,10 +114,9 @@ yylex (yy::parser::semantic_type* yylval)
 
 // Mandatory error function
 void
-yy::parser::error (const yy::parser::location_type& yylloc,
-                   const std::string& message)
+yy::parser::error (const std::string& message)
 {
-  std::cerr << yylloc << ": " << message << std::endl;
+  std::cerr << message << std::endl;
 }
 
 int
-- 
1.6.0.2.588.g3102





reply via email to

[Prev in Thread] Current Thread [Next in Thread]