]> granicus.if.org Git - flex/commitdiff
Move definition of yy_flex_strcpy to come after #define of yytext_ptr
authorVern Paxson <vern@ee.lbl.gov>
Wed, 16 Mar 1994 12:09:24 +0000 (12:09 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Wed, 16 Mar 1994 12:09:24 +0000 (12:09 +0000)
flex.skl

index 4444e081bb8557b330a702c8ed06e5d178e63e86..1b0c2d7c57bc46dd96969945bd1b36df539e7a04 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -235,10 +235,6 @@ static void yy_pop_state YY_PROTO(( void ));
 static int yy_top_state YY_PROTO(( void ));
 %*
 
-#ifndef yytext_ptr
-static void yy_flex_strcpy YY_PROTO(( char *, const char * ));
-#endif
-
 static void *yy_flex_alloc YY_PROTO(( unsigned int ));
 static void *yy_flex_realloc YY_PROTO(( void *ptr, unsigned int ));
 static void yy_flex_free YY_PROTO(( void * ));
@@ -247,6 +243,10 @@ static void yy_flex_free YY_PROTO(( void * ));
 
 %% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
 
+#ifndef yytext_ptr
+static void yy_flex_strcpy YY_PROTO(( char *, const char * ));
+#endif
+
 %- Standard (non-C++) definition
 #ifdef __cplusplus
 static int yyinput YY_PROTO(( void ));