summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2016-09-15 21:39:41 +0100
committerToby Goodwin <toby@paccrat.org>2017-04-17 22:01:02 +0100
commita4eddefec148f98c790e390d80fbd69811da48c7 (patch)
tree99979ee0c31a1a7317876601e20e9ebc4af938f1 /parse.h
parentd0ee32e585437b76f095379ec84fd753a5d30a3c (diff)
update parse.[ch]
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;