]> git.saurik.com Git - bison.git/commitdiff
(yystype) [defined YYSTYPE]: Define to YYSTYPE, not to our own type.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jul 2004 14:39:34 +0000 (14:39 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jul 2004 14:39:34 +0000 (14:39 +0000)
data/lalr1.cc

index fdd8c2598b282ce9395aecab39234d08c18f4ee0..200f42d20307386fd9132489255b4e294744b9af 100644 (file)
@@ -161,7 +161,9 @@ b4_syncline([@oline@], [@ofile@])[
 # define YYERROR_VERBOSE ]b4_error_verbose[
 #endif
 
 # define YYERROR_VERBOSE ]b4_error_verbose[
 #endif
 
-#ifndef YYSTYPE
+#ifdef YYSTYPE
+typedef YYSTYPE yystype;
+#else
 ]m4_ifdef([b4_stype],
 [b4_syncline([b4_stype_line], [b4_filename])
 typedef union b4_stype yystype;
 ]m4_ifdef([b4_stype],
 [b4_syncline([b4_stype_line], [b4_filename])
 typedef union b4_stype yystype;