From: Akim Demaille Date: Wed, 22 Oct 2008 11:23:34 +0000 (-0500) Subject: Don't use locations in variant.yy. X-Git-Tag: v2.7.90~1032 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ff084799a3846e53ec35ddc7ae1096aa87cfb858 Don't use locations in variant.yy. * examples/variant.yy: Adjust to not using locations. --- 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