bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GLR: Initialization of YYLEFTMOST_STATE


From: Akim Demaille
Subject: GLR: Initialization of YYLEFTMOST_STATE
Date: 14 Oct 2002 15:00:45 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

I'm applying this patch.  I must confess I'm not happy with it.  But
I'm not sure how to solve this issue which, I believe, is not of prime
importance right now.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

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

Index: data/glr.c
===================================================================
RCS file: /cvsroot/bison/bison/data/glr.c,v
retrieving revision 1.15
diff -u -u -r1.15 glr.c
--- data/glr.c 14 Oct 2002 08:06:06 -0000 1.15
+++ data/glr.c 14 Oct 2002 12:59:38 -0000
@@ -1279,8 +1279,16 @@
 }
 
 #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)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]