From ff084799a3846e53ec35ddc7ae1096aa87cfb858 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 22 Oct 2008 06:23:34 -0500 Subject: [PATCH] Don't use locations in variant.yy. * 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 50ef9d0a..2c0343d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-15 Akim Demaille + + Don't use locations in variant.yy. + * examples/variant.yy: Adjust to not using locations. + 2008-11-15 Akim Demaille Comment changes. 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 -- 2.47.2