]> git.saurik.com Git - bison.git/commitdiff
* data/yacc.c (yyparse): Correct the comment when locations aren't used.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jan 2008 00:58:14 +0000 (00:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jan 2008 00:58:14 +0000 (00:58 +0000)
Problem reported by Claudio Saavedra in
<http://lists.gnu.org/archive/html/bug-bison/2008-01/msg00003.html>.

ChangeLog
data/yacc.c

index dfa0a38ca1fa54a5f2c6e4270cce3fd0822eef9a..3c5421aa7a3e894c28f319f1d13d8cb02d5ee1e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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>.
+
 2008-01-05  Wojciech Polak  <polak@gnu.org>
 
        * data/xslt/xml2xhtml.xsl (xsl:template match="/"): Precede an XHTML
 2008-01-05  Wojciech Polak  <polak@gnu.org>
 
        * data/xslt/xml2xhtml.xsl (xsl:template match="/"): Precede an XHTML
index f76b06f4ffada612c8ae1c1d6d018420dc500164..32a1e20ab870e33ada5110eb27f489ca6846cda1 100644 (file)
@@ -1018,10 +1018,10 @@ b4_c_function_def([yyparse], [int], b4_parse_param)
   YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
 #endif
 
   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.  */
 
      Refer to the stacks thru separate pointers, to allow yyoverflow
      to reallocate them elsewhere.  */