6 #define YY_INT_ALIGNED short int
11 #define YY_FLEX_MAJOR_VERSION 2
12 #define YY_FLEX_MINOR_VERSION 5
13 #define YY_FLEX_SUBMINOR_VERSION 35
14 #if YY_FLEX_SUBMINOR_VERSION > 0
35 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
40 #ifndef __STDC_LIMIT_MACROS
41 #define __STDC_LIMIT_MACROS 1
45 typedef int8_t flex_int8_t;
46 typedef uint8_t flex_uint8_t;
47 typedef int16_t flex_int16_t;
48 typedef uint16_t flex_uint16_t;
49 typedef int32_t flex_int32_t;
50 typedef uint32_t flex_uint32_t;
52 typedef signed char flex_int8_t;
53 typedef short int flex_int16_t;
54 typedef int flex_int32_t;
55 typedef unsigned char flex_uint8_t;
56 typedef unsigned short int flex_uint16_t;
57 typedef unsigned int flex_uint32_t;
61 #define INT8_MIN (-128)
64 #define INT16_MIN (-32767-1)
67 #define INT32_MIN (-2147483647-1)
70 #define INT8_MAX (127)
73 #define INT16_MAX (32767)
76 #define INT32_MAX (2147483647)
79 #define UINT8_MAX (255U)
82 #define UINT16_MAX (65535U)
85 #define UINT32_MAX (4294967295U)
100 #if defined (__STDC__)
108 #define yyconst const
121 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
124 #ifndef YY_TYPEDEF_YY_SCANNER_T
125 #define YY_TYPEDEF_YY_SCANNER_T
126 typedef void* yyscan_t;
131 #define yyin yyg->yyin_r
132 #define yyout yyg->yyout_r
133 #define yyextra yyg->yyextra_r
134 #define yyleng yyg->yyleng_r
135 #define yytext yyg->yytext_r
136 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
137 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
138 #define yy_flex_debug yyg->yy_flex_debug_r
144 #define BEGIN yyg->yy_start = 1 + 2 *
150 #define YY_START ((yyg->yy_start - 1) / 2)
151 #define YYSTATE YY_START
154 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
157 #define YY_NEW_FILE fts0trestart(yyin ,yyscanner )
159 #define YY_END_OF_BUFFER_CHAR 0
168 #define YY_BUF_SIZE 32768
170 #define YY_BUF_SIZE 16384
176 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
178 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
179 #define YY_TYPEDEF_YY_BUFFER_STATE
183 #define EOB_ACT_CONTINUE_SCAN 0
184 #define EOB_ACT_END_OF_FILE 1
185 #define EOB_ACT_LAST_MATCH 2
187 #define YY_LESS_LINENO(n)
194 int yyless_macro_arg = (n); \
195 YY_LESS_LINENO(yyless_macro_arg);\
196 *yy_cp = yyg->yy_hold_char; \
197 YY_RESTORE_YY_MORE_OFFSET \
198 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
199 YY_DO_BEFORE_ACTION; \
203 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
205 #ifndef YY_TYPEDEF_YY_SIZE_T
206 #define YY_TYPEDEF_YY_SIZE_T
207 typedef size_t yy_size_t;
210 #ifndef YY_STRUCT_YY_BUFFER_STATE
211 #define YY_STRUCT_YY_BUFFER_STATE
222 yy_size_t yy_buf_size;
233 int yy_is_our_buffer;
240 int yy_is_interactive;
256 int yy_buffer_status;
258 #define YY_BUFFER_NEW 0
259 #define YY_BUFFER_NORMAL 1
270 #define YY_BUFFER_EOF_PENDING 2
281 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
282 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
288 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
290 void fts0trestart (FILE *input_file ,yyscan_t yyscanner );
291 void fts0t_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
292 YY_BUFFER_STATE fts0t_create_buffer (FILE *
file,
int size ,yyscan_t yyscanner );
293 void fts0t_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
294 void fts0t_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
295 void fts0tpush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
296 void fts0tpop_buffer_state (yyscan_t yyscanner );
298 static void fts0tensure_buffer_stack (yyscan_t yyscanner );
299 static void fts0t_load_buffer_state (yyscan_t yyscanner );
300 static void fts0t_init_buffer (YY_BUFFER_STATE b,FILE *
file ,yyscan_t yyscanner );
302 #define YY_FLUSH_BUFFER fts0t_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
304 YY_BUFFER_STATE fts0t_scan_buffer (
char *base,yy_size_t
size ,yyscan_t yyscanner );
305 YY_BUFFER_STATE fts0t_scan_string (yyconst
char *yy_str ,yyscan_t yyscanner );
306 YY_BUFFER_STATE fts0t_scan_bytes (yyconst
char *bytes,
int len ,yyscan_t yyscanner );
308 void *fts0talloc (yy_size_t , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
309 void *fts0trealloc (
void *,yy_size_t , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
310 void fts0tfree (
void * , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
312 #define yy_new_buffer fts0t_create_buffer
314 #define yy_set_interactive(is_interactive) \
316 if ( ! YY_CURRENT_BUFFER ){ \
317 fts0tensure_buffer_stack (yyscanner); \
318 YY_CURRENT_BUFFER_LVALUE = \
319 fts0t_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
321 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
324 #define yy_set_bol(at_bol) \
326 if ( ! YY_CURRENT_BUFFER ){\
327 fts0tensure_buffer_stack (yyscanner); \
328 YY_CURRENT_BUFFER_LVALUE = \
329 fts0t_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
331 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
334 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
338 #define fts0twrap(n) 1
339 #define YY_SKIP_YYWRAP
341 typedef unsigned char YY_CHAR;
343 typedef int yy_state_type;
345 #define yytext_ptr yytext_r
347 static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
348 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
349 static int yy_get_next_buffer (yyscan_t yyscanner );
350 static void yy_fatal_error (yyconst
char msg[] , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
355 #define YY_DO_BEFORE_ACTION \
356 yyg->yytext_ptr = yy_bp; \
357 yyleng = (size_t) (yy_cp - yy_bp); \
358 yyg->yy_hold_char = *yy_cp; \
360 yyg->yy_c_buf_p = yy_cp;
362 #define YY_NUM_RULES 7
363 #define YY_END_OF_BUFFER 8
368 flex_int32_t yy_verify;
371 static yyconst flex_int16_t yy_accept[17] =
373 4, 4, 8, 4, 1, 6, 1, 5, 5, 2,
377 static yyconst flex_int32_t yy_ec[256] =
379 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
380 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
381 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
382 1, 4, 1, 5, 1, 1, 6, 1, 1, 1,
383 1, 7, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
387 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
392 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
393 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
394 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
395 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
396 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
398 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
399 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 static yyconst flex_int32_t yy_meta[8] =
414 static yyconst flex_int16_t yy_base[20] =
416 0, 0, 18, 0, 6, 21, 0, 9, 21, 0,
417 0, 0, 0, 4, 21, 21, 10, 11, 15
420 static yyconst flex_int16_t yy_def[20] =
422 16, 1, 16, 17, 17, 16, 18, 19, 16, 17,
423 17, 5, 18, 19, 16, 0, 16, 16, 16
426 static yyconst flex_int16_t yy_nxt[29] =
428 4, 5, 6, 7, 8, 9, 10, 12, 15, 13,
429 11, 11, 13, 15, 13, 14, 14, 16, 14, 14,
430 3, 16, 16, 16, 16, 16, 16, 16
433 static yyconst flex_int16_t yy_chk[29] =
435 1, 1, 1, 1, 1, 1, 1, 5, 14, 5,
436 17, 17, 18, 8, 18, 19, 19, 3, 19, 19,
437 16, 16, 16, 16, 16, 16, 16, 16
443 #define REJECT reject_used_but_not_detected
444 #define yymore() yymore_used_but_not_detected
445 #define YY_MORE_ADJ 0
446 #define YY_RESTORE_YY_MORE_OFFSET
471 #line 27 "fts0tlex.l"
474 #include "fts0pars.h"
477 #define YY_DECL int fts_tlexer(YYSTYPE* val, yyscan_t yyscanner)
479 #define YY_NO_INPUT 1
480 #line 480 "fts0tlex.cc"
484 #ifndef YY_NO_UNISTD_H
492 #ifndef YY_EXTRA_TYPE
493 #define YY_EXTRA_TYPE void *
501 YY_EXTRA_TYPE yyextra_r;
504 FILE *yyin_r, *yyout_r;
514 int yy_did_buffer_switch_on_eof;
515 int yy_start_stack_ptr;
516 int yy_start_stack_depth;
518 yy_state_type yy_last_accepting_state;
519 char* yy_last_accepting_cpos;
530 static int yy_init_globals (yyscan_t yyscanner );
532 int fts0tlex_init (yyscan_t* scanner);
534 int fts0tlex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
539 int fts0tlex_destroy (yyscan_t yyscanner );
541 int fts0tget_debug (yyscan_t yyscanner );
543 void fts0tset_debug (
int debug_flag ,yyscan_t yyscanner );
545 YY_EXTRA_TYPE fts0tget_extra (yyscan_t yyscanner );
547 void fts0tset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
549 FILE *fts0tget_in (yyscan_t yyscanner );
551 void fts0tset_in (FILE * in_str ,yyscan_t yyscanner );
553 FILE *fts0tget_out (yyscan_t yyscanner );
555 void fts0tset_out (FILE * out_str ,yyscan_t yyscanner );
557 int fts0tget_leng (yyscan_t yyscanner );
559 char *fts0tget_text (yyscan_t yyscanner );
561 int fts0tget_lineno (yyscan_t yyscanner );
563 void fts0tset_lineno (
int line_number ,yyscan_t yyscanner );
569 #ifndef YY_SKIP_YYWRAP
571 extern "C" int fts0twrap (yyscan_t yyscanner );
573 extern int fts0twrap (yyscan_t yyscanner );
578 static void yy_flex_strncpy (
char *,yyconst
char *,
int , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)));
581 #ifdef YY_NEED_STRLEN
582 static int yy_flex_strlen (yyconst
char * , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)));
588 static int yyinput (yyscan_t yyscanner );
590 static int input (yyscan_t yyscanner );
596 #ifndef YY_READ_BUF_SIZE
599 #define YY_READ_BUF_SIZE 16384
601 #define YY_READ_BUF_SIZE 8192
610 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
617 #define YY_INPUT(buf,result,max_size) \
618 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
622 for ( n = 0; n < max_size && \
623 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
626 buf[n++] = (char) c; \
627 if ( c == EOF && ferror( yyin ) ) \
628 YY_FATAL_ERROR( "input in flex scanner failed" ); \
634 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
636 if( errno != EINTR) \
638 YY_FATAL_ERROR( "input in flex scanner failed" ); \
654 #define yyterminate() return YY_NULL
658 #ifndef YY_START_STACK_INCR
659 #define YY_START_STACK_INCR 25
663 #ifndef YY_FATAL_ERROR
664 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
673 #define YY_DECL_IS_OURS 1
675 extern int fts0tlex (yyscan_t yyscanner);
677 #define YY_DECL int fts0tlex (yyscan_t yyscanner)
683 #ifndef YY_USER_ACTION
684 #define YY_USER_ACTION
689 #define YY_BREAK break;
692 #define YY_RULE_SETUP \
699 register yy_state_type yy_current_state;
700 register char *yy_cp, *yy_bp;
704 #line 44 "fts0tlex.l"
707 #line 707 "fts0tlex.cc"
717 if ( ! yyg->yy_start )
726 if ( ! YY_CURRENT_BUFFER ) {
727 fts0tensure_buffer_stack (yyscanner);
728 YY_CURRENT_BUFFER_LVALUE =
729 fts0t_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
732 fts0t_load_buffer_state(yyscanner );
737 yy_cp = yyg->yy_c_buf_p;
740 *yy_cp = yyg->yy_hold_char;
747 yy_current_state = yyg->yy_start;
751 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
752 if ( yy_accept[yy_current_state] )
754 yyg->yy_last_accepting_state = yy_current_state;
755 yyg->yy_last_accepting_cpos = yy_cp;
757 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
759 yy_current_state = (int) yy_def[yy_current_state];
760 if ( yy_current_state >= 17 )
761 yy_c = yy_meta[(
unsigned int) yy_c];
763 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
766 while ( yy_current_state != 16 );
767 yy_cp = yyg->yy_last_accepting_cpos;
768 yy_current_state = yyg->yy_last_accepting_state;
771 yy_act = yy_accept[yy_current_state];
781 *yy_cp = yyg->yy_hold_char;
782 yy_cp = yyg->yy_last_accepting_cpos;
783 yy_current_state = yyg->yy_last_accepting_state;
788 #line 46 "fts0tlex.l"
793 #line 48 "fts0tlex.l"
795 val->oper = fts0tget_text(yyscanner)[0];
802 #line 54 "fts0tlex.l"
804 val->token = strdup(fts0tget_text(yyscanner));
811 #line 60 "fts0tlex.l"
813 val->token = strdup(fts0tget_text(yyscanner));
820 #line 65 "fts0tlex.l"
826 #line 66 "fts0tlex.l"
831 #line 68 "fts0tlex.l"
834 #line 834 "fts0tlex.cc"
835 case YY_STATE_EOF(INITIAL):
838 case YY_END_OF_BUFFER:
841 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
844 *yy_cp = yyg->yy_hold_char;
845 YY_RESTORE_YY_MORE_OFFSET
847 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
858 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
859 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
860 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
870 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
872 yy_state_type yy_next_state;
874 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
876 yy_current_state = yy_get_previous_state( yyscanner );
887 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
889 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
894 yy_cp = ++yyg->yy_c_buf_p;
895 yy_current_state = yy_next_state;
901 yy_cp = yyg->yy_last_accepting_cpos;
902 yy_current_state = yyg->yy_last_accepting_state;
907 else switch ( yy_get_next_buffer( yyscanner ) )
909 case EOB_ACT_END_OF_FILE:
911 yyg->yy_did_buffer_switch_on_eof = 0;
913 if ( fts0twrap(yyscanner ) )
924 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
926 yy_act = YY_STATE_EOF(YY_START);
932 if ( ! yyg->yy_did_buffer_switch_on_eof )
938 case EOB_ACT_CONTINUE_SCAN:
940 yyg->yytext_ptr + yy_amount_of_matched_text;
942 yy_current_state = yy_get_previous_state( yyscanner );
944 yy_cp = yyg->yy_c_buf_p;
945 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
948 case EOB_ACT_LAST_MATCH:
950 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
952 yy_current_state = yy_get_previous_state( yyscanner );
954 yy_cp = yyg->yy_c_buf_p;
955 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
963 "fatal flex scanner internal error--no action found" );
975 static int yy_get_next_buffer (yyscan_t yyscanner)
978 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
979 register char *source = yyg->yytext_ptr;
980 register int number_to_move,
i;
983 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
985 "fatal flex scanner internal error--end of buffer missed" );
987 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
989 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
994 return EOB_ACT_END_OF_FILE;
1002 return EOB_ACT_LAST_MATCH;
1009 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1011 for ( i = 0; i < number_to_move; ++
i )
1012 *(dest++) = *(source++);
1014 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1018 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1023 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1025 while ( num_to_read <= 0 )
1029 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1031 int yy_c_buf_p_offset =
1032 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1034 if ( b->yy_is_our_buffer )
1036 int new_size = b->yy_buf_size * 2;
1038 if ( new_size <= 0 )
1039 b->yy_buf_size += b->yy_buf_size / 8;
1041 b->yy_buf_size *= 2;
1043 b->yy_ch_buf = (
char *)
1045 fts0trealloc((
void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
1051 if ( ! b->yy_ch_buf )
1053 "fatal error - scanner input buffer overflow" );
1055 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1057 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1062 if ( num_to_read > YY_READ_BUF_SIZE )
1063 num_to_read = YY_READ_BUF_SIZE;
1066 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1067 yyg->yy_n_chars, (
size_t) num_to_read );
1069 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1072 if ( yyg->yy_n_chars == 0 )
1074 if ( number_to_move == YY_MORE_ADJ )
1076 ret_val = EOB_ACT_END_OF_FILE;
1077 fts0trestart(yyin ,yyscanner);
1082 ret_val = EOB_ACT_LAST_MATCH;
1083 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1084 YY_BUFFER_EOF_PENDING;
1089 ret_val = EOB_ACT_CONTINUE_SCAN;
1091 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1093 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1094 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) fts0trealloc((
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1095 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1096 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1099 yyg->yy_n_chars += number_to_move;
1100 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1101 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1103 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1110 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1112 register yy_state_type yy_current_state;
1113 register char *yy_cp;
1116 yy_current_state = yyg->yy_start;
1118 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1120 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1121 if ( yy_accept[yy_current_state] )
1123 yyg->yy_last_accepting_state = yy_current_state;
1124 yyg->yy_last_accepting_cpos = yy_cp;
1126 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1128 yy_current_state = (int) yy_def[yy_current_state];
1129 if ( yy_current_state >= 17 )
1130 yy_c = yy_meta[(
unsigned int) yy_c];
1132 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1135 return yy_current_state;
1143 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1145 register int yy_is_jam;
1147 register char *yy_cp = yyg->yy_c_buf_p;
1149 register YY_CHAR yy_c = 1;
1150 if ( yy_accept[yy_current_state] )
1152 yyg->yy_last_accepting_state = yy_current_state;
1153 yyg->yy_last_accepting_cpos = yy_cp;
1155 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1157 yy_current_state = (int) yy_def[yy_current_state];
1158 if ( yy_current_state >= 17 )
1159 yy_c = yy_meta[(
unsigned int) yy_c];
1161 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1162 yy_is_jam = (yy_current_state == 16);
1164 return yy_is_jam ? 0 : yy_current_state;
1169 static int yyinput (yyscan_t yyscanner)
1171 static int input (yyscan_t yyscanner)
1178 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1180 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1186 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1188 *yyg->yy_c_buf_p =
'\0';
1192 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1195 switch ( yy_get_next_buffer( yyscanner ) )
1197 case EOB_ACT_LAST_MATCH:
1209 fts0trestart(yyin ,yyscanner);
1213 case EOB_ACT_END_OF_FILE:
1215 if ( fts0twrap(yyscanner ) )
1218 if ( ! yyg->yy_did_buffer_switch_on_eof )
1221 return yyinput(yyscanner);
1223 return input(yyscanner);
1227 case EOB_ACT_CONTINUE_SCAN:
1228 yyg->yy_c_buf_p = yyg->yytext_ptr +
offset;
1234 c = *(
unsigned char *) yyg->yy_c_buf_p;
1235 *yyg->yy_c_buf_p =
'\0';
1236 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1247 void fts0trestart (FILE * input_file , yyscan_t yyscanner)
1251 if ( ! YY_CURRENT_BUFFER ){
1252 fts0tensure_buffer_stack (yyscanner);
1253 YY_CURRENT_BUFFER_LVALUE =
1254 fts0t_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1257 fts0t_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1258 fts0t_load_buffer_state(yyscanner );
1265 void fts0t_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1274 fts0tensure_buffer_stack (yyscanner);
1275 if ( YY_CURRENT_BUFFER == new_buffer )
1278 if ( YY_CURRENT_BUFFER )
1281 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1282 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1283 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1286 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1287 fts0t_load_buffer_state(yyscanner );
1294 yyg->yy_did_buffer_switch_on_eof = 1;
1297 static void fts0t_load_buffer_state (yyscan_t yyscanner)
1300 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1301 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1302 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1303 yyg->yy_hold_char = *yyg->yy_c_buf_p;
1312 YY_BUFFER_STATE fts0t_create_buffer (FILE *
file,
int size , yyscan_t yyscanner)
1316 b = (YY_BUFFER_STATE) fts0talloc(
sizeof(
struct yy_buffer_state ) ,yyscanner );
1318 YY_FATAL_ERROR(
"out of dynamic memory in fts0t_create_buffer()" );
1320 b->yy_buf_size =
size;
1325 b->yy_ch_buf = (
char *) fts0talloc(b->yy_buf_size + 2 ,yyscanner );
1326 if ( ! b->yy_ch_buf )
1327 YY_FATAL_ERROR(
"out of dynamic memory in fts0t_create_buffer()" );
1329 b->yy_is_our_buffer = 1;
1331 fts0t_init_buffer(b,file ,yyscanner);
1340 void fts0t_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1347 if ( b == YY_CURRENT_BUFFER )
1348 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1350 if ( b->yy_is_our_buffer )
1351 fts0tfree((
void *) b->yy_ch_buf ,yyscanner );
1353 fts0tfree((
void *) b ,yyscanner );
1360 static void fts0t_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
1366 fts0t_flush_buffer(b ,yyscanner);
1368 b->yy_input_file =
file;
1369 b->yy_fill_buffer = 1;
1375 if (b != YY_CURRENT_BUFFER){
1380 b->yy_is_interactive = 0;
1389 void fts0t_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1401 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1402 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1404 b->yy_buf_pos = &b->yy_ch_buf[0];
1407 b->yy_buffer_status = YY_BUFFER_NEW;
1409 if ( b == YY_CURRENT_BUFFER )
1410 fts0t_load_buffer_state(yyscanner );
1419 void fts0tpush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1422 if (new_buffer == NULL)
1425 fts0tensure_buffer_stack(yyscanner);
1428 if ( YY_CURRENT_BUFFER )
1431 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1432 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1433 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1437 if (YY_CURRENT_BUFFER)
1439 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1442 fts0t_load_buffer_state(yyscanner );
1443 yyg->yy_did_buffer_switch_on_eof = 1;
1450 void fts0tpop_buffer_state (yyscan_t yyscanner)
1453 if (!YY_CURRENT_BUFFER)
1456 fts0t_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
1457 YY_CURRENT_BUFFER_LVALUE = NULL;
1461 if (YY_CURRENT_BUFFER) {
1462 fts0t_load_buffer_state(yyscanner );
1463 yyg->yy_did_buffer_switch_on_eof = 1;
1470 static void fts0tensure_buffer_stack (yyscan_t yyscanner)
1486 YY_FATAL_ERROR(
"out of dynamic memory in fts0tensure_buffer_stack()" );
1506 YY_FATAL_ERROR(
"out of dynamic memory in fts0tensure_buffer_stack()" );
1520 YY_BUFFER_STATE fts0t_scan_buffer (
char * base, yy_size_t size , yyscan_t yyscanner)
1525 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1526 base[size-1] != YY_END_OF_BUFFER_CHAR )
1530 b = (YY_BUFFER_STATE) fts0talloc(
sizeof(
struct yy_buffer_state ) ,yyscanner );
1532 YY_FATAL_ERROR(
"out of dynamic memory in fts0t_scan_buffer()" );
1534 b->yy_buf_size = size - 2;
1535 b->yy_buf_pos = b->yy_ch_buf = base;
1536 b->yy_is_our_buffer = 0;
1537 b->yy_input_file = 0;
1538 b->yy_n_chars = b->yy_buf_size;
1539 b->yy_is_interactive = 0;
1541 b->yy_fill_buffer = 0;
1542 b->yy_buffer_status = YY_BUFFER_NEW;
1544 fts0t_switch_to_buffer(b ,yyscanner );
1557 YY_BUFFER_STATE fts0t_scan_string (yyconst
char * yystr , yyscan_t yyscanner)
1560 return fts0t_scan_bytes(yystr,strlen(yystr) ,yyscanner);
1570 YY_BUFFER_STATE fts0t_scan_bytes (yyconst
char * yybytes,
int _yybytes_len , yyscan_t yyscanner)
1578 n = _yybytes_len + 2;
1579 buf = (
char *) fts0talloc(n ,yyscanner );
1581 YY_FATAL_ERROR(
"out of dynamic memory in fts0t_scan_bytes()" );
1583 for ( i = 0; i < _yybytes_len; ++
i )
1584 buf[i] = yybytes[i];
1586 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1588 b = fts0t_scan_buffer(buf,n ,yyscanner);
1590 YY_FATAL_ERROR(
"bad buffer in fts0t_scan_bytes()" );
1595 b->yy_is_our_buffer = 1;
1600 #ifndef YY_EXIT_FAILURE
1601 #define YY_EXIT_FAILURE 2
1604 static void yy_fatal_error (yyconst
char* msg , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1606 (void) fprintf( stderr,
"%s\n", msg );
1607 exit( YY_EXIT_FAILURE );
1617 int yyless_macro_arg = (n); \
1618 YY_LESS_LINENO(yyless_macro_arg);\
1619 yytext[yyleng] = yyg->yy_hold_char; \
1620 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
1621 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
1622 *yyg->yy_c_buf_p = '\0'; \
1623 yyleng = yyless_macro_arg; \
1632 YY_EXTRA_TYPE fts0tget_extra (yyscan_t yyscanner)
1641 int fts0tget_lineno (yyscan_t yyscanner)
1645 if (! YY_CURRENT_BUFFER)
1654 int fts0tget_column (yyscan_t yyscanner)
1658 if (! YY_CURRENT_BUFFER)
1667 FILE *fts0tget_in (yyscan_t yyscanner)
1676 FILE *fts0tget_out (yyscan_t yyscanner)
1685 int fts0tget_leng (yyscan_t yyscanner)
1695 char *fts0tget_text (yyscan_t yyscanner)
1705 void fts0tset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
1708 yyextra = user_defined ;
1715 void fts0tset_lineno (
int line_number , yyscan_t yyscanner)
1720 if (! YY_CURRENT_BUFFER )
1721 yy_fatal_error(
"fts0tset_lineno called with no buffer" , yyscanner);
1723 yylineno = line_number;
1730 void fts0tset_column (
int column_no , yyscan_t yyscanner)
1735 if (! YY_CURRENT_BUFFER )
1736 yy_fatal_error(
"fts0tset_column called with no buffer" , yyscanner);
1738 yycolumn = column_no;
1747 void fts0tset_in (FILE * in_str , yyscan_t yyscanner)
1753 void fts0tset_out (FILE * out_str , yyscan_t yyscanner)
1759 int fts0tget_debug (yyscan_t yyscanner)
1762 return yy_flex_debug;
1765 void fts0tset_debug (
int bdebug , yyscan_t yyscanner)
1768 yy_flex_debug = bdebug ;
1780 int fts0tlex_init(yyscan_t* ptr_yy_globals)
1783 if (ptr_yy_globals == NULL){
1788 *ptr_yy_globals = (yyscan_t) fts0talloc (
sizeof(
struct yyguts_t ), NULL );
1790 if (*ptr_yy_globals == NULL){
1796 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
1798 return yy_init_globals ( *ptr_yy_globals );
1809 int fts0tlex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
1814 fts0tset_extra (yy_user_defined, &dummy_yyguts);
1816 if (ptr_yy_globals == NULL){
1821 *ptr_yy_globals = (yyscan_t) fts0talloc (
sizeof(
struct yyguts_t ), &dummy_yyguts );
1823 if (*ptr_yy_globals == NULL){
1830 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
1832 fts0tset_extra (yy_user_defined, *ptr_yy_globals);
1834 return yy_init_globals ( *ptr_yy_globals );
1837 static int yy_init_globals (yyscan_t yyscanner)
1847 yyg->yy_c_buf_p = (
char *) 0;
1851 yyg->yy_start_stack_ptr = 0;
1852 yyg->yy_start_stack_depth = 0;
1853 yyg->yy_start_stack = NULL;
1871 int fts0tlex_destroy (yyscan_t yyscanner)
1876 while(YY_CURRENT_BUFFER){
1877 fts0t_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
1878 YY_CURRENT_BUFFER_LVALUE = NULL;
1879 fts0tpop_buffer_state(yyscanner);
1887 fts0tfree(yyg->yy_start_stack ,yyscanner );
1888 yyg->yy_start_stack = NULL;
1892 yy_init_globals( yyscanner);
1895 fts0tfree ( yyscanner , yyscanner );
1905 static void yy_flex_strncpy (
char* s1, yyconst
char * s2,
int n , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1908 for ( i = 0; i <
n; ++
i )
1913 #ifdef YY_NEED_STRLEN
1914 static int yy_flex_strlen (yyconst
char * s , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1917 for ( n = 0; s[
n]; ++
n )
1924 void *fts0talloc (yy_size_t size , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1926 return (
void *) malloc( size );
1929 void *fts0trealloc (
void * ptr, yy_size_t size , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1938 return (
void *) realloc( (
char *) ptr, size );
1941 void fts0tfree (
void * ptr , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1943 free( (
char *) ptr );
1946 #define YYTABLES_NAME "yytables"
1948 #line 68 "fts0tlex.l"