141
141
typedef struct yy_buffer_state *YY_BUFFER_STATE;
144
static FILE *yyin, *yyout;
146
extern FILE *yyin, *yyout;
146
148
#define EOB_ACT_CONTINUE_SCAN 0
147
149
#define EOB_ACT_END_OF_FILE 1
263
265
/* yy_hold_char holds the character lost when yytext is formed. */
264
266
static char yy_hold_char;
265
267
static int yy_n_chars; /* number of characters read into yy_ch_buf */
268
270
/* Points to current character in buffer. */
269
271
static char *yy_c_buf_p = (char *) 0;
276
278
static int yy_did_buffer_switch_on_eof;
278
static void yyrestart (FILE *input_file );
279
__attribute__((unused)) static void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
280
static YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
281
static void yy_delete_buffer (YY_BUFFER_STATE b );
282
static void yy_flush_buffer (YY_BUFFER_STATE b );
283
__attribute__((unused)) static void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
284
__attribute__((unused)) static void yypop_buffer_state (void );
280
void yyrestart (FILE *input_file );
281
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
282
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
283
void yy_delete_buffer (YY_BUFFER_STATE b );
284
void yy_flush_buffer (YY_BUFFER_STATE b );
285
void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
286
void yypop_buffer_state (void );
286
288
static void yyensure_buffer_stack (void );
287
289
static void yy_load_buffer_state (void );
293
295
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
294
296
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
296
static void *yyalloc (yy_size_t );
297
static void *yyrealloc (void *,yy_size_t );
298
static void yyfree (void * );
298
void *yyalloc (yy_size_t );
299
void *yyrealloc (void *,yy_size_t );
300
void yyfree (void * );
300
302
#define yy_new_buffer yy_create_buffer
329
331
typedef unsigned char YY_CHAR;
331
static FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
333
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
333
335
typedef int yy_state_type;
337
static int yylineno = 1;
340
342
#define yytext_ptr yytext
342
344
static yy_state_type yy_get_previous_state (void );
671
673
static yy_state_type yy_last_accepting_state;
672
674
static char *yy_last_accepting_cpos;
674
static int yy_flex_debug;
675
static int yy_flex_debug = 0;
676
extern int yy_flex_debug;
677
int yy_flex_debug = 0;
677
679
/* The intent behind this definition is that it'll catch
678
680
* any uses of REJECT which flex missed.
681
683
#define yymore() yymore_used_but_not_detected
682
684
#define YY_MORE_ADJ 0
683
685
#define YY_RESTORE_YY_MORE_OFFSET
684
687
#line 1 "pars0lex.l"
685
688
/******************************************************
686
689
SQL parser lexical analyzer: input file for the GNU Flex lexer generator
878
881
#define YY_DECL_IS_OURS 1
880
UNIV_INTERN int yylex (void);
883
extern int yylex (void);
882
#define YY_DECL UNIV_INTERN int yylex (void)
885
#define YY_DECL int yylex (void)
883
886
#endif /* !YY_DECL */
885
888
/* Code executed at the beginning of each rule, after yytext and yyleng
2331
2334
* @param new_buffer The new input buffer.
2334
__attribute__((unused)) static void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2337
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2337
2340
/* TODO. We should be able to replace this entire function body
2598
2601
/* Accessor methods (get/set functions) to struct members. */
2600
/** Get the current line number.
2603
__attribute__((unused)) static int yyget_lineno (void)
2609
/** Get the input stream.
2612
__attribute__((unused)) static FILE *yyget_in (void)
2617
/** Get the output stream.
2620
__attribute__((unused)) static FILE *yyget_out (void)
2625
/** Get the length of the current token.
2628
__attribute__((unused)) static int yyget_leng (void)
2633
/** Get the current token.
2637
__attribute__((unused)) static char *yyget_text (void)
2642
/** Set the current line number.
2643
* @param line_number
2646
__attribute__((unused)) static void yyset_lineno (int line_number )
2649
yylineno = line_number;
2652
/** Set the input stream. This does not discard the current
2654
* @param in_str A readable stream.
2656
* @see yy_switch_to_buffer
2658
__attribute__((unused)) static void yyset_in (FILE * in_str )
2663
__attribute__((unused)) static void yyset_out (FILE * out_str )
2668
__attribute__((unused)) static int yyget_debug (void)
2670
return yy_flex_debug;
2673
__attribute__((unused)) static void yyset_debug (int bdebug )
2675
yy_flex_debug = bdebug ;
2678
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
2679
__attribute__((unused)) static int yylex_destroy (void)
2682
/* Pop the buffer stack, destroying each element. */
2683
while(YY_CURRENT_BUFFER){
2684
yy_delete_buffer(YY_CURRENT_BUFFER );
2685
YY_CURRENT_BUFFER_LVALUE = NULL;
2686
yypop_buffer_state();
2689
/* Destroy the stack itself. */
2690
yyfree((yy_buffer_stack) );
2691
(yy_buffer_stack) = NULL;
2697
2605
* Internal utility routines.
2720
static void *yyalloc (yy_size_t size )
2628
void *yyalloc (yy_size_t size )
2722
2630
return (void *) malloc( size );
2725
static void *yyrealloc (void * ptr, yy_size_t size )
2633
void *yyrealloc (void * ptr, yy_size_t size )
2727
2635
/* The cast to (char *) in the following accommodates both
2728
2636
* implementations that use char* generic pointers, and those
2734
2642
return (void *) realloc( (char *) ptr, size );
2737
static void yyfree (void * ptr )
2645
void yyfree (void * ptr )
2739
2647
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */