summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2008-01-10 00:58:14 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2008-01-10 00:58:14 +0000
commit5d1cfef46d61877d29ee9d638317f4ca3c3915c9 (patch)
tree0d36346eeb91671d2ae724f1085cbed73a9107cb
parente2dcf9964a69814d5c746a0a7003902e18b9ce63 (diff)
downloadbison-5d1cfef46d61877d29ee9d638317f4ca3c3915c9.tar.gz
* 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>.
-rw-r--r--ChangeLog6
-rw-r--r--data/yacc.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index dfa0a38c..3c5421aa 100644
--- 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
diff --git a/data/yacc.c b/data/yacc.c
index f76b06f4..32a1e20a 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -1018,10 +1018,10 @@ b4_c_function_def([yyparse], [int], b4_parse_param)
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. */