]> git.saurik.com Git - bison.git/commitdiff
tests: enhance AT_YYERROR_DEFINE.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 19 Jun 2012 15:43:11 +0000 (17:43 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 19 Jun 2012 16:17:36 +0000 (18:17 +0200)
* tests/local.at: Handle the fact that locations are no longer
needed with lalr1.cc.

tests/local.at

index 0d24a44a3d0bf7242e9d230996eea3b69e5b96f2..f43ffde8aeaa79ecdd5ce00aa0cfe8dd5fb28613 100644 (file)
@@ -326,7 +326,7 @@ m4_define([AT_YYERROR_DEFINE],
 {
   System.err.println (msg);
 }]], [AT_SKEL_CC_IF([[void
-yy::parser::error (const yy::location &, std::string const &msg)
+yy::parser::error (]AT_LOCATION_IF([[const yy::location &, ]])[std::string const &msg)
 {
   std::cerr << msg << std::endl;
 }]], [[#include <stdio.h>