Remove restrictions on expanding GLR stacks in C++.

* data/glr.c:  Remove tests for __cplusplus related to definition of
    YYSTACKEXPANDABLE.
    * doc/bison.texinfo: Rewrite paragraph saying C++ stacks are not
    expandable to instead indicate conditions that prevent their expansion
    in C++.  Reorganize section on GLR semantic values a bit. Remove
    discussion of YYLLOC_DEFAULT. Mention restrictions to POD data.
This commit is contained in:
Paul Hilfinger
2010-07-29 01:43:37 -07:00
parent c61d4fa1d0
commit 20be2f9227
2 changed files with 25 additions and 18 deletions

View File

@@ -576,13 +576,7 @@ int yydebug;
#define YYHEADROOM 2
#ifndef YYSTACKEXPANDABLE
# if (! defined __cplusplus \
|| (]b4_locations_if([[defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
&& ]])[defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))
# define YYSTACKEXPANDABLE 1
# else
# define YYSTACKEXPANDABLE 0
# endif
#endif
#if YYSTACKEXPANDABLE