summaryrefslogtreecommitdiff
path: root/flex.skl
diff options
context:
space:
mode:
authorvern <vern>1995-04-20 12:42:51 +0000
committervern <vern>1995-04-20 12:42:51 +0000
commit39c4209d4702e4570dd2bf8c840f8a95260e60e9 (patch)
treeb24a02d77e15d877891e44ec04c82de43c8bbe52 /flex.skl
parenta42275c953f0d3c78abe7ee5470c0ec56acd962c (diff)
downloadflex-39c4209d4702e4570dd2bf8c840f8a95260e60e9.tar.gz
rearrange some definitions; fix YY_NO_UNPUT
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl56
1 files changed, 31 insertions, 25 deletions
diff --git a/flex.skl b/flex.skl
index 3435bfe..983482e 100644
--- a/flex.skl
+++ b/flex.skl
@@ -1,7 +1,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /cvsroot/flex/flex/flex.skl,v 2.82 1995/04/20 11:17:13 vern Exp $
+ * $Header: /cvsroot/flex/flex/flex.skl,v 2.83 1995/04/20 12:42:51 vern Exp $
*/
#define FLEX_SCANNER
@@ -277,6 +277,30 @@ static void yy_flex_free YY_PROTO(( void * ));
%% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
+%- Standard (non-C++) definition
+static yy_state_type yy_get_previous_state YY_PROTO(( void ));
+static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
+static int yy_get_next_buffer YY_PROTO(( void ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
+%*
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+%% code to fiddle yytext and yyleng for yymore() goes here
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+%% code to copy yytext_ptr to yytext[] goes here, if %array
+ yy_c_buf_p = yy_cp;
+
+%% data tables for the DFA and the user's section 1 definitions go here
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
@@ -285,9 +309,11 @@ extern int yywrap YY_PROTO(( void ));
#endif
#endif
+%-
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
+%*
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
@@ -303,30 +329,6 @@ static int input YY_PROTO(( void ));
%*
#endif
-%- Standard (non-C++) definition
-static yy_state_type yy_get_previous_state YY_PROTO(( void ));
-static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
-static int yy_get_next_buffer YY_PROTO(( void ));
-static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
-%*
-
-/* Done after the current pattern has been matched and before the
- * corresponding action - sets up yytext.
- */
-#define YY_DO_BEFORE_ACTION \
- yytext_ptr = yy_bp; \
-%% code to fiddle yytext and yyleng for yymore() goes here
- yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
-%% code to copy yytext_ptr to yytext[] goes here, if %array
- yy_c_buf_p = yy_cp;
-
-%% data tables for the DFA and the user's section 1 definitions go here
-
-/* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
@@ -907,6 +909,7 @@ yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )
%-
+#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
@@ -951,6 +954,9 @@ void yyFlexLexer::yyunput( int c, register char* yy_bp )
yy_hold_char = *yy_cp;
yy_c_buf_p = yy_cp;
}
+%-
+#endif /* ifndef YY_NO_UNPUT */
+%*
%-