bug-bison
[Top][All Lists]
Advanced

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

Re: comment about locations in data/yacc.c


From: Paul Eggert
Subject: Re: comment about locations in data/yacc.c
Date: Wed, 09 Jan 2008 16:58:49 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Claudio Saavedra <address@hidden> writes:

> Would a patch to make it conditional be considered, or it doesn't worth
> the effort?

Thanks, I installed this:

2008-01-09  Paul Eggert  <address@hidden>

        * data/yacc.c (yyparse): Correct the comment when locations aren't used.
        Problem reported by Claudio Saavedra in
        <http://lists.gnu.org/archive/html/bug-bison/2008-01/msg00003.html>.

Index: data/yacc.c
===================================================================
RCS file: /cvsroot/bison/bison/data/yacc.c,v
retrieving revision 1.169
diff -u -p -r1.169 yacc.c
--- data/yacc.c 29 Oct 2007 17:36:39 -0000      1.169
+++ data/yacc.c 10 Jan 2008 00:58:10 -0000
@@ -1018,10 +1018,10 @@ b4_c_function_def([yyparse], [int], b4_p
   YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
 #endif

-  /* Three stacks and their tools:
-     `yyss': related to states,
-     `yyvs': related to semantic values,
-     `yyls': related to locations.
+  /* The stacks and their tools:
+     `yyss' is related to states.
+     `yyvs' is related to semantic values.]b4_locations_if([[
+     `yyls' is related to locations.]])[

      Refer to the stacks thru separate pointers, to allow yyoverflow
      to reallocate them elsewhere.  */




reply via email to

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