From: Akim Demaille Date: Mon, 14 Oct 2002 13:00:48 +0000 (+0000) Subject: * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc X-Git-Tag: BISON-1_75~2 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7ebc83e34dd63ee9f9b831c7050a3708e0fdbaa2 * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc member. --- diff --git a/ChangeLog b/ChangeLog index 567f76f9..ac000daf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-14 Akim Demaille + + * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc + member. + 2002-10-14 Akim Demaille * src/tables.c (table_ninf_remap): base -> tab. diff --git a/data/glr.c b/data/glr.c index a1331084..23139d11 100644 --- a/data/glr.c +++ b/data/glr.c @@ -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) {