]> granicus.if.org Git - graphviz/commitdiff
remove incorrect EXSTYPE redefinition
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 2 Sep 2020 01:47:32 +0000 (18:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Sep 2020 14:39:21 +0000 (07:39 -0700)
Bison's -pPREFIX -- which, incidentally, this parser is not using -- does *not*
miss YYSTYPE. Upcoming changes expose that this detrimentally interferes with
attempts to properly prefix the expr parser. Related to #1806.

lib/expr/expr.h

index 6ed4316024a31aa2a6a8ccb9fdfa65f1666720e9..78bac31078293c800a32552f480e6af5d3b33ef2 100644 (file)
@@ -37,19 +37,6 @@ extern "C" {
 #define extern         extern __IMPORT__
 #endif
 
-/*
- * bison -pPREFIX misses YYSTYPE
- */
-
-#if defined(YYSTYPE) || defined(YYBISON)
-#define EXSTYPE                YYSTYPE
-#else
-#include <exparse.h>
-#if defined(YYSTYPE) || defined(yystype)
-#define EXSTYPE                YYSTYPE
-#endif
-#endif
-
 #include "exparse.h"
 
 #undef extern