mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
regen
This commit is contained in:
@@ -1003,12 +1003,19 @@ do { \
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
/* YY_LOCATION_PRINT -- Print the location on the stream.
|
/* YYLOCATION_PRINT -- Print the location on the stream.
|
||||||
This macro was not mandated originally: define only if we know
|
This macro was not mandated originally: define only if we know
|
||||||
we won't break user code: when these are the locations we know. */
|
we won't break user code: when these are the locations we know. */
|
||||||
|
|
||||||
# ifndef YY_LOCATION_PRINT
|
# ifndef YYLOCATION_PRINT
|
||||||
# if defined GRAM_LTYPE_IS_TRIVIAL && GRAM_LTYPE_IS_TRIVIAL
|
|
||||||
|
# if defined YY_LOCATION_PRINT
|
||||||
|
|
||||||
|
/* Temporary convenience wrapper in case some people defined the
|
||||||
|
undocumented and private YY_LOCATION_PRINT macros. */
|
||||||
|
# define YYLOCATION_PRINT(File, Loc) YY_LOCATION_PRINT(File, *(Loc))
|
||||||
|
|
||||||
|
# elif defined GRAM_LTYPE_IS_TRIVIAL && GRAM_LTYPE_IS_TRIVIAL
|
||||||
|
|
||||||
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
|
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
|
||||||
|
|
||||||
@@ -1038,13 +1045,21 @@ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
# define YY_LOCATION_PRINT(File, Loc) \
|
# define YYLOCATION_PRINT yy_location_print_
|
||||||
yy_location_print_ (File, &(Loc))
|
|
||||||
|
/* Temporary convenience wrapper in case some people defined the
|
||||||
|
undocumented and private YY_LOCATION_PRINT macros. */
|
||||||
|
# define YY_LOCATION_PRINT(File, Loc) YYLOCATION_PRINT(File, &(Loc))
|
||||||
|
|
||||||
# else
|
# else
|
||||||
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
|
||||||
|
# define YYLOCATION_PRINT(File, Loc) ((void) 0)
|
||||||
|
/* Temporary convenience wrapper in case some people defined the
|
||||||
|
undocumented and private YY_LOCATION_PRINT macros. */
|
||||||
|
# define YY_LOCATION_PRINT YYLOCATION_PRINT
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
# endif /* !defined YY_LOCATION_PRINT */
|
# endif /* !defined YYLOCATION_PRINT */
|
||||||
|
|
||||||
|
|
||||||
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
|
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
|
||||||
@@ -1281,7 +1296,7 @@ yy_symbol_print (FILE *yyo,
|
|||||||
YYFPRINTF (yyo, "%s %s (",
|
YYFPRINTF (yyo, "%s %s (",
|
||||||
yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
|
yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
|
||||||
|
|
||||||
YY_LOCATION_PRINT (yyo, *yylocationp);
|
YYLOCATION_PRINT (yyo, yylocationp);
|
||||||
YYFPRINTF (yyo, ": ");
|
YYFPRINTF (yyo, ": ");
|
||||||
yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp);
|
yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp);
|
||||||
YYFPRINTF (yyo, ")");
|
YYFPRINTF (yyo, ")");
|
||||||
|
|||||||
Reference in New Issue
Block a user