diff options
author | Akim Demaille <demaille@gostai.com> | 2008-10-22 06:23:34 -0500 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2008-11-15 11:26:58 +0100 |
commit | ff084799a3846e53ec35ddc7ae1096aa87cfb858 (patch) | |
tree | a426b8c06b1ee0f2cc9f6a52146d2ca28d5bbd12 | |
parent | b0d79ec65d0c92bd3afe377307206a48544285ca (diff) | |
download | bison-ff084799a3846e53ec35ddc7ae1096aa87cfb858.tar.gz |
Don't use locations in variant.yy.
* examples/variant.yy: Adjust to not using locations.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | examples/variant.yy | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -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 |