]> git.saurik.com Git - bison.git/commitdiff
* data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc
authorAkim Demaille <akim@epita.fr>
Mon, 14 Oct 2002 13:00:48 +0000 (13:00 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 14 Oct 2002 13:00:48 +0000 (13:00 +0000)
member.

ChangeLog
data/glr.c

index 567f76f9c1e7bb28c06769c7a4281c83968b4e0a..ac000daf14e7cca07984c6b6069efc6370fc40cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index a133108455d2e3d356c9659b5bb7d06e51071369..23139d110a833ba4396863d4ab90198eb061d3a4 100644 (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)
 {