tests: enhance AT_YYERROR_DEFINE.

* tests/local.at: Handle the fact that locations are no longer
needed with lalr1.cc.
This commit is contained in:
Akim Demaille
2012-06-19 17:43:11 +02:00
parent e436fa677c
commit 0dd59ce3b4

View 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>