summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1993-09-21 20:42:18 +0000
committerVern Paxson <vern@ee.lbl.gov>1993-09-21 20:42:18 +0000
commit1748e3c90f3547f5b0ddfe2a798f31a4b625e7d6 (patch)
treea8a18921bdeb6a1e367a055483ee40291e3ce6f0 /parse.y
parentb70dc5d68d0a9bcef3b4539c6b07ce89533c8fda (diff)
YYSTYPE #define'd to int
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 257d964..46fc7f2 100644
--- a/parse.y
+++ b/parse.y
@@ -43,6 +43,14 @@ void yyerror();
static int madeany = false; /* whether we've made the '.' character class */
int previous_continued_action; /* whether the previous rule's action was '|' */
+/* On some over-ambitious machines, such as DEC Alpha's, the default
+ * token type is "long" instead of "int"; this leads to problems with
+ * declaring yylval in flexdef.h. But so far, all the yacc's I've seen
+ * wrap their definitions of YYSTYPE with "#ifndef YYSTYPE"'s, so the
+ * following should ensure that the default token type is "int".
+ */
+#define YYSTYPE int
+
%}
%%