]> git.saurik.com Git - bison.git/blobdiff - tests/calc.at
tests: don't depend on the actual location type.
[bison.git] / tests / calc.at
index 61a7a1e3f3380a038ca0f6e8b360c404e8e496ec..2f85baa47ef5b70f0396fd272704de7493f2fe88 100644 (file)
@@ -176,7 +176,7 @@ typedef int semantic_value;
 /* The input.  */
 extern FILE *input;]AT_SKEL_CC_IF([[
 #ifndef YYLTYPE
-# define YYLTYPE ]AT_NAME_PREFIX[::location
+# define YYLTYPE ]AT_NAME_PREFIX[::parser::location_type
 #endif
 #define first_line   begin.line
 #define first_column begin.column
@@ -269,7 +269,7 @@ exp:
 ]AT_SKEL_CC_IF(
 [/* A C++ error reporting function.  */
 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;
 }