From: Vern Paxson Date: Sun, 4 Dec 1994 08:56:35 +0000 (+0000) Subject: added YYSTATE alias X-Git-Tag: flex-2-5-5b~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0c4a583c0063c95ccd837531df39d270252488e;p=flex added YYSTATE alias --- diff --git a/flex.skl b/flex.skl index 1d7b4ac..a830197 100644 --- a/flex.skl +++ b/flex.skl @@ -84,9 +84,11 @@ class istream; #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. */ #define YY_START ((yy_start - 1) / 2) +#define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)