summaryrefslogtreecommitdiff
path: root/skel.c
diff options
context:
space:
mode:
Diffstat (limited to 'skel.c')
-rw-r--r--skel.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/skel.c b/skel.c
index 45a4a11..6dc7644 100644
--- a/skel.c
+++ b/skel.c
@@ -90,7 +90,7 @@ const char *skel[] = {
"#define FLEX_SCANNER",
"#define YY_FLEX_MAJOR_VERSION 2",
"#define YY_FLEX_MINOR_VERSION 5",
- "#define YY_FLEX_SUBMINOR_VERSION 37",
+ "#define YY_FLEX_SUBMINOR_VERSION 39",
"#if YY_FLEX_SUBMINOR_VERSION > 0",
"#define FLEX_BETA",
"#endif",
@@ -570,9 +570,17 @@ const char *skel[] = {
" if ( yytext[yyl] == '\\n' )\\",
" --yylineno;\\",
" }while(0)",
+ " #define YY_LINENO_REWIND_TO(dst) \\",
+ " do {\\",
+ " const char *p;\\",
+ " for ( p = yy_cp-1; p >= (dst); --p)\\",
+ " if ( *p == '\\n' )\\",
+ " --yylineno;\\",
+ " }while(0)",
" ]],",
" [[",
" #define YY_LESS_LINENO(n)",
+ " #define YY_LINENO_REWIND_TO(ptr)",
" ]])",
"]])",
"",
@@ -794,6 +802,11 @@ const char *skel[] = {
"",
"%% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here",
"",
+ "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
+ "[[",
+ "%% [1.5] DFA",
+ "]])",
+ "",
"%if-c-only Standard (non-C++) definition",
"",
"m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
@@ -1483,8 +1496,6 @@ const char *skel[] = {
" ]])",
"]])",
"",
- "%% [7.0] user's declarations go here",
- "",
"m4_ifdef( [[M4_YY_BISON_LVAL]],",
"[[",
" yylval = yylval_param;",
@@ -1540,6 +1551,9 @@ const char *skel[] = {
" yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
" }",
"",
+ " {",
+ "%% [7.0] user's declarations go here",
+ "",
" while ( 1 ) /* loops until end-of-file is reached */",
" {",
"%% [8.0] yymore()-related code goes here",
@@ -1697,6 +1711,7 @@ const char *skel[] = {
" \"fatal flex scanner internal error--no action found\" );",
" } /* end of action switch */",
" } /* end of scanning one token */",
+ " } /* end of user's declarations */",
"} /* end of yylex */",
"%ok-for-header",
"",
@@ -2571,7 +2586,7 @@ const char *skel[] = {
" YY_BUFFER_STATE b;",
" char *buf;",
" yy_size_t n;",
- " int i;",
+ " yy_size_t i;",
" m4_dnl M4_YY_DECL_GUTS_VAR();",
"",
" /* Get memory for full buffer, including space for trailing EOB's. */",