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 fts0brestart(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 fts0brestart (FILE *input_file ,yyscan_t yyscanner );
291 void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
292 YY_BUFFER_STATE fts0b_create_buffer (FILE *
file,
int size ,yyscan_t yyscanner );
293 void fts0b_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
294 void fts0b_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
295 void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
296 void fts0bpop_buffer_state (yyscan_t yyscanner );
298 static void fts0bensure_buffer_stack (yyscan_t yyscanner );
299 static void fts0b_load_buffer_state (yyscan_t yyscanner );
300 static void fts0b_init_buffer (YY_BUFFER_STATE b,FILE *
file ,yyscan_t yyscanner );
302 #define YY_FLUSH_BUFFER fts0b_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
304 YY_BUFFER_STATE fts0b_scan_buffer (
char *base,yy_size_t
size ,yyscan_t yyscanner );
305 YY_BUFFER_STATE fts0b_scan_string (yyconst
char *yy_str ,yyscan_t yyscanner );
306 YY_BUFFER_STATE fts0b_scan_bytes (yyconst
char *bytes,
int len ,yyscan_t yyscanner );
308 void *fts0balloc (yy_size_t , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
309 void *fts0brealloc (
void *,yy_size_t , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
310 void fts0bfree (
void * , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) );
312 #define yy_new_buffer fts0b_create_buffer
314 #define yy_set_interactive(is_interactive) \
316 if ( ! YY_CURRENT_BUFFER ){ \
317 fts0bensure_buffer_stack (yyscanner); \
318 YY_CURRENT_BUFFER_LVALUE = \
319 fts0b_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 fts0bensure_buffer_stack (yyscanner); \
328 YY_CURRENT_BUFFER_LVALUE = \
329 fts0b_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 fts0bwrap(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[19] =
373 4, 4, 8, 4, 1, 6, 1, 7, 7, 2,
374 3, 4, 1, 1, 0, 5, 3, 0
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, 7,
383 7, 7, 7, 1, 7, 1, 1, 8, 8, 8,
384 8, 8, 8, 8, 8, 8, 8, 1, 1, 7,
385 1, 7, 1, 7, 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, 7, 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[9] =
411 1, 2, 3, 4, 5, 5, 5, 1
414 static yyconst flex_int16_t yy_base[22] =
416 0, 0, 22, 0, 7, 23, 0, 14, 23, 23,
417 7, 0, 0, 0, 5, 23, 0, 23, 11, 12,
421 static yyconst flex_int16_t yy_def[22] =
423 18, 1, 18, 19, 19, 18, 20, 21, 18, 18,
424 19, 19, 5, 20, 21, 18, 11, 0, 18, 18,
428 static yyconst flex_int16_t yy_nxt[32] =
430 4, 5, 6, 7, 8, 9, 10, 11, 13, 16,
431 14, 12, 12, 14, 17, 14, 15, 15, 16, 15,
432 15, 18, 3, 18, 18, 18, 18, 18, 18, 18,
436 static yyconst flex_int16_t yy_chk[32] =
438 1, 1, 1, 1, 1, 1, 1, 1, 5, 15,
439 5, 19, 19, 20, 11, 20, 21, 21, 8, 21,
440 21, 3, 18, 18, 18, 18, 18, 18, 18, 18,
447 #define REJECT reject_used_but_not_detected
448 #define yymore() yymore_used_but_not_detected
449 #define YY_MORE_ADJ 0
450 #define YY_RESTORE_YY_MORE_OFFSET
475 #line 27 "fts0blex.l"
478 #include "fts0pars.h"
481 #define YY_DECL int fts_blexer(YYSTYPE* val, yyscan_t yyscanner)
483 #define YY_NO_INPUT 1
484 #line 484 "fts0blex.cc"
488 #ifndef YY_NO_UNISTD_H
496 #ifndef YY_EXTRA_TYPE
497 #define YY_EXTRA_TYPE void *
505 YY_EXTRA_TYPE yyextra_r;
508 FILE *yyin_r, *yyout_r;
518 int yy_did_buffer_switch_on_eof;
519 int yy_start_stack_ptr;
520 int yy_start_stack_depth;
522 yy_state_type yy_last_accepting_state;
523 char* yy_last_accepting_cpos;
534 static int yy_init_globals (yyscan_t yyscanner );
536 int fts0blex_init (yyscan_t* scanner);
538 int fts0blex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
543 int fts0blex_destroy (yyscan_t yyscanner );
545 int fts0bget_debug (yyscan_t yyscanner );
547 void fts0bset_debug (
int debug_flag ,yyscan_t yyscanner );
549 YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner );
551 void fts0bset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
553 FILE *fts0bget_in (yyscan_t yyscanner );
555 void fts0bset_in (FILE * in_str ,yyscan_t yyscanner );
557 FILE *fts0bget_out (yyscan_t yyscanner );
559 void fts0bset_out (FILE * out_str ,yyscan_t yyscanner );
561 int fts0bget_leng (yyscan_t yyscanner );
563 char *fts0bget_text (yyscan_t yyscanner );
565 int fts0bget_lineno (yyscan_t yyscanner );
567 void fts0bset_lineno (
int line_number ,yyscan_t yyscanner );
573 #ifndef YY_SKIP_YYWRAP
575 extern "C" int fts0bwrap (yyscan_t yyscanner );
577 extern int fts0bwrap (yyscan_t yyscanner );
582 static void yy_flex_strncpy (
char *,yyconst
char *,
int , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)));
585 #ifdef YY_NEED_STRLEN
586 static int yy_flex_strlen (yyconst
char * , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)));
592 static int yyinput (yyscan_t yyscanner );
594 static int input (yyscan_t yyscanner );
600 #ifndef YY_READ_BUF_SIZE
603 #define YY_READ_BUF_SIZE 16384
605 #define YY_READ_BUF_SIZE 8192
614 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
621 #define YY_INPUT(buf,result,max_size) \
622 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
626 for ( n = 0; n < max_size && \
627 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
630 buf[n++] = (char) c; \
631 if ( c == EOF && ferror( yyin ) ) \
632 YY_FATAL_ERROR( "input in flex scanner failed" ); \
638 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
640 if( errno != EINTR) \
642 YY_FATAL_ERROR( "input in flex scanner failed" ); \
658 #define yyterminate() return YY_NULL
662 #ifndef YY_START_STACK_INCR
663 #define YY_START_STACK_INCR 25
667 #ifndef YY_FATAL_ERROR
668 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
677 #define YY_DECL_IS_OURS 1
679 extern int fts0blex (yyscan_t yyscanner);
681 #define YY_DECL int fts0blex (yyscan_t yyscanner)
687 #ifndef YY_USER_ACTION
688 #define YY_USER_ACTION
693 #define YY_BREAK break;
696 #define YY_RULE_SETUP \
703 register yy_state_type yy_current_state;
704 register char *yy_cp, *yy_bp;
708 #line 43 "fts0blex.l"
711 #line 711 "fts0blex.cc"
721 if ( ! yyg->yy_start )
730 if ( ! YY_CURRENT_BUFFER ) {
731 fts0bensure_buffer_stack (yyscanner);
732 YY_CURRENT_BUFFER_LVALUE =
733 fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
736 fts0b_load_buffer_state(yyscanner );
741 yy_cp = yyg->yy_c_buf_p;
744 *yy_cp = yyg->yy_hold_char;
751 yy_current_state = yyg->yy_start;
755 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
756 if ( yy_accept[yy_current_state] )
758 yyg->yy_last_accepting_state = yy_current_state;
759 yyg->yy_last_accepting_cpos = yy_cp;
761 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
763 yy_current_state = (int) yy_def[yy_current_state];
764 if ( yy_current_state >= 19 )
765 yy_c = yy_meta[(
unsigned int) yy_c];
767 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
770 while ( yy_current_state != 18 );
771 yy_cp = yyg->yy_last_accepting_cpos;
772 yy_current_state = yyg->yy_last_accepting_state;
775 yy_act = yy_accept[yy_current_state];
785 *yy_cp = yyg->yy_hold_char;
786 yy_cp = yyg->yy_last_accepting_cpos;
787 yy_current_state = yyg->yy_last_accepting_state;
792 #line 45 "fts0blex.l"
797 #line 47 "fts0blex.l"
799 val->oper = fts0bget_text(yyscanner)[0];
806 #line 53 "fts0blex.l"
808 val->token = strdup(fts0bget_text(yyscanner));
815 #line 59 "fts0blex.l"
817 val->token = strdup(fts0bget_text(yyscanner));
824 #line 65 "fts0blex.l"
826 val->token = strdup(fts0bget_text(yyscanner));
834 #line 71 "fts0blex.l"
839 #line 73 "fts0blex.l"
842 #line 842 "fts0blex.cc"
843 case YY_STATE_EOF(INITIAL):
846 case YY_END_OF_BUFFER:
849 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
852 *yy_cp = yyg->yy_hold_char;
853 YY_RESTORE_YY_MORE_OFFSET
855 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
866 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
867 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
868 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
878 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
880 yy_state_type yy_next_state;
882 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
884 yy_current_state = yy_get_previous_state( yyscanner );
895 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
897 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
902 yy_cp = ++yyg->yy_c_buf_p;
903 yy_current_state = yy_next_state;
909 yy_cp = yyg->yy_last_accepting_cpos;
910 yy_current_state = yyg->yy_last_accepting_state;
915 else switch ( yy_get_next_buffer( yyscanner ) )
917 case EOB_ACT_END_OF_FILE:
919 yyg->yy_did_buffer_switch_on_eof = 0;
921 if ( fts0bwrap(yyscanner ) )
932 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
934 yy_act = YY_STATE_EOF(YY_START);
940 if ( ! yyg->yy_did_buffer_switch_on_eof )
946 case EOB_ACT_CONTINUE_SCAN:
948 yyg->yytext_ptr + yy_amount_of_matched_text;
950 yy_current_state = yy_get_previous_state( yyscanner );
952 yy_cp = yyg->yy_c_buf_p;
953 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
956 case EOB_ACT_LAST_MATCH:
958 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
960 yy_current_state = yy_get_previous_state( yyscanner );
962 yy_cp = yyg->yy_c_buf_p;
963 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
971 "fatal flex scanner internal error--no action found" );
983 static int yy_get_next_buffer (yyscan_t yyscanner)
986 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
987 register char *source = yyg->yytext_ptr;
988 register int number_to_move,
i;
991 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
993 "fatal flex scanner internal error--end of buffer missed" );
995 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
997 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1002 return EOB_ACT_END_OF_FILE;
1010 return EOB_ACT_LAST_MATCH;
1017 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1019 for ( i = 0; i < number_to_move; ++
i )
1020 *(dest++) = *(source++);
1022 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1026 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1031 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1033 while ( num_to_read <= 0 )
1037 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1039 int yy_c_buf_p_offset =
1040 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1042 if ( b->yy_is_our_buffer )
1044 int new_size = b->yy_buf_size * 2;
1046 if ( new_size <= 0 )
1047 b->yy_buf_size += b->yy_buf_size / 8;
1049 b->yy_buf_size *= 2;
1051 b->yy_ch_buf = (
char *)
1053 fts0brealloc((
void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
1059 if ( ! b->yy_ch_buf )
1061 "fatal error - scanner input buffer overflow" );
1063 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1065 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1070 if ( num_to_read > YY_READ_BUF_SIZE )
1071 num_to_read = YY_READ_BUF_SIZE;
1074 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1075 yyg->yy_n_chars, (
size_t) num_to_read );
1077 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1080 if ( yyg->yy_n_chars == 0 )
1082 if ( number_to_move == YY_MORE_ADJ )
1084 ret_val = EOB_ACT_END_OF_FILE;
1085 fts0brestart(yyin ,yyscanner);
1090 ret_val = EOB_ACT_LAST_MATCH;
1091 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1092 YY_BUFFER_EOF_PENDING;
1097 ret_val = EOB_ACT_CONTINUE_SCAN;
1099 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1101 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1102 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) fts0brealloc((
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1103 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1104 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1107 yyg->yy_n_chars += number_to_move;
1108 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1109 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1111 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1118 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1120 register yy_state_type yy_current_state;
1121 register char *yy_cp;
1124 yy_current_state = yyg->yy_start;
1126 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1128 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1129 if ( yy_accept[yy_current_state] )
1131 yyg->yy_last_accepting_state = yy_current_state;
1132 yyg->yy_last_accepting_cpos = yy_cp;
1134 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1136 yy_current_state = (int) yy_def[yy_current_state];
1137 if ( yy_current_state >= 19 )
1138 yy_c = yy_meta[(
unsigned int) yy_c];
1140 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1143 return yy_current_state;
1151 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1153 register int yy_is_jam;
1155 register char *yy_cp = yyg->yy_c_buf_p;
1157 register YY_CHAR yy_c = 1;
1158 if ( yy_accept[yy_current_state] )
1160 yyg->yy_last_accepting_state = yy_current_state;
1161 yyg->yy_last_accepting_cpos = yy_cp;
1163 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1165 yy_current_state = (int) yy_def[yy_current_state];
1166 if ( yy_current_state >= 19 )
1167 yy_c = yy_meta[(
unsigned int) yy_c];
1169 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1170 yy_is_jam = (yy_current_state == 18);
1172 return yy_is_jam ? 0 : yy_current_state;
1177 static int yyinput (yyscan_t yyscanner)
1179 static int input (yyscan_t yyscanner)
1186 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1188 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1194 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1196 *yyg->yy_c_buf_p =
'\0';
1200 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1203 switch ( yy_get_next_buffer( yyscanner ) )
1205 case EOB_ACT_LAST_MATCH:
1217 fts0brestart(yyin ,yyscanner);
1221 case EOB_ACT_END_OF_FILE:
1223 if ( fts0bwrap(yyscanner ) )
1226 if ( ! yyg->yy_did_buffer_switch_on_eof )
1229 return yyinput(yyscanner);
1231 return input(yyscanner);
1235 case EOB_ACT_CONTINUE_SCAN:
1236 yyg->yy_c_buf_p = yyg->yytext_ptr +
offset;
1242 c = *(
unsigned char *) yyg->yy_c_buf_p;
1243 *yyg->yy_c_buf_p =
'\0';
1244 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1255 void fts0brestart (FILE * input_file , yyscan_t yyscanner)
1259 if ( ! YY_CURRENT_BUFFER ){
1260 fts0bensure_buffer_stack (yyscanner);
1261 YY_CURRENT_BUFFER_LVALUE =
1262 fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1265 fts0b_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1266 fts0b_load_buffer_state(yyscanner );
1273 void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1282 fts0bensure_buffer_stack (yyscanner);
1283 if ( YY_CURRENT_BUFFER == new_buffer )
1286 if ( YY_CURRENT_BUFFER )
1289 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1290 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1291 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1294 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1295 fts0b_load_buffer_state(yyscanner );
1302 yyg->yy_did_buffer_switch_on_eof = 1;
1305 static void fts0b_load_buffer_state (yyscan_t yyscanner)
1308 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1309 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1310 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1311 yyg->yy_hold_char = *yyg->yy_c_buf_p;
1320 YY_BUFFER_STATE fts0b_create_buffer (FILE *
file,
int size , yyscan_t yyscanner)
1324 b = (YY_BUFFER_STATE) fts0balloc(
sizeof(
struct yy_buffer_state ) ,yyscanner );
1326 YY_FATAL_ERROR(
"out of dynamic memory in fts0b_create_buffer()" );
1328 b->yy_buf_size =
size;
1333 b->yy_ch_buf = (
char *) fts0balloc(b->yy_buf_size + 2 ,yyscanner );
1334 if ( ! b->yy_ch_buf )
1335 YY_FATAL_ERROR(
"out of dynamic memory in fts0b_create_buffer()" );
1337 b->yy_is_our_buffer = 1;
1339 fts0b_init_buffer(b,file ,yyscanner);
1348 void fts0b_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1355 if ( b == YY_CURRENT_BUFFER )
1356 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1358 if ( b->yy_is_our_buffer )
1359 fts0bfree((
void *) b->yy_ch_buf ,yyscanner );
1361 fts0bfree((
void *) b ,yyscanner );
1368 static void fts0b_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
1374 fts0b_flush_buffer(b ,yyscanner);
1376 b->yy_input_file =
file;
1377 b->yy_fill_buffer = 1;
1383 if (b != YY_CURRENT_BUFFER){
1388 b->yy_is_interactive = 0;
1397 void fts0b_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1409 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1410 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1412 b->yy_buf_pos = &b->yy_ch_buf[0];
1415 b->yy_buffer_status = YY_BUFFER_NEW;
1417 if ( b == YY_CURRENT_BUFFER )
1418 fts0b_load_buffer_state(yyscanner );
1427 void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1430 if (new_buffer == NULL)
1433 fts0bensure_buffer_stack(yyscanner);
1436 if ( YY_CURRENT_BUFFER )
1439 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1440 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1441 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1445 if (YY_CURRENT_BUFFER)
1447 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1450 fts0b_load_buffer_state(yyscanner );
1451 yyg->yy_did_buffer_switch_on_eof = 1;
1458 void fts0bpop_buffer_state (yyscan_t yyscanner)
1461 if (!YY_CURRENT_BUFFER)
1464 fts0b_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
1465 YY_CURRENT_BUFFER_LVALUE = NULL;
1469 if (YY_CURRENT_BUFFER) {
1470 fts0b_load_buffer_state(yyscanner );
1471 yyg->yy_did_buffer_switch_on_eof = 1;
1478 static void fts0bensure_buffer_stack (yyscan_t yyscanner)
1494 YY_FATAL_ERROR(
"out of dynamic memory in fts0bensure_buffer_stack()" );
1514 YY_FATAL_ERROR(
"out of dynamic memory in fts0bensure_buffer_stack()" );
1528 YY_BUFFER_STATE fts0b_scan_buffer (
char * base, yy_size_t size , yyscan_t yyscanner)
1533 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1534 base[size-1] != YY_END_OF_BUFFER_CHAR )
1538 b = (YY_BUFFER_STATE) fts0balloc(
sizeof(
struct yy_buffer_state ) ,yyscanner );
1540 YY_FATAL_ERROR(
"out of dynamic memory in fts0b_scan_buffer()" );
1542 b->yy_buf_size = size - 2;
1543 b->yy_buf_pos = b->yy_ch_buf = base;
1544 b->yy_is_our_buffer = 0;
1545 b->yy_input_file = 0;
1546 b->yy_n_chars = b->yy_buf_size;
1547 b->yy_is_interactive = 0;
1549 b->yy_fill_buffer = 0;
1550 b->yy_buffer_status = YY_BUFFER_NEW;
1552 fts0b_switch_to_buffer(b ,yyscanner );
1565 YY_BUFFER_STATE fts0b_scan_string (yyconst
char * yystr , yyscan_t yyscanner)
1568 return fts0b_scan_bytes(yystr,strlen(yystr) ,yyscanner);
1578 YY_BUFFER_STATE fts0b_scan_bytes (yyconst
char * yybytes,
int _yybytes_len , yyscan_t yyscanner)
1586 n = _yybytes_len + 2;
1587 buf = (
char *) fts0balloc(n ,yyscanner );
1589 YY_FATAL_ERROR(
"out of dynamic memory in fts0b_scan_bytes()" );
1591 for ( i = 0; i < _yybytes_len; ++
i )
1592 buf[i] = yybytes[i];
1594 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1596 b = fts0b_scan_buffer(buf,n ,yyscanner);
1598 YY_FATAL_ERROR(
"bad buffer in fts0b_scan_bytes()" );
1603 b->yy_is_our_buffer = 1;
1608 #ifndef YY_EXIT_FAILURE
1609 #define YY_EXIT_FAILURE 2
1612 static void yy_fatal_error (yyconst
char* msg , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1614 (void) fprintf( stderr,
"%s\n", msg );
1615 exit( YY_EXIT_FAILURE );
1625 int yyless_macro_arg = (n); \
1626 YY_LESS_LINENO(yyless_macro_arg);\
1627 yytext[yyleng] = yyg->yy_hold_char; \
1628 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
1629 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
1630 *yyg->yy_c_buf_p = '\0'; \
1631 yyleng = yyless_macro_arg; \
1640 YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner)
1649 int fts0bget_lineno (yyscan_t yyscanner)
1653 if (! YY_CURRENT_BUFFER)
1662 int fts0bget_column (yyscan_t yyscanner)
1666 if (! YY_CURRENT_BUFFER)
1675 FILE *fts0bget_in (yyscan_t yyscanner)
1684 FILE *fts0bget_out (yyscan_t yyscanner)
1693 int fts0bget_leng (yyscan_t yyscanner)
1703 char *fts0bget_text (yyscan_t yyscanner)
1713 void fts0bset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
1716 yyextra = user_defined ;
1723 void fts0bset_lineno (
int line_number , yyscan_t yyscanner)
1728 if (! YY_CURRENT_BUFFER )
1729 yy_fatal_error(
"fts0bset_lineno called with no buffer" , yyscanner);
1731 yylineno = line_number;
1738 void fts0bset_column (
int column_no , yyscan_t yyscanner)
1743 if (! YY_CURRENT_BUFFER )
1744 yy_fatal_error(
"fts0bset_column called with no buffer" , yyscanner);
1746 yycolumn = column_no;
1755 void fts0bset_in (FILE * in_str , yyscan_t yyscanner)
1761 void fts0bset_out (FILE * out_str , yyscan_t yyscanner)
1767 int fts0bget_debug (yyscan_t yyscanner)
1770 return yy_flex_debug;
1773 void fts0bset_debug (
int bdebug , yyscan_t yyscanner)
1776 yy_flex_debug = bdebug ;
1788 int fts0blex_init(yyscan_t* ptr_yy_globals)
1791 if (ptr_yy_globals == NULL){
1796 *ptr_yy_globals = (yyscan_t) fts0balloc (
sizeof(
struct yyguts_t ), NULL );
1798 if (*ptr_yy_globals == NULL){
1804 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
1806 return yy_init_globals ( *ptr_yy_globals );
1817 int fts0blex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
1822 fts0bset_extra (yy_user_defined, &dummy_yyguts);
1824 if (ptr_yy_globals == NULL){
1829 *ptr_yy_globals = (yyscan_t) fts0balloc (
sizeof(
struct yyguts_t ), &dummy_yyguts );
1831 if (*ptr_yy_globals == NULL){
1838 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
1840 fts0bset_extra (yy_user_defined, *ptr_yy_globals);
1842 return yy_init_globals ( *ptr_yy_globals );
1845 static int yy_init_globals (yyscan_t yyscanner)
1855 yyg->yy_c_buf_p = (
char *) 0;
1859 yyg->yy_start_stack_ptr = 0;
1860 yyg->yy_start_stack_depth = 0;
1861 yyg->yy_start_stack = NULL;
1879 int fts0blex_destroy (yyscan_t yyscanner)
1884 while(YY_CURRENT_BUFFER){
1885 fts0b_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
1886 YY_CURRENT_BUFFER_LVALUE = NULL;
1887 fts0bpop_buffer_state(yyscanner);
1895 fts0bfree(yyg->yy_start_stack ,yyscanner );
1896 yyg->yy_start_stack = NULL;
1900 yy_init_globals( yyscanner);
1903 fts0bfree ( yyscanner , yyscanner );
1913 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)))
1916 for ( i = 0; i <
n; ++
i )
1921 #ifdef YY_NEED_STRLEN
1922 static int yy_flex_strlen (yyconst
char * s , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1925 for ( n = 0; s[
n]; ++
n )
1932 void *fts0balloc (yy_size_t size , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1934 return (
void *) malloc( size );
1937 void *fts0brealloc (
void * ptr, yy_size_t size , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1946 return (
void *) realloc( (
char *) ptr, size );
1949 void fts0bfree (
void * ptr , yyscan_t yyscanner __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)) __attribute__((unused)))
1951 free( (
char *) ptr );
1954 #define YYTABLES_NAME "yytables"
1956 #line 73 "fts0blex.l"