From b0c4a583c0063c95ccd837531df39d270252488e Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sun, 4 Dec 1994 08:56:35 +0000 Subject: [PATCH] added YYSTATE alias --- flex.skl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.40.0