mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
(YYSTACKEXPANDABLE): Do not evaluate
YYSTYPE_IS_TRIVIAL or YYSTYPE_IS_TRIVIAL unless they are defined. This fixes a problem reported by John Bowman when the Compaq/HP Alpha cxx compiler happy (e.g. using cxx -D__USE_STD_IOSTREAM -ansi -Wall -gall).
This commit is contained in:
@@ -510,7 +510,8 @@ int yydebug;
|
||||
|
||||
#if (! defined (YYSTACKEXPANDABLE) \
|
||||
&& (! defined (__cplusplus) \
|
||||
|| (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL)))
|
||||
|| (]b4_location_if([[defined (YYLTYPE_IS_TRIVIAL) && YYLTYPE_IS_TRIVIAL \
|
||||
&& ]])[defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
|
||||
#define YYSTACKEXPANDABLE 1
|
||||
#else
|
||||
#define YYSTACKEXPANDABLE 0
|
||||
|
||||
Reference in New Issue
Block a user