mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
tests: don't depend on the actual location type.
* tests/calc.at: Use yy::parser::location_type rather than yy::location, since the former is always right, and might point to another type than the latter.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2010-04-13 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
tests: don't depend on the actual location type.
|
||||||
|
* tests/calc.at: Use yy::parser::location_type rather than
|
||||||
|
yy::location, since the former is always right, and might point to
|
||||||
|
another type than the latter.
|
||||||
|
|
||||||
2010-04-13 Akim Demaille <demaille@gostai.com>
|
2010-04-13 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
formatting changes.
|
formatting changes.
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ typedef int semantic_value;
|
|||||||
/* The input. */
|
/* The input. */
|
||||||
extern FILE *input;]AT_SKEL_CC_IF([[
|
extern FILE *input;]AT_SKEL_CC_IF([[
|
||||||
#ifndef YYLTYPE
|
#ifndef YYLTYPE
|
||||||
# define YYLTYPE ]AT_NAME_PREFIX[::location
|
# define YYLTYPE ]AT_NAME_PREFIX[::parser::location_type
|
||||||
#endif
|
#endif
|
||||||
#define first_line begin.line
|
#define first_line begin.line
|
||||||
#define first_column begin.column
|
#define first_column begin.column
|
||||||
@@ -269,7 +269,7 @@ exp:
|
|||||||
]AT_SKEL_CC_IF(
|
]AT_SKEL_CC_IF(
|
||||||
[/* A C++ error reporting function. */
|
[/* A C++ error reporting function. */
|
||||||
void
|
void
|
||||||
AT_NAME_PREFIX::parser::error (AT_LOCATION_IF([const location& l, ])const std::string& m)
|
AT_NAME_PREFIX::parser::error (AT_LOCATION_IF([const location_type& l, ])const std::string& m)
|
||||||
{
|
{
|
||||||
std::cerr << AT_LOCATION_IF([l << ": " << ])m << std::endl;
|
std::cerr << AT_LOCATION_IF([l << ": " << ])m << std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user