]> git.saurik.com Git - bison.git/commitdiff
(YYSTACKEXPANDABLE): Do not evaluate
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 May 2003 06:43:19 +0000 (06:43 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 May 2003 06:43:19 +0000 (06:43 +0000)
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).

data/glr.c

index d04edbd08ac12e0011a0b295348f57d0a3445a98..173d8c2d0c808f63d3787e6e7aaed776f7702c06 100644 (file)
@@ -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