summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-28 12:31:56 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-28 12:31:56 +0000
commit137b56a5c65d26eec13dede7b8f398611aaa008d (patch)
tree7ff549e19f9fb5010d5aff8d4d37f50c377643b1 /Build/source/texk/web2c/omegafonts
parent203d0153798d0cc9813c1672e75c0e0395a1c3b9 (diff)
flex 2.5.39
git-svn-id: svn://tug.org/texlive/trunk@33311 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegafonts')
-rw-r--r--Build/source/texk/web2c/omegafonts/pl-lexer.c388
1 files changed, 182 insertions, 206 deletions
diff --git a/Build/source/texk/web2c/omegafonts/pl-lexer.c b/Build/source/texk/web2c/omegafonts/pl-lexer.c
index f2d39860d47..e7294924b0a 100644
--- a/Build/source/texk/web2c/omegafonts/pl-lexer.c
+++ b/Build/source/texk/web2c/omegafonts/pl-lexer.c
@@ -8,7 +8,7 @@
#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
@@ -180,6 +180,13 @@ extern FILE *yyin, *yyout;
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)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
@@ -371,12 +378,9 @@ static void yy_fatal_error (yyconst char msg[] );
yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
- if ( yyleng + (yy_more_offset) >= YYLMAX ) \
+ if ( yyleng >= YYLMAX ) \
YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
- yy_flex_strncpy( &yytext[(yy_more_offset)], (yytext_ptr), yyleng + 1 ); \
- yyleng += (yy_more_offset); \
- (yy_prev_more_offset) = (yy_more_offset); \
- (yy_more_offset) = 0; \
+ yy_flex_strncpy( yytext, (yytext_ptr), yyleng + 1 ); \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 205
@@ -388,128 +392,95 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static yyconst flex_int16_t yy_acclist[265] =
+static yyconst flex_int16_t yy_accept[800] =
{ 0,
- 206, 204, 205, 1, 204, 205, 2, 205, 3, 204,
- 205, 4, 204, 205, 204, 205, 204, 205, 204, 205,
- 204, 205, 204, 205, 204, 205, 204, 205, 204, 205,
- 204, 205, 204, 205, 204, 205, 204, 205, 204, 205,
- 204, 205, 204, 205, 204, 205, 204, 205, 204, 205,
- 204, 205, 204, 205, 204, 205, 204, 205, 204, 205,
- 1, 180, 9, 42, 8, 8, 6, 179, 7, 31,
- 44, 102, 41, 5, 107, 9, 9, 43, 40, 46,
- 171, 23, 178, 151, 45, 77, 78, 79, 106, 75,
- 9, 150, 33, 32, 85, 86, 82, 83, 84, 181,
-
- 47, 49, 172, 61, 67, 55, 60, 66, 54, 63,
- 69, 57, 62, 68, 56, 59, 65, 53, 58, 64,
- 52, 177, 30, 48, 188, 187, 189, 186, 70, 71,
- 50, 38, 37, 39, 36, 175, 89, 90, 80, 81,
- 11, 100, 147, 159, 24, 146, 110, 148, 182, 158,
- 157, 156, 73, 12, 51, 16, 98, 149, 104, 105,
- 15, 72, 88, 87, 35, 74, 183, 170, 169, 20,
- 184, 173, 174, 14, 145, 13, 144, 164, 163, 162,
- 27, 111, 109, 112, 185, 115, 28, 26, 101, 153,
- 152, 114, 108, 154, 29, 201, 113, 91, 166, 165,
-
- 167, 176, 21, 76, 120, 122, 119, 117, 123, 121,
- 116, 118, 141, 140, 142, 161, 34, 155, 194, 199,
- 202, 197, 103, 17, 168, 22, 143, 160, 136, 138,
- 135, 133, 139, 137, 132, 134, 192, 195, 190, 25,
- 10, 99, 203, 93, 94, 95, 96, 97, 196, 200,
- 198, 193, 191, 128, 130, 127, 125, 131, 129, 124,
- 126, 92, 18, 19
- } ;
-
-static yyconst flex_int16_t yy_accept[801] =
- { 0,
- 1, 1, 1, 2, 4, 7, 9, 12, 15, 17,
- 19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
- 39, 41, 43, 45, 47, 49, 51, 53, 55, 57,
- 59, 61, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
- 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
- 63, 63, 63, 63, 63, 63, 63, 64, 64, 64,
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
- 64, 64, 64, 64, 64, 64, 64, 65, 65, 66,
-
- 67, 67, 67, 67, 67, 67, 67, 67, 67, 67,
- 68, 68, 68, 68, 68, 68, 68, 68, 68, 68,
- 68, 69, 69, 69, 69, 70, 70, 70, 71, 71,
- 72, 73, 74, 74, 74, 74, 74, 74, 74, 74,
- 75, 75, 75, 75, 76, 76, 76, 76, 77, 78,
- 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
- 79, 79, 79, 79, 79, 80, 80, 80, 80, 80,
- 80, 81, 81, 81, 81, 81, 81, 81, 81, 81,
- 82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
- 82, 82, 82, 82, 82, 82, 82, 83, 83, 84,
-
- 84, 84, 85, 85, 85, 85, 86, 86, 86, 86,
- 86, 86, 86, 86, 86, 86, 87, 88, 89, 89,
- 89, 89, 89, 90, 91, 92, 93, 93, 93, 93,
- 93, 93, 93, 93, 93, 93, 93, 93, 93, 94,
- 94, 94, 94, 95, 95, 96, 97, 97, 98, 99,
- 100, 100, 100, 101, 101, 101, 101, 101, 102, 103,
- 103, 103, 103, 103, 103, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
- 104, 104, 104, 104, 104, 104, 104, 104, 105, 106,
- 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
-
- 117, 118, 119, 120, 121, 122, 122, 123, 123, 123,
- 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
- 123, 123, 123, 123, 123, 123, 124, 125, 125, 125,
- 125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
- 125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
- 125, 126, 127, 128, 128, 128, 129, 129, 129, 129,
- 129, 129, 130, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 132, 132, 132, 132, 132, 132, 132,
- 133, 133, 133, 134, 135, 135, 135, 135, 135, 135,
- 136, 136, 137, 137, 137, 137, 137, 137, 137, 138,
-
- 139, 140, 141, 141, 141, 142, 142, 143, 143, 143,
- 143, 143, 143, 143, 143, 143, 143, 143, 144, 144,
- 144, 144, 144, 144, 145, 146, 147, 147, 147, 147,
- 147, 147, 147, 148, 149, 149, 149, 149, 150, 150,
- 150, 150, 150, 150, 150, 150, 151, 152, 153, 153,
- 153, 153, 153, 153, 153, 153, 153, 154, 154, 154,
- 154, 154, 154, 154, 155, 155, 155, 156, 156, 156,
- 156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
- 156, 156, 156, 156, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
-
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 158, 158, 158, 158, 158, 158, 158, 158, 158,
- 158, 158, 159, 159, 159, 159, 159, 159, 159, 159,
- 159, 159, 159, 160, 161, 161, 162, 163, 164, 165,
- 165, 166, 167, 167, 168, 168, 168, 168, 168, 168,
- 168, 169, 169, 169, 169, 169, 170, 171, 172, 172,
- 173, 174, 174, 174, 174, 174, 175, 175, 175, 175,
- 175, 175, 176, 176, 176, 177, 177, 178, 178, 179,
- 180, 180, 180, 181, 181, 182, 182, 183, 184, 184,
- 184, 184, 184, 184, 185, 185, 185, 185, 185, 185,
-
- 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
- 185, 186, 186, 186, 187, 187, 188, 188, 188, 188,
- 188, 188, 188, 188, 188, 188, 188, 188, 189, 189,
- 189, 189, 189, 190, 190, 190, 190, 190, 191, 191,
- 191, 192, 193, 194, 195, 195, 195, 195, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 197, 197, 197,
- 197, 197, 197, 198, 199, 199, 199, 200, 201, 202,
- 202, 203, 203, 203, 204, 204, 205, 205, 206, 207,
- 208, 209, 210, 211, 212, 213, 214, 215, 216, 216,
- 217, 217, 217, 218, 218, 218, 218, 218, 219, 219,
-
- 219, 220, 220, 220, 220, 221, 222, 223, 224, 224,
- 225, 225, 225, 226, 226, 226, 227, 227, 228, 229,
- 229, 230, 231, 232, 233, 234, 235, 236, 237, 237,
- 238, 239, 240, 240, 240, 240, 240, 240, 241, 242,
- 242, 243, 243, 243, 243, 243, 244, 244, 244, 244,
- 245, 246, 247, 248, 249, 249, 249, 250, 250, 250,
- 251, 252, 252, 252, 252, 253, 254, 254, 254, 254,
- 254, 254, 254, 254, 254, 254, 254, 254, 255, 256,
- 257, 258, 259, 260, 261, 262, 262, 262, 262, 262,
- 262, 262, 262, 263, 263, 263, 263, 264, 265, 265
+ 0, 0, 206, 204, 1, 2, 3, 4, 204, 204,
+ 204, 204, 204, 204, 204, 204, 204, 204, 204, 204,
+ 204, 204, 204, 204, 204, 204, 204, 204, 204, 204,
+ 204, 1, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 180,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 9, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 42, 0, 8, 8,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 179, 0, 0, 0, 7, 0, 0, 31, 0, 44,
+ 102, 41, 0, 0, 0, 0, 0, 0, 0, 5,
+ 0, 0, 0, 107, 0, 0, 0, 9, 9, 43,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 40, 0, 0, 0, 0, 0,
+ 46, 0, 0, 0, 0, 0, 0, 0, 0, 171,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 23, 0, 178, 0,
+
+ 0, 151, 0, 0, 0, 45, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 77, 78, 79, 0, 0,
+ 0, 0, 106, 75, 9, 150, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 33, 0,
+ 0, 0, 32, 0, 85, 86, 0, 82, 83, 84,
+ 0, 0, 181, 0, 0, 0, 0, 47, 49, 0,
+ 0, 0, 0, 0, 172, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 61, 67, 55,
+ 60, 66, 54, 63, 69, 57, 62, 68, 56, 59,
+
+ 65, 53, 58, 64, 52, 0, 177, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 30, 48, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 188, 187, 189, 0, 0, 186, 0, 0, 0, 0,
+ 0, 70, 71, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 50, 0, 0, 0, 0, 0, 0, 38,
+ 0, 0, 37, 39, 0, 0, 0, 0, 0, 36,
+ 0, 175, 0, 0, 0, 0, 0, 0, 89, 90,
+
+ 80, 81, 0, 0, 11, 0, 100, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 147, 0, 0,
+ 0, 0, 0, 159, 24, 146, 0, 0, 0, 0,
+ 0, 0, 110, 148, 0, 0, 0, 182, 0, 0,
+ 0, 0, 0, 0, 0, 158, 157, 156, 0, 0,
+ 0, 0, 0, 0, 0, 0, 73, 0, 0, 0,
+ 0, 0, 0, 12, 0, 0, 51, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 16, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 98, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 149, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 104, 105, 0, 15, 72, 88, 87, 0,
+ 35, 74, 0, 183, 0, 0, 0, 0, 0, 0,
+ 170, 0, 0, 0, 0, 169, 20, 184, 0, 173,
+ 174, 0, 0, 0, 0, 14, 0, 0, 0, 0,
+ 0, 145, 0, 0, 13, 0, 144, 0, 164, 163,
+ 0, 0, 162, 0, 27, 0, 111, 109, 0, 0,
+ 0, 0, 0, 112, 0, 0, 0, 0, 0, 0,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 185, 0, 0, 115, 0, 28, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 26, 0, 0,
+ 0, 0, 101, 0, 0, 0, 0, 153, 0, 0,
+ 152, 114, 108, 154, 0, 0, 0, 29, 0, 0,
+ 0, 0, 0, 0, 0, 0, 201, 0, 0, 0,
+ 0, 0, 113, 91, 0, 0, 166, 165, 167, 0,
+ 176, 0, 0, 21, 0, 76, 0, 120, 122, 119,
+ 117, 123, 121, 116, 118, 141, 140, 142, 0, 161,
+ 0, 0, 34, 0, 0, 0, 0, 155, 0, 0,
+
+ 194, 0, 0, 0, 199, 202, 197, 103, 0, 17,
+ 0, 0, 168, 0, 0, 22, 0, 143, 160, 0,
+ 136, 138, 135, 133, 139, 137, 132, 134, 0, 192,
+ 195, 190, 0, 0, 0, 0, 0, 25, 10, 0,
+ 99, 0, 0, 0, 0, 203, 0, 0, 0, 93,
+ 94, 95, 96, 97, 0, 0, 196, 0, 0, 200,
+ 198, 0, 0, 0, 193, 191, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 128, 130, 127,
+ 125, 131, 129, 124, 126, 0, 0, 0, 0, 0,
+ 0, 0, 92, 0, 0, 0, 18, 19, 0
} ;
@@ -957,30 +928,19 @@ static yyconst flex_int32_t yy_rule_can_match_eol[206] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, };
+static yy_state_type yy_last_accepting_state;
+static char *yy_last_accepting_cpos;
+
extern int yy_flex_debug;
int yy_flex_debug = 0;
-static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
-static char *yy_full_match;
-static int yy_lp;
-#define REJECT \
-{ \
-*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
-yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
-++(yy_lp); \
-goto find_rule; \
-}
-
-static int yy_more_offset = 0;
-static int yy_prev_more_offset = 0;
-#define yymore() ((yy_more_offset) = yy_flex_strlen( yytext ))
-#define YY_NEED_STRLEN
+/* The intent behind this definition is that it'll catch
+ * any uses of REJECT which flex missed.
+ */
+#define REJECT reject_used_but_not_detected
+#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
-#define YY_RESTORE_YY_MORE_OFFSET \
- { \
- (yy_more_offset) = (yy_prev_more_offset); \
- yyleng -= (yy_more_offset); \
- }
+#define YY_RESTORE_YY_MORE_OFFSET
#ifndef YYLMAX
#define YYLMAX 8192
#endif
@@ -1046,7 +1006,7 @@ static void scan_hex_string(void);
/* For Solaris's lex, to increase tables sizes --RP */
/* Space before number keeps ancient flex happy. */
-#line 1050 "pl-lexer.c"
+#line 1010 "pl-lexer.c"
#define INITIAL 0
@@ -1228,11 +1188,6 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 74 "pl-lexer.l"
-
-
-#line 1235 "pl-lexer.c"
-
if ( !(yy_init) )
{
(yy_init) = 1;
@@ -1241,12 +1196,6 @@ YY_DECL
YY_USER_INIT;
#endif
- /* Create the reject buffer large enough to save one state per allowed character. */
- if ( ! (yy_state_buf) )
- (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
- if ( ! (yy_state_buf) )
- YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
-
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
@@ -1265,6 +1214,12 @@ YY_DECL
yy_load_buffer_state( );
}
+ {
+#line 74 "pl-lexer.l"
+
+
+#line 1222 "pl-lexer.c"
+
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
@@ -1278,14 +1233,15 @@ YY_DECL
yy_bp = yy_cp;
yy_current_state = (yy_start);
-
- (yy_state_ptr) = (yy_state_buf);
- *(yy_state_ptr)++ = yy_current_state;
-
yy_match:
do
{
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -1293,36 +1249,21 @@ yy_match:
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- *(yy_state_ptr)++ = yy_current_state;
++yy_cp;
}
while ( yy_current_state != 799 );
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
yy_find_action:
- yy_current_state = *--(yy_state_ptr);
- (yy_lp) = yy_accept[yy_current_state];
-find_rule: /* we branch to this label when backing up */
- for ( ; ; ) /* until we find what rule we matched */
- {
- if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
- {
- yy_act = yy_acclist[(yy_lp)];
- {
- (yy_full_match) = yy_cp;
- break;
- }
- }
- --yy_cp;
- yy_current_state = *--(yy_state_ptr);
- (yy_lp) = yy_accept[yy_current_state];
- }
+ yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
{
- int yyl;
- for ( yyl = (yy_prev_more_offset); yyl < yyleng; ++yyl )
+ yy_size_t yyl;
+ for ( yyl = 0; yyl < yyleng; ++yyl )
if ( yytext[yyl] == '\n' )
yylineno++;
@@ -1333,6 +1274,13 @@ do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of YY_DO_BEFORE_ACTION */
+ *yy_cp = (yy_hold_char);
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+ goto yy_find_action;
+
case 1:
YY_RULE_SETUP
#line 76 "pl-lexer.l"
@@ -2369,9 +2317,9 @@ YY_RULE_SETUP
#line 324 "pl-lexer.l"
ECHO;
YY_BREAK
-#line 2373 "pl-lexer.c"
- case YY_STATE_EOF(INITIAL):
- yyterminate();
+#line 2321 "pl-lexer.c"
+case YY_STATE_EOF(INITIAL):
+ yyterminate();
case YY_END_OF_BUFFER:
{
@@ -2436,7 +2384,8 @@ ECHO;
else
{
- yy_cp = (yy_c_buf_p);
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
}
}
@@ -2500,6 +2449,7 @@ ECHO;
"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 */
/* yy_get_next_buffer - try to read in a new buffer
@@ -2561,8 +2511,37 @@ static int yy_get_next_buffer (void)
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
- YY_FATAL_ERROR(
-"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
+
+ int yy_c_buf_p_offset =
+ (int) ((yy_c_buf_p) - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ yy_size_t new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
+ number_to_move - 1;
}
@@ -2621,12 +2600,14 @@ static int yy_get_next_buffer (void)
yy_current_state = (yy_start);
- (yy_state_ptr) = (yy_state_buf);
- *(yy_state_ptr)++ = yy_current_state;
-
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -2634,7 +2615,6 @@ static int yy_get_next_buffer (void)
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- *(yy_state_ptr)++ = yy_current_state;
}
return yy_current_state;
@@ -2648,8 +2628,14 @@ static int yy_get_next_buffer (void)
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
-
+ register char *yy_cp = (yy_c_buf_p);
+
register YY_CHAR yy_c = 1;
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
@@ -2658,8 +2644,6 @@ static int yy_get_next_buffer (void)
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 799);
- if ( ! yy_is_jam )
- *(yy_state_ptr)++ = yy_current_state;
return yy_is_jam ? 0 : yy_current_state;
}
@@ -3108,7 +3092,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
- int i;
+ yy_size_t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
@@ -3256,11 +3240,6 @@ static int yy_init_globals (void)
(yy_init) = 0;
(yy_start) = 0;
- (yy_state_buf) = 0;
- (yy_state_ptr) = 0;
- (yy_full_match) = 0;
- (yy_lp) = 0;
-
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
@@ -3291,9 +3270,6 @@ int yylex_destroy (void)
yyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
- yyfree ( (yy_state_buf) );
- (yy_state_buf) = NULL;
-
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals( );