* 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 567f76f..ac000da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        Reported by Matt Rosing.
 
index a133108..23139d1 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)
 {