1
- #line 1 "third_party/libpg_query/src_backend_parser_scan.cpp"
1
+ #line 2 "third_party/libpg_query/src_backend_parser_scan.cpp"
2
2
/* -------------------------------------------------------------------------
3
3
*
4
4
* scan.l
40
40
41
41
#include < stdexcept>
42
42
43
- #line 43 "third_party/libpg_query/src_backend_parser_scan.cpp"
43
+ #line 44 "third_party/libpg_query/src_backend_parser_scan.cpp"
44
44
45
45
#define YY_INT_ALIGNED short int
46
46
@@ -322,7 +322,6 @@ typedef int16_t flex_int16_t;
322
322
typedef uint16_t flex_uint16_t ;
323
323
typedef int32_t flex_int32_t ;
324
324
typedef uint32_t flex_uint32_t ;
325
- typedef uint64_t flex_uint64_t ;
326
325
#else
327
326
typedef signed char flex_int8_t ;
328
327
typedef short int flex_int16_t ;
@@ -482,12 +481,12 @@ struct yy_buffer_state
482
481
/* Size of input buffer in bytes, not including room for EOB
483
482
* characters.
484
483
*/
485
- int yy_buf_size;
484
+ yy_size_t yy_buf_size;
486
485
487
486
/* Number of characters read into yy_ch_buf, not including EOB
488
487
* characters.
489
488
*/
490
- yy_size_t yy_n_chars;
489
+ int yy_n_chars;
491
490
492
491
/* Whether we "own" the buffer - i.e., we know we created it,
493
492
* and can realloc() it to grow it, and should free() it to
@@ -564,7 +563,7 @@ static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner
564
563
565
564
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
566
565
YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
567
- YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, yy_size_t len , yyscan_t yyscanner );
566
+ YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
568
567
569
568
void *yyalloc ( yy_size_t , yyscan_t yyscanner );
570
569
void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
@@ -611,7 +610,7 @@ static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
611
610
*/
612
611
#define YY_DO_BEFORE_ACTION \
613
612
yyg->yytext_ptr = yy_bp; \
614
- yyleng = (yy_size_t ) (yy_cp - yy_bp); \
613
+ yyleng = (int ) (yy_cp - yy_bp); \
615
614
yyg->yy_hold_char = *yy_cp; \
616
615
*yy_cp = ' \0 ' ; \
617
616
yyg->yy_c_buf_p = yy_cp;
@@ -1336,8 +1335,8 @@ struct yyguts_t
1336
1335
size_t yy_buffer_stack_max; /* *< capacity of stack. */
1337
1336
YY_BUFFER_STATE * yy_buffer_stack; /* *< Stack as an array. */
1338
1337
char yy_hold_char;
1339
- yy_size_t yy_n_chars;
1340
- yy_size_t yyleng_r;
1338
+ int yy_n_chars;
1339
+ int yyleng_r;
1341
1340
char *yy_c_buf_p;
1342
1341
int yy_init;
1343
1342
int yy_start;
@@ -1394,7 +1393,7 @@ FILE *yyget_out ( yyscan_t yyscanner );
1394
1393
1395
1394
void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
1396
1395
1397
- yy_size_t yyget_leng ( yyscan_t yyscanner );
1396
+ int yyget_leng ( yyscan_t yyscanner );
1398
1397
1399
1398
char *yyget_text ( yyscan_t yyscanner );
1400
1399
@@ -1473,7 +1472,7 @@ static int input ( yyscan_t yyscanner );
1473
1472
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1474
1473
{ \
1475
1474
int c = ' *' ; \
1476
- yy_size_t n; \
1475
+ int n; \
1477
1476
for ( n = 0 ; n < max_size && \
1478
1477
(c = getc ( yyin )) != EOF && c != ' \n ' ; ++n ) \
1479
1478
buf[n] = (char ) c; \
@@ -2839,7 +2838,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
2839
2838
2840
2839
else
2841
2840
{
2842
- yy_size_t num_to_read =
2841
+ int num_to_read =
2843
2842
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1 ;
2844
2843
2845
2844
while ( num_to_read <= 0 )
@@ -2853,7 +2852,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
2853
2852
2854
2853
if ( b->yy_is_our_buffer )
2855
2854
{
2856
- yy_size_t new_size = b->yy_buf_size * 2 ;
2855
+ int new_size = b->yy_buf_size * 2 ;
2857
2856
2858
2857
if ( new_size <= 0 )
2859
2858
b->yy_buf_size += b->yy_buf_size / 8 ;
@@ -2911,7 +2910,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
2911
2910
2912
2911
if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size ) {
2913
2912
/* Extend the array by 50%, plus the number we really need. */
2914
- yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1 );
2913
+ int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1 );
2915
2914
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc (
2916
2915
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf , (yy_size_t ) new_size , yyscanner );
2917
2916
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@ -3018,7 +3017,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
3018
3017
3019
3018
else
3020
3019
{ /* need more input */
3021
- yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr ;
3020
+ int offset = ( int ) ( yyg->yy_c_buf_p - yyg->yytext_ptr ) ;
3022
3021
++yyg->yy_c_buf_p ;
3023
3022
3024
3023
switch ( yy_get_next_buffer ( yyscanner ) )
@@ -3396,12 +3395,12 @@ YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
3396
3395
* @param yyscanner The scanner object.
3397
3396
* @return the newly allocated buffer state object.
3398
3397
*/
3399
- YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
3398
+ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner)
3400
3399
{
3401
3400
YY_BUFFER_STATE b;
3402
3401
char *buf;
3403
3402
yy_size_t n;
3404
- yy_size_t i;
3403
+ int i;
3405
3404
3406
3405
/* Get memory for full buffer, including space for trailing EOB's. */
3407
3406
n = (yy_size_t ) (_yybytes_len + 2 );
@@ -3445,7 +3444,7 @@ static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
3445
3444
do \
3446
3445
{ \
3447
3446
/* Undo effects of setting up yytext. */ \
3448
- yy_size_t yyless_macro_arg = (n); \
3447
+ int yyless_macro_arg = (n); \
3449
3448
YY_LESS_LINENO (yyless_macro_arg);\
3450
3449
yytext[yyleng] = yyg->yy_hold_char ; \
3451
3450
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
@@ -3513,7 +3512,7 @@ FILE *yyget_out (yyscan_t yyscanner)
3513
3512
/* * Get the length of the current token.
3514
3513
* @param yyscanner The scanner object.
3515
3514
*/
3516
- yy_size_t yyget_leng (yyscan_t yyscanner)
3515
+ int yyget_leng (yyscan_t yyscanner)
3517
3516
{
3518
3517
struct yyguts_t * yyg = (struct yyguts_t *)yyscanner;
3519
3518
return yyleng;
@@ -3704,13 +3703,8 @@ static int yy_init_globals (yyscan_t yyscanner)
3704
3703
yyg->yy_start_stack = NULL ;
3705
3704
3706
3705
/* Defined in main.c */
3707
- #ifdef YY_STDINIT
3708
- yyin = stdin;
3709
- yyout = stdout;
3710
- #else
3711
- yyin = NULL ;
3712
- yyout = NULL ;
3713
- #endif
3706
+ yyin = (FILE *) 0 ;
3707
+ yyout = (FILE *) 0 ;
3714
3708
3715
3709
/* For future reference: Set errno on error, since we are called by
3716
3710
* yylex_init()
0 commit comments