From: Vern Paxson Date: Tue, 21 Sep 1993 20:42:18 +0000 (+0000) Subject: YYSTYPE #define'd to int X-Git-Tag: flex-2-5-5b~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1748e3c90f3547f5b0ddfe2a798f31a4b625e7d6;p=flex YYSTYPE #define'd to int --- 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 + %} %%