* data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc

member.
This commit is contained in:
Akim Demaille
2002-10-14 13:00:48 +00:00
parent b0a7a533c9
commit 7ebc83e34d
2 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2002-10-14 Akim Demaille <akim@epita.fr>
* data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc
member.
2002-10-14 Akim Demaille <akim@epita.fr>
* src/tables.c (table_ninf_remap): base -> tab.

View File

@@ -1279,8 +1279,16 @@ yyresolveAction (yySemanticOption* yyopt, yyGLRStack* yystack,
}
#if YYDEBUG
/* FIXME: How can we initialize the lloc bit? */
static yyGLRState YYLEFTMOST_STATE = { 0, 0, -1, NULL, 0, { NULL } };
static yyGLRState YYLEFTMOST_STATE =
{
0, 0, -1, NULL, 0, { NULL },
/* yyloc. */
{
#if YYLTYPE_IS_TRIVIAL
]b4_location_if([ 0, 0, 0, 0])[
#endif
}
};
static void yyreportTree (yySemanticOption* yyx, int yyindent)
{