|
|
|
@ -35,7 +35,7 @@ |
|
|
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
|
|
|
|
|
|
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
|
|
|
|
* if you want the limit (max/min) macros for int types. |
|
|
|
* if you want the limit (max/min) macros for int types. |
|
|
|
*/ |
|
|
|
#ifndef __STDC_LIMIT_MACROS
|
|
|
|
#define __STDC_LIMIT_MACROS 1
|
|
|
|
@ -52,7 +52,7 @@ typedef uint32_t flex_uint32_t; |
|
|
|
typedef signed char flex_int8_t; |
|
|
|
typedef short int flex_int16_t; |
|
|
|
typedef int flex_int32_t; |
|
|
|
typedef unsigned char flex_uint8_t; |
|
|
|
typedef unsigned char flex_uint8_t; |
|
|
|
typedef unsigned short int flex_uint16_t; |
|
|
|
typedef unsigned int flex_uint32_t; |
|
|
|
|
|
|
|
@ -184,15 +184,15 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE; |
|
|
|
#define EOB_ACT_END_OF_FILE 1
|
|
|
|
#define EOB_ACT_LAST_MATCH 2
|
|
|
|
|
|
|
|
#define YY_LESS_LINENO(n)
|
|
|
|
|
|
|
|
#define YY_LESS_LINENO(n)
|
|
|
|
|
|
|
|
/* Return all but the first "n" matched characters back to the input stream. */ |
|
|
|
#define yyless(n) \
|
|
|
|
do \ |
|
|
|
{ \ |
|
|
|
/* Undo effects of setting up yytext. */ \ |
|
|
|
int yyless_macro_arg = (n); \ |
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\ |
|
|
|
int yyless_macro_arg = (n); \ |
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\ |
|
|
|
*yy_cp = yyg->yy_hold_char; \ |
|
|
|
YY_RESTORE_YY_MORE_OFFSET \ |
|
|
|
yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
|
|
|
@ -245,9 +245,9 @@ struct yy_buffer_state |
|
|
|
*/ |
|
|
|
int yy_at_bol; |
|
|
|
|
|
|
|
int yy_bs_lineno; /**< The line count. */ |
|
|
|
int yy_bs_column; /**< The column count. */ |
|
|
|
|
|
|
|
int yy_bs_lineno; /**< The line count. */ |
|
|
|
int yy_bs_column; /**< The column count. */ |
|
|
|
|
|
|
|
/* Whether to try to fill the input buffer when we reach the
|
|
|
|
* end of it. |
|
|
|
*/ |
|
|
|
@ -314,9 +314,9 @@ void fts0bfree (void * , yyscan_t yyscanner __attribute__((unused)) __ |
|
|
|
#define yy_set_interactive(is_interactive) \
|
|
|
|
{ \ |
|
|
|
if ( ! YY_CURRENT_BUFFER ){ \ |
|
|
|
fts0bensure_buffer_stack (yyscanner); \ |
|
|
|
fts0bensure_buffer_stack (yyscanner); \ |
|
|
|
YY_CURRENT_BUFFER_LVALUE = \ |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
|
|
|
} \ |
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
|
|
|
} |
|
|
|
@ -324,9 +324,9 @@ void fts0bfree (void * , yyscan_t yyscanner __attribute__((unused)) __ |
|
|
|
#define yy_set_bol(at_bol) \
|
|
|
|
{ \ |
|
|
|
if ( ! YY_CURRENT_BUFFER ){\ |
|
|
|
fts0bensure_buffer_stack (yyscanner); \ |
|
|
|
fts0bensure_buffer_stack (yyscanner); \ |
|
|
|
YY_CURRENT_BUFFER_LVALUE = \ |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
|
|
|
} \ |
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
|
|
|
} |
|
|
|
@ -354,7 +354,7 @@ static void yy_fatal_error (yyconst char msg[] , yyscan_t yyscanner __ |
|
|
|
*/ |
|
|
|
#define YY_DO_BEFORE_ACTION \
|
|
|
|
yyg->yytext_ptr = yy_bp; \ |
|
|
|
yyleng = (size_t) (yy_cp - yy_bp); \ |
|
|
|
yyleng = static_cast<int>(yy_cp - yy_bp); \ |
|
|
|
yyg->yy_hold_char = *yy_cp; \ |
|
|
|
*yy_cp = '\0'; \ |
|
|
|
yyg->yy_c_buf_p = yy_cp; |
|
|
|
@ -499,37 +499,37 @@ this program; if not, write to the Free Software Foundation, Inc., |
|
|
|
|
|
|
|
/* Holds the entire state of the reentrant scanner. */ |
|
|
|
struct yyguts_t |
|
|
|
{ |
|
|
|
|
|
|
|
/* User-defined. Not touched by flex. */ |
|
|
|
YY_EXTRA_TYPE yyextra_r; |
|
|
|
|
|
|
|
/* The rest are the same as the globals declared in the non-reentrant scanner. */ |
|
|
|
FILE *yyin_r, *yyout_r; |
|
|
|
size_t yy_buffer_stack_top; /**< index of top of stack. */ |
|
|
|
size_t yy_buffer_stack_max; /**< capacity of stack. */ |
|
|
|
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ |
|
|
|
char yy_hold_char; |
|
|
|
int yy_n_chars; |
|
|
|
int yyleng_r; |
|
|
|
char *yy_c_buf_p; |
|
|
|
int yy_init; |
|
|
|
int yy_start; |
|
|
|
int yy_did_buffer_switch_on_eof; |
|
|
|
int yy_start_stack_ptr; |
|
|
|
int yy_start_stack_depth; |
|
|
|
int *yy_start_stack; |
|
|
|
yy_state_type yy_last_accepting_state; |
|
|
|
char* yy_last_accepting_cpos; |
|
|
|
|
|
|
|
int yylineno_r; |
|
|
|
int yy_flex_debug_r; |
|
|
|
|
|
|
|
char *yytext_r; |
|
|
|
int yy_more_flag; |
|
|
|
int yy_more_len; |
|
|
|
|
|
|
|
}; /* end struct yyguts_t */ |
|
|
|
{ |
|
|
|
|
|
|
|
/* User-defined. Not touched by flex. */ |
|
|
|
YY_EXTRA_TYPE yyextra_r; |
|
|
|
|
|
|
|
/* The rest are the same as the globals declared in the non-reentrant scanner. */ |
|
|
|
FILE *yyin_r, *yyout_r; |
|
|
|
size_t yy_buffer_stack_top; /**< index of top of stack. */ |
|
|
|
size_t yy_buffer_stack_max; /**< capacity of stack. */ |
|
|
|
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ |
|
|
|
char yy_hold_char; |
|
|
|
int yy_n_chars; |
|
|
|
int yyleng_r; |
|
|
|
char *yy_c_buf_p; |
|
|
|
int yy_init; |
|
|
|
int yy_start; |
|
|
|
int yy_did_buffer_switch_on_eof; |
|
|
|
int yy_start_stack_ptr; |
|
|
|
int yy_start_stack_depth; |
|
|
|
int *yy_start_stack; |
|
|
|
yy_state_type yy_last_accepting_state; |
|
|
|
char* yy_last_accepting_cpos; |
|
|
|
|
|
|
|
int yylineno_r; |
|
|
|
int yy_flex_debug_r; |
|
|
|
|
|
|
|
char *yytext_r; |
|
|
|
int yy_more_flag; |
|
|
|
int yy_more_len; |
|
|
|
|
|
|
|
}; /* end struct yyguts_t */ |
|
|
|
|
|
|
|
static int yy_init_globals (yyscan_t yyscanner ); |
|
|
|
|
|
|
|
@ -622,8 +622,8 @@ static int input (yyscan_t yyscanner ); |
|
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
|
|
|
{ \ |
|
|
|
int c = '*'; \ |
|
|
|
size_t n; \ |
|
|
|
for ( n = 0; n < max_size && \ |
|
|
|
int n; \ |
|
|
|
for ( n = 0; n < static_cast<int>(max_size) && \ |
|
|
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
|
|
|
buf[n] = (char) c; \ |
|
|
|
if ( c == '\n' ) \ |
|
|
|
@ -635,7 +635,8 @@ static int input (yyscan_t yyscanner ); |
|
|
|
else \ |
|
|
|
{ \ |
|
|
|
errno=0; \ |
|
|
|
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
|
|
|
while ( (result = static_cast<int>(fread(buf, 1, max_size, yyin))) \ |
|
|
|
== 0 && ferror(yyin) ) \ |
|
|
|
{ \ |
|
|
|
if( errno != EINTR) \ |
|
|
|
{ \ |
|
|
|
@ -703,12 +704,12 @@ YY_DECL |
|
|
|
register yy_state_type yy_current_state; |
|
|
|
register char *yy_cp, *yy_bp; |
|
|
|
register int yy_act; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
#line 43 "fts0blex.l"
|
|
|
|
|
|
|
|
|
|
|
|
#line 711 "fts0blex.cc"
|
|
|
|
#line 712 "fts0blex.cc"
|
|
|
|
|
|
|
|
if ( !yyg->yy_init ) |
|
|
|
{ |
|
|
|
@ -839,7 +840,7 @@ YY_RULE_SETUP |
|
|
|
#line 73 "fts0blex.l"
|
|
|
|
ECHO; |
|
|
|
YY_BREAK |
|
|
|
#line 842 "fts0blex.cc"
|
|
|
|
#line 843 "fts0blex.cc"
|
|
|
|
case YY_STATE_EOF(INITIAL): |
|
|
|
yyterminate(); |
|
|
|
|
|
|
|
@ -982,7 +983,7 @@ case YY_STATE_EOF(INITIAL): |
|
|
|
*/ |
|
|
|
static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
|
|
|
register char *source = yyg->yytext_ptr; |
|
|
|
register int number_to_move, i; |
|
|
|
@ -1027,8 +1028,8 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
int num_to_read = |
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
|
|
|
int num_to_read = static_cast<int>( |
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1); |
|
|
|
|
|
|
|
while ( num_to_read <= 0 ) |
|
|
|
{ /* Not enough room in the buffer - grow it. */ |
|
|
|
@ -1041,7 +1042,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
if ( b->yy_is_our_buffer ) |
|
|
|
{ |
|
|
|
int new_size = b->yy_buf_size * 2; |
|
|
|
int new_size = static_cast<int>(b->yy_buf_size * 2); |
|
|
|
|
|
|
|
if ( new_size <= 0 ) |
|
|
|
b->yy_buf_size += b->yy_buf_size / 8; |
|
|
|
@ -1062,8 +1063,8 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
yyg->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; |
|
|
|
num_to_read = static_cast<int>( |
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1072,7 +1073,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
/* Read in more data. */ |
|
|
|
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
|
|
|
yyg->yy_n_chars, (size_t) num_to_read ); |
|
|
|
yyg->yy_n_chars, num_to_read); |
|
|
|
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
|
|
|
} |
|
|
|
@ -1115,11 +1116,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
/* yy_get_previous_state - get the state just before the EOB char was reached */ |
|
|
|
|
|
|
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner) |
|
|
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
register yy_state_type yy_current_state; |
|
|
|
register char *yy_cp; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
yy_current_state = yyg->yy_start; |
|
|
|
|
|
|
|
@ -1148,10 +1149,10 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
* synopsis |
|
|
|
* next_state = yy_try_NUL_trans( current_state ); |
|
|
|
*/ |
|
|
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) |
|
|
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
register int yy_is_jam; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ |
|
|
|
register char *yy_cp = yyg->yy_c_buf_p; |
|
|
|
|
|
|
|
register YY_CHAR yy_c = 1; |
|
|
|
@ -1174,14 +1175,14 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
#ifndef YY_NO_INPUT
|
|
|
|
#ifdef __cplusplus
|
|
|
|
static int yyinput (yyscan_t yyscanner) |
|
|
|
static int yyinput (yyscan_t yyscanner) |
|
|
|
#else
|
|
|
|
static int input (yyscan_t yyscanner) |
|
|
|
static int input (yyscan_t yyscanner) |
|
|
|
#endif
|
|
|
|
|
|
|
|
{ |
|
|
|
int c; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
*yyg->yy_c_buf_p = yyg->yy_hold_char; |
|
|
|
|
|
|
|
@ -1252,14 +1253,14 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
* @note This function does not reset the start condition to @c INITIAL . |
|
|
|
*/ |
|
|
|
void fts0brestart (FILE * input_file , yyscan_t yyscanner) |
|
|
|
void fts0brestart (FILE * input_file , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if ( ! YY_CURRENT_BUFFER ){ |
|
|
|
fts0bensure_buffer_stack (yyscanner); |
|
|
|
fts0bensure_buffer_stack (yyscanner); |
|
|
|
YY_CURRENT_BUFFER_LVALUE = |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); |
|
|
|
fts0b_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); |
|
|
|
} |
|
|
|
|
|
|
|
fts0b_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); |
|
|
|
@ -1270,15 +1271,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
* @param new_buffer The new input buffer. |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
*/ |
|
|
|
void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
|
|
|
void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
/* TODO. We should be able to replace this entire function body
|
|
|
|
* with |
|
|
|
* fts0bpop_buffer_state(); |
|
|
|
* fts0bpush_buffer_state(new_buffer); |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fts0bensure_buffer_stack (yyscanner); |
|
|
|
if ( YY_CURRENT_BUFFER == new_buffer ) |
|
|
|
return; |
|
|
|
@ -1304,7 +1305,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) |
|
|
|
|
|
|
|
static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
|
|
|
yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
|
|
|
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
|
|
|
@ -1317,10 +1318,10 @@ static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
* @return the allocated buffer state. |
|
|
|
*/ |
|
|
|
YY_BUFFER_STATE fts0b_create_buffer (FILE * file, int size , yyscan_t yyscanner) |
|
|
|
YY_BUFFER_STATE fts0b_create_buffer (FILE * file, int size , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
YY_BUFFER_STATE b; |
|
|
|
|
|
|
|
|
|
|
|
b = (YY_BUFFER_STATE) fts0balloc(sizeof( struct yy_buffer_state ) ,yyscanner ); |
|
|
|
if ( ! b ) |
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in fts0b_create_buffer()" ); |
|
|
|
@ -1345,9 +1346,9 @@ static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
* @param b a buffer created with fts0b_create_buffer() |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
*/ |
|
|
|
void fts0b_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
|
|
|
void fts0b_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if ( ! b ) |
|
|
|
return; |
|
|
|
@ -1365,28 +1366,28 @@ static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
* This function is sometimes called more than once on the same buffer, |
|
|
|
* such as during a fts0brestart() or at EOF. |
|
|
|
*/ |
|
|
|
static void fts0b_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) |
|
|
|
static void fts0b_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) |
|
|
|
|
|
|
|
{ |
|
|
|
int oerrno = errno; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
fts0b_flush_buffer(b ,yyscanner); |
|
|
|
|
|
|
|
b->yy_input_file = file; |
|
|
|
b->yy_fill_buffer = 1; |
|
|
|
|
|
|
|
/* If b is the current buffer, then fts0b_init_buffer was _probably_
|
|
|
|
* called from fts0brestart() or through yy_get_next_buffer. |
|
|
|
* In that case, we don't want to reset the lineno or column. |
|
|
|
*/ |
|
|
|
if (b != YY_CURRENT_BUFFER){ |
|
|
|
b->yy_bs_lineno = 1; |
|
|
|
b->yy_bs_column = 0; |
|
|
|
} |
|
|
|
|
|
|
|
b->yy_is_interactive = 0; |
|
|
|
|
|
|
|
/* If b is the current buffer, then fts0b_init_buffer was _probably_
|
|
|
|
* called from fts0brestart() or through yy_get_next_buffer. |
|
|
|
* In that case, we don't want to reset the lineno or column. |
|
|
|
*/ |
|
|
|
if (b != YY_CURRENT_BUFFER){ |
|
|
|
b->yy_bs_lineno = 1; |
|
|
|
b->yy_bs_column = 0; |
|
|
|
} |
|
|
|
|
|
|
|
b->yy_is_interactive = 0; |
|
|
|
|
|
|
|
errno = oerrno; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1394,9 +1395,9 @@ static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
*/ |
|
|
|
void fts0b_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
|
|
|
void fts0b_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
if ( ! b ) |
|
|
|
return; |
|
|
|
|
|
|
|
@ -1426,7 +1427,7 @@ static void fts0b_load_buffer_state (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
if (new_buffer == NULL) |
|
|
|
return; |
|
|
|
|
|
|
|
@ -1457,7 +1458,7 @@ void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bpop_buffer_state (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
if (!YY_CURRENT_BUFFER) |
|
|
|
return; |
|
|
|
|
|
|
|
@ -1478,23 +1479,23 @@ void fts0bpop_buffer_state (yyscan_t yyscanner) |
|
|
|
static void fts0bensure_buffer_stack (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
int num_to_alloc; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if (!yyg->yy_buffer_stack) { |
|
|
|
|
|
|
|
/* First allocation is just for 2 elements, since we don't know if this
|
|
|
|
* scanner will even need a stack. We use 2 instead of 1 to avoid an |
|
|
|
* immediate realloc on the next call. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
num_to_alloc = 1; |
|
|
|
yyg->yy_buffer_stack = (struct yy_buffer_state**)fts0balloc |
|
|
|
(num_to_alloc * sizeof(struct yy_buffer_state*) |
|
|
|
, yyscanner); |
|
|
|
if ( ! yyg->yy_buffer_stack ) |
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in fts0bensure_buffer_stack()" ); |
|
|
|
|
|
|
|
|
|
|
|
memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
|
|
|
|
|
|
|
|
|
|
|
yyg->yy_buffer_stack_max = num_to_alloc; |
|
|
|
yyg->yy_buffer_stack_top = 0; |
|
|
|
return; |
|
|
|
@ -1505,7 +1506,7 @@ static void fts0bensure_buffer_stack (yyscan_t yyscanner) |
|
|
|
/* Increase the buffer to prepare for a possible push. */ |
|
|
|
int grow_size = 8 /* arbitrary grow size */; |
|
|
|
|
|
|
|
num_to_alloc = yyg->yy_buffer_stack_max + grow_size; |
|
|
|
num_to_alloc = static_cast<int>(yyg->yy_buffer_stack_max + grow_size); |
|
|
|
yyg->yy_buffer_stack = (struct yy_buffer_state**)fts0brealloc |
|
|
|
(yyg->yy_buffer_stack, |
|
|
|
num_to_alloc * sizeof(struct yy_buffer_state*) |
|
|
|
@ -1523,12 +1524,12 @@ static void fts0bensure_buffer_stack (yyscan_t yyscanner) |
|
|
|
* @param base the character buffer |
|
|
|
* @param size the size in bytes of the character buffer |
|
|
|
* @param yyscanner The scanner object. |
|
|
|
* @return the newly allocated buffer state object. |
|
|
|
* @return the newly allocated buffer state object. |
|
|
|
*/ |
|
|
|
YY_BUFFER_STATE fts0b_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
YY_BUFFER_STATE b; |
|
|
|
|
|
|
|
|
|
|
|
if ( size < 2 || |
|
|
|
base[size-2] != YY_END_OF_BUFFER_CHAR || |
|
|
|
base[size-1] != YY_END_OF_BUFFER_CHAR ) |
|
|
|
@ -1543,7 +1544,7 @@ YY_BUFFER_STATE fts0b_scan_buffer (char * base, yy_size_t size , yyscan_t yysc |
|
|
|
b->yy_buf_pos = b->yy_ch_buf = base; |
|
|
|
b->yy_is_our_buffer = 0; |
|
|
|
b->yy_input_file = 0; |
|
|
|
b->yy_n_chars = b->yy_buf_size; |
|
|
|
b->yy_n_chars = static_cast<int>(b->yy_buf_size); |
|
|
|
b->yy_is_interactive = 0; |
|
|
|
b->yy_at_bol = 1; |
|
|
|
b->yy_fill_buffer = 0; |
|
|
|
@ -1564,8 +1565,7 @@ YY_BUFFER_STATE fts0b_scan_buffer (char * base, yy_size_t size , yyscan_t yysc |
|
|
|
*/ |
|
|
|
YY_BUFFER_STATE fts0b_scan_string (yyconst char * yystr , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
|
|
|
|
return fts0b_scan_bytes(yystr,strlen(yystr) ,yyscanner); |
|
|
|
return fts0b_scan_bytes(yystr,static_cast<int>(strlen(yystr)), yyscanner); |
|
|
|
} |
|
|
|
|
|
|
|
/** Setup the input buffer state to scan the given bytes. The next call to fts0blex() will
|
|
|
|
@ -1581,7 +1581,7 @@ YY_BUFFER_STATE fts0b_scan_bytes (yyconst char * yybytes, int _yybytes_len , y |
|
|
|
char *buf; |
|
|
|
yy_size_t n; |
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
/* Get memory for full buffer, including space for trailing EOB's. */ |
|
|
|
n = _yybytes_len + 2; |
|
|
|
buf = (char *) fts0balloc(n ,yyscanner ); |
|
|
|
@ -1622,8 +1622,8 @@ static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner __ |
|
|
|
do \ |
|
|
|
{ \ |
|
|
|
/* Undo effects of setting up yytext. */ \ |
|
|
|
int yyless_macro_arg = (n); \ |
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\ |
|
|
|
int yyless_macro_arg = (n); \ |
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\ |
|
|
|
yytext[yyleng] = yyg->yy_hold_char; \ |
|
|
|
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ |
|
|
|
yyg->yy_hold_char = *yyg->yy_c_buf_p; \ |
|
|
|
@ -1639,8 +1639,8 @@ static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner __ |
|
|
|
*/ |
|
|
|
YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyextra; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyextra; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the current line number.
|
|
|
|
@ -1648,12 +1648,12 @@ YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
int fts0bget_lineno (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if (! YY_CURRENT_BUFFER) |
|
|
|
return 0; |
|
|
|
|
|
|
|
return yylineno; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if (! YY_CURRENT_BUFFER) |
|
|
|
return 0; |
|
|
|
|
|
|
|
return yylineno; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the current column number.
|
|
|
|
@ -1661,12 +1661,12 @@ int fts0bget_lineno (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
int fts0bget_column (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if (! YY_CURRENT_BUFFER) |
|
|
|
return 0; |
|
|
|
|
|
|
|
return yycolumn; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
if (! YY_CURRENT_BUFFER) |
|
|
|
return 0; |
|
|
|
|
|
|
|
return yycolumn; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the input stream.
|
|
|
|
@ -1674,8 +1674,8 @@ int fts0bget_column (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
FILE *fts0bget_in (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyin; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyin; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the output stream.
|
|
|
|
@ -1683,8 +1683,8 @@ FILE *fts0bget_in (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
FILE *fts0bget_out (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyout; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyout; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the length of the current token.
|
|
|
|
@ -1692,8 +1692,8 @@ FILE *fts0bget_out (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
int fts0bget_leng (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyleng; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yyleng; |
|
|
|
} |
|
|
|
|
|
|
|
/** Get the current token.
|
|
|
|
@ -1702,8 +1702,8 @@ int fts0bget_leng (yyscan_t yyscanner) |
|
|
|
|
|
|
|
char *fts0bget_text (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yytext; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yytext; |
|
|
|
} |
|
|
|
|
|
|
|
/** Set the user-defined data. This data is never touched by the scanner.
|
|
|
|
@ -1712,8 +1712,8 @@ char *fts0bget_text (yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyextra = user_defined ; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyextra = user_defined ; |
|
|
|
} |
|
|
|
|
|
|
|
/** Set the current line number.
|
|
|
|
@ -1722,13 +1722,13 @@ void fts0bset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bset_lineno (int line_number , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
/* lineno is only valid if an input buffer exists. */ |
|
|
|
if (! YY_CURRENT_BUFFER ) |
|
|
|
yy_fatal_error( "fts0bset_lineno called with no buffer" , yyscanner); |
|
|
|
|
|
|
|
/* lineno is only valid if an input buffer exists. */ |
|
|
|
if (! YY_CURRENT_BUFFER ) |
|
|
|
yy_fatal_error( "fts0bset_lineno called with no buffer" , yyscanner); |
|
|
|
|
|
|
|
yylineno = line_number; |
|
|
|
yylineno = line_number; |
|
|
|
} |
|
|
|
|
|
|
|
/** Set the current column.
|
|
|
|
@ -1737,13 +1737,13 @@ void fts0bset_lineno (int line_number , yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bset_column (int column_no , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
/* column is only valid if an input buffer exists. */ |
|
|
|
if (! YY_CURRENT_BUFFER ) |
|
|
|
yy_fatal_error( "fts0bset_column called with no buffer" , yyscanner); |
|
|
|
|
|
|
|
yycolumn = column_no; |
|
|
|
/* column is only valid if an input buffer exists. */ |
|
|
|
if (! YY_CURRENT_BUFFER ) |
|
|
|
yy_fatal_error( "fts0bset_column called with no buffer" , yyscanner); |
|
|
|
|
|
|
|
yycolumn = column_no; |
|
|
|
} |
|
|
|
|
|
|
|
/** Set the input stream. This does not discard the current
|
|
|
|
@ -1754,26 +1754,26 @@ void fts0bset_column (int column_no , yyscan_t yyscanner) |
|
|
|
*/ |
|
|
|
void fts0bset_in (FILE * in_str , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyin = in_str ; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyin = in_str ; |
|
|
|
} |
|
|
|
|
|
|
|
void fts0bset_out (FILE * out_str , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyout = out_str ; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yyout = out_str ; |
|
|
|
} |
|
|
|
|
|
|
|
int fts0bget_debug (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yy_flex_debug; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
return yy_flex_debug; |
|
|
|
} |
|
|
|
|
|
|
|
void fts0bset_debug (int bdebug , yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yy_flex_debug = bdebug ; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
yy_flex_debug = bdebug ; |
|
|
|
} |
|
|
|
|
|
|
|
/* Accessor methods for yylval and yylloc */ |
|
|
|
@ -1788,22 +1788,22 @@ void fts0bset_debug (int bdebug , yyscan_t yyscanner) |
|
|
|
int fts0blex_init(yyscan_t* ptr_yy_globals) |
|
|
|
|
|
|
|
{ |
|
|
|
if (ptr_yy_globals == NULL){ |
|
|
|
errno = EINVAL; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (ptr_yy_globals == NULL){ |
|
|
|
errno = EINVAL; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
*ptr_yy_globals = (yyscan_t) fts0balloc ( sizeof( struct yyguts_t ), NULL ); |
|
|
|
*ptr_yy_globals = (yyscan_t) fts0balloc ( sizeof( struct yyguts_t ), NULL ); |
|
|
|
|
|
|
|
if (*ptr_yy_globals == NULL){ |
|
|
|
errno = ENOMEM; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (*ptr_yy_globals == NULL){ |
|
|
|
errno = ENOMEM; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
/* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ |
|
|
|
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
|
|
|
/* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ |
|
|
|
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
|
|
|
|
|
|
|
return yy_init_globals ( *ptr_yy_globals ); |
|
|
|
return yy_init_globals ( *ptr_yy_globals ); |
|
|
|
} |
|
|
|
|
|
|
|
/* fts0blex_init_extra has the same functionality as fts0blex_init, but follows the
|
|
|
|
@ -1817,70 +1817,70 @@ int fts0blex_init(yyscan_t* ptr_yy_globals) |
|
|
|
int fts0blex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) |
|
|
|
|
|
|
|
{ |
|
|
|
struct yyguts_t dummy_yyguts; |
|
|
|
|
|
|
|
fts0bset_extra (yy_user_defined, &dummy_yyguts); |
|
|
|
|
|
|
|
if (ptr_yy_globals == NULL){ |
|
|
|
errno = EINVAL; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
*ptr_yy_globals = (yyscan_t) fts0balloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); |
|
|
|
|
|
|
|
if (*ptr_yy_globals == NULL){ |
|
|
|
errno = ENOMEM; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
/* By setting to 0xAA, we expose bugs in
|
|
|
|
yy_init_globals. Leave at 0x00 for releases. */ |
|
|
|
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
|
|
|
|
|
|
|
fts0bset_extra (yy_user_defined, *ptr_yy_globals); |
|
|
|
|
|
|
|
return yy_init_globals ( *ptr_yy_globals ); |
|
|
|
struct yyguts_t dummy_yyguts; |
|
|
|
|
|
|
|
fts0bset_extra (yy_user_defined, &dummy_yyguts); |
|
|
|
|
|
|
|
if (ptr_yy_globals == NULL){ |
|
|
|
errno = EINVAL; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
*ptr_yy_globals = (yyscan_t) fts0balloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); |
|
|
|
|
|
|
|
if (*ptr_yy_globals == NULL){ |
|
|
|
errno = ENOMEM; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
/* By setting to 0xAA, we expose bugs in
|
|
|
|
yy_init_globals. Leave at 0x00 for releases. */ |
|
|
|
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
|
|
|
|
|
|
|
fts0bset_extra (yy_user_defined, *ptr_yy_globals); |
|
|
|
|
|
|
|
return yy_init_globals ( *ptr_yy_globals ); |
|
|
|
} |
|
|
|
|
|
|
|
static int yy_init_globals (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
/* Initialization is the same as for the non-reentrant scanner.
|
|
|
|
* This function is called from fts0blex_destroy(), so don't allocate here. |
|
|
|
*/ |
|
|
|
|
|
|
|
yyg->yy_buffer_stack = 0; |
|
|
|
yyg->yy_buffer_stack_top = 0; |
|
|
|
yyg->yy_buffer_stack_max = 0; |
|
|
|
yyg->yy_c_buf_p = (char *) 0; |
|
|
|
yyg->yy_init = 0; |
|
|
|
yyg->yy_start = 0; |
|
|
|
|
|
|
|
yyg->yy_start_stack_ptr = 0; |
|
|
|
yyg->yy_start_stack_depth = 0; |
|
|
|
yyg->yy_start_stack = NULL; |
|
|
|
|
|
|
|
/* Defined in main.c */ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
/* Initialization is the same as for the non-reentrant scanner.
|
|
|
|
* This function is called from fts0blex_destroy(), so don't allocate here. |
|
|
|
*/ |
|
|
|
|
|
|
|
yyg->yy_buffer_stack = 0; |
|
|
|
yyg->yy_buffer_stack_top = 0; |
|
|
|
yyg->yy_buffer_stack_max = 0; |
|
|
|
yyg->yy_c_buf_p = (char *) 0; |
|
|
|
yyg->yy_init = 0; |
|
|
|
yyg->yy_start = 0; |
|
|
|
|
|
|
|
yyg->yy_start_stack_ptr = 0; |
|
|
|
yyg->yy_start_stack_depth = 0; |
|
|
|
yyg->yy_start_stack = NULL; |
|
|
|
|
|
|
|
/* Defined in main.c */ |
|
|
|
#ifdef YY_STDINIT
|
|
|
|
yyin = stdin; |
|
|
|
yyout = stdout; |
|
|
|
yyin = stdin; |
|
|
|
yyout = stdout; |
|
|
|
#else
|
|
|
|
yyin = (FILE *) 0; |
|
|
|
yyout = (FILE *) 0; |
|
|
|
yyin = (FILE *) 0; |
|
|
|
yyout = (FILE *) 0; |
|
|
|
#endif
|
|
|
|
|
|
|
|
/* For future reference: Set errno on error, since we are called by
|
|
|
|
* fts0blex_init() |
|
|
|
*/ |
|
|
|
return 0; |
|
|
|
/* For future reference: Set errno on error, since we are called by
|
|
|
|
* fts0blex_init() |
|
|
|
*/ |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
/* fts0blex_destroy is for both reentrant and non-reentrant scanners. */ |
|
|
|
int fts0blex_destroy (yyscan_t yyscanner) |
|
|
|
{ |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
|
|
|
|
|
|
|
/* Pop the buffer stack, destroying each element. */ |
|
|
|
/* Pop the buffer stack, destroying each element. */ |
|
|
|
while(YY_CURRENT_BUFFER){ |
|
|
|
fts0b_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); |
|
|
|
YY_CURRENT_BUFFER_LVALUE = NULL; |
|
|
|
@ -1891,18 +1891,18 @@ int fts0blex_destroy (yyscan_t yyscanner) |
|
|
|
fts0bfree(yyg->yy_buffer_stack ,yyscanner); |
|
|
|
yyg->yy_buffer_stack = NULL; |
|
|
|
|
|
|
|
/* Destroy the start condition stack. */ |
|
|
|
fts0bfree(yyg->yy_start_stack ,yyscanner ); |
|
|
|
yyg->yy_start_stack = NULL; |
|
|
|
/* Destroy the start condition stack. */ |
|
|
|
fts0bfree(yyg->yy_start_stack ,yyscanner ); |
|
|
|
yyg->yy_start_stack = NULL; |
|
|
|
|
|
|
|
/* Reset the globals. This is important in a non-reentrant scanner so the next time
|
|
|
|
* fts0blex() is called, initialization will occur. */ |
|
|
|
yy_init_globals( yyscanner); |
|
|
|
/* Reset the globals. This is important in a non-reentrant scanner so the next time
|
|
|
|
* fts0blex() is called, initialization will occur. */ |
|
|
|
yy_init_globals( yyscanner); |
|
|
|
|
|
|
|
/* Destroy the main struct (reentrant only). */ |
|
|
|
fts0bfree ( yyscanner , yyscanner ); |
|
|
|
yyscanner = NULL; |
|
|
|
return 0; |
|
|
|
/* Destroy the main struct (reentrant only). */ |
|
|
|
fts0bfree ( yyscanner , yyscanner ); |
|
|
|
yyscanner = NULL; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
/*
|
|
|
|
@ -1955,5 +1955,3 @@ void fts0bfree (void * ptr , yyscan_t yyscanner __attribute__((unused |
|
|
|
|
|
|
|
#line 73 "fts0blex.l"
|
|
|
|
|
|
|
|
|
|
|
|
|