From 68e11668e4b4c3cd9564b6a920656ace3768ec59 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 17 Nov 2004 14:19:37 +0000 Subject: [PATCH 1/1] * data/lalr1.cc (Parser:print_): Remove, use %printer instead. * tests/regression.at (_AT_DATA_DANCER_Y): Adjust. * tests/calc.at (_AT_DATA_CALC_Y): Ditto. * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise. --- ChangeLog | 7 +++++++ data/lalr1.cc | 1 - tests/actions.at | 9 +-------- tests/calc.at | 10 +--------- tests/regression.at | 8 +------- 5 files changed, 10 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1db1da51..7c59bb30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-11-17 Akim Demaille + + * data/lalr1.cc (Parser:print_): Remove, use %printer instead. + * tests/regression.at (_AT_DATA_DANCER_Y): Adjust. + * tests/calc.at (_AT_DATA_CALC_Y): Ditto. + * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise. + 2004-10-28 Akim Demaille , Alexandre Duret-Lutz diff --git a/data/lalr1.cc b/data/lalr1.cc index e77e7842..36d1dea0 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -263,7 +263,6 @@ namespace yy virtual void lex_ (); virtual void error_ (); - virtual void print_ (); virtual void report_syntax_error_ (); #if YYDEBUG virtual void symprint_ (int yytype, diff --git a/tests/actions.at b/tests/actions.at index 05d0e52b..22d51d96 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -309,14 +309,7 @@ yylex (]AT_LEX_FORMALS[) } ]AT_LALR1_CC_IF( -[/* Currently, print_ is required in C++. */ -void -yy::Parser::print_ () -{ - std::cerr << location; -} - -/* A C++ error reporting function. */ +[/* A C++ error reporting function. */ void yy::Parser::error_ () { diff --git a/tests/calc.at b/tests/calc.at index eb59ac9e..83ce2831 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -126,15 +126,7 @@ exp: static FILE *yyin; ]AT_LALR1_CC_IF( -[/* Currently, print_ is required in C++. */ -void -yy::Parser::print_ () -{ -AT_LOCATION_IF([ - std::cerr << location;]) -} - -/* A C++ error reporting function. */ +[/* A C++ error reporting function. */ void yy::Parser::error_ () { diff --git a/tests/regression.at b/tests/regression.at index ebc3e874..c199ecc1 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -725,13 +725,7 @@ member: STRING ; %% AT_LALR1_CC_IF( -[/* Currently, print_ is required in C++. */ -void -yy::Parser::print_ () -{ -} - -/* A C++ error reporting function. */ +[/* A C++ error reporting function. */ void yy::Parser::error_ () { -- 2.45.2