mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
glr.cc: remove duplicate definition of YYLLOC_DEFAULT
It's already provided by glr.c. * data/skeletons/glr.cc (b4_post_prologue): Here.
This commit is contained in:
5
TODO
5
TODO
@@ -7,11 +7,6 @@ Several features are not available in all the backends.
|
|||||||
- token constructors: Java and C
|
- token constructors: Java and C
|
||||||
|
|
||||||
* Short term
|
* Short term
|
||||||
** glr.c: too many definitions of YYLLOC_DEFAULT
|
|
||||||
See test 241.
|
|
||||||
|
|
||||||
241. headers.at:187: testing Sane headers: %locations c++ %glr-parser ...
|
|
||||||
|
|
||||||
** consistency
|
** consistency
|
||||||
token vs terminal
|
token vs terminal
|
||||||
|
|
||||||
|
|||||||
@@ -98,18 +98,15 @@ b4_locations_if([,
|
|||||||
[yylloc.initialize ();]m4_ifdef([b4_initial_action], [
|
[yylloc.initialize ();]m4_ifdef([b4_initial_action], [
|
||||||
m4_defn([b4_initial_action])]))])[
|
m4_defn([b4_initial_action])]))])[
|
||||||
|
|
||||||
# Hijack the post prologue to insert early definition of YYLLOC_DEFAULT
|
# Hijack the post prologue to declare yyerror.
|
||||||
# and declaration of yyerror.
|
|
||||||
]m4_append([b4_post_prologue],
|
]m4_append([b4_post_prologue],
|
||||||
[b4_syncline([@oline@], [@ofile@])[
|
[b4_syncline([@oline@], [@ofile@])[
|
||||||
]b4_yylloc_default_define[
|
|
||||||
#define YYRHSLOC(Rhs, K) ((Rhs)[K].yystate.yyloc)
|
|
||||||
]b4_function_declare([yyerror],
|
]b4_function_declare([yyerror],
|
||||||
[static void],b4_locations_if([
|
[static void],b4_locations_if([
|
||||||
[[const ]b4_namespace_ref::b4_parser_class_name[::location_type *yylocationp],
|
[[const ]b4_namespace_ref::b4_parser_class_name[::location_type *yylocationp],
|
||||||
[yylocationp]],])
|
[yylocationp]],])
|
||||||
b4_parse_param,
|
b4_parse_param,
|
||||||
[[const char* msg], [msg]])])
|
[[const char* msg], [msg]])])[
|
||||||
|
|
||||||
|
|
||||||
#undef yynerrs
|
#undef yynerrs
|
||||||
@@ -158,8 +155,7 @@ m4_pushdef([b4_parse_param], m4_defn([b4_parse_param_orig]))dnl
|
|||||||
#if ]b4_api_PREFIX[DEBUG
|
#if ]b4_api_PREFIX[DEBUG
|
||||||
]m4_ifset([b4_parse_param], [ ], [ :])[yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
|
]m4_ifset([b4_parse_param], [ ], [ :])[yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
|
||||||
#endif]b4_parse_param_cons[
|
#endif]b4_parse_param_cons[
|
||||||
{
|
{}
|
||||||
}
|
|
||||||
|
|
||||||
]b4_parser_class_name::~b4_parser_class_name[ ()
|
]b4_parser_class_name::~b4_parser_class_name[ ()
|
||||||
{}
|
{}
|
||||||
|
|||||||
Reference in New Issue
Block a user