summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/parse.h b/parse.h
index c193710..8d237cb 100644
--- a/parse.h
+++ b/parse.h
@@ -1,7 +1,3 @@
-#ifndef YYERRCODE
-#define YYERRCODE 256
-#endif
-
#define ANDAND 257
#define BACKBACK 258
#define BANG 259
@@ -26,6 +22,12 @@
#define WHILE 278
#define WORD 279
#define HUH 280
+#ifdef YYSTYPE
+#undef YYSTYPE_IS_DECLARED
+#define YYSTYPE_IS_DECLARED 1
+#endif
+#ifndef YYSTYPE_IS_DECLARED
+#define YYSTYPE_IS_DECLARED 1
typedef union {
struct Node *node;
struct Redir redir;
@@ -34,4 +36,5 @@ typedef union {
struct Word word;
char *keyword;
} YYSTYPE;
+#endif /* !YYSTYPE_IS_DECLARED */
extern YYSTYPE yylval;