summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2008-10-22 06:23:34 -0500
committerAkim Demaille <demaille@gostai.com>2008-11-15 11:26:58 +0100
commitff084799a3846e53ec35ddc7ae1096aa87cfb858 (patch)
treea426b8c06b1ee0f2cc9f6a52146d2ca28d5bbd12
parentb0d79ec65d0c92bd3afe377307206a48544285ca (diff)
downloadbison-ff084799a3846e53ec35ddc7ae1096aa87cfb858.tar.gz
Don't use locations in variant.yy.
* examples/variant.yy: Adjust to not using locations.
-rw-r--r--ChangeLog5
-rw-r--r--examples/variant.yy5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 50ef9d0a..2c0343d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-11-15 Akim Demaille <demaille@gostai.com>
+ Don't use locations in variant.yy.
+ * examples/variant.yy: Adjust to not using locations.
+
+2008-11-15 Akim Demaille <demaille@gostai.com>
+
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 74fb1092..b1987cd2 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