1- #line 1 "third_party/libpg_query/src_backend_parser_scan.cpp"
1+ #line 2 "third_party/libpg_query/src_backend_parser_scan.cpp"
22/* -------------------------------------------------------------------------
33 *
44 * scan.l
4040
4141#include < stdexcept>
4242
43- #line 43 "third_party/libpg_query/src_backend_parser_scan.cpp"
43+ #line 44 "third_party/libpg_query/src_backend_parser_scan.cpp"
4444
4545#define YY_INT_ALIGNED short int
4646
@@ -322,7 +322,6 @@ typedef int16_t flex_int16_t;
322322typedef uint16_t flex_uint16_t ;
323323typedef int32_t flex_int32_t ;
324324typedef uint32_t flex_uint32_t ;
325- typedef uint64_t flex_uint64_t ;
326325#else
327326typedef signed char flex_int8_t ;
328327typedef short int flex_int16_t ;
@@ -482,12 +481,12 @@ struct yy_buffer_state
482481 /* Size of input buffer in bytes, not including room for EOB
483482 * characters.
484483 */
485- int yy_buf_size;
484+ yy_size_t yy_buf_size;
486485
487486 /* Number of characters read into yy_ch_buf, not including EOB
488487 * characters.
489488 */
490- yy_size_t yy_n_chars;
489+ int yy_n_chars;
491490
492491 /* Whether we "own" the buffer - i.e., we know we created it,
493492 * 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
564563
565564YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
566565YY_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 );
568567
569568void *yyalloc ( yy_size_t , yyscan_t yyscanner );
570569void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
@@ -611,7 +610,7 @@ static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
611610 */
612611#define YY_DO_BEFORE_ACTION \
613612 yyg->yytext_ptr = yy_bp; \
614- yyleng = (yy_size_t ) (yy_cp - yy_bp); \
613+ yyleng = (int ) (yy_cp - yy_bp); \
615614 yyg->yy_hold_char = *yy_cp; \
616615 *yy_cp = ' \0 ' ; \
617616 yyg->yy_c_buf_p = yy_cp;
@@ -1336,8 +1335,8 @@ struct yyguts_t
13361335 size_t yy_buffer_stack_max; /* *< capacity of stack. */
13371336 YY_BUFFER_STATE * yy_buffer_stack; /* *< Stack as an array. */
13381337 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;
13411340 char *yy_c_buf_p;
13421341 int yy_init;
13431342 int yy_start;
@@ -1394,7 +1393,7 @@ FILE *yyget_out ( yyscan_t yyscanner );
13941393
13951394void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
13961395
1397- yy_size_t yyget_leng ( yyscan_t yyscanner );
1396+ int yyget_leng ( yyscan_t yyscanner );
13981397
13991398char *yyget_text ( yyscan_t yyscanner );
14001399
@@ -1473,7 +1472,7 @@ static int input ( yyscan_t yyscanner );
14731472 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
14741473 { \
14751474 int c = ' *' ; \
1476- yy_size_t n; \
1475+ int n; \
14771476 for ( n = 0 ; n < max_size && \
14781477 (c = getc ( yyin )) != EOF && c != ' \n ' ; ++n ) \
14791478 buf[n] = (char ) c; \
@@ -2839,7 +2838,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
28392838
28402839 else
28412840 {
2842- yy_size_t num_to_read =
2841+ int num_to_read =
28432842 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1 ;
28442843
28452844 while ( num_to_read <= 0 )
@@ -2853,7 +2852,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
28532852
28542853 if ( b->yy_is_our_buffer )
28552854 {
2856- yy_size_t new_size = b->yy_buf_size * 2 ;
2855+ int new_size = b->yy_buf_size * 2 ;
28572856
28582857 if ( new_size <= 0 )
28592858 b->yy_buf_size += b->yy_buf_size / 8 ;
@@ -2911,7 +2910,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
29112910
29122911 if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size ) {
29132912 /* 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 );
29152914 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc (
29162915 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf , (yy_size_t ) new_size , yyscanner );
29172916 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@ -3018,7 +3017,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
30183017
30193018 else
30203019 { /* 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 ) ;
30223021 ++yyg->yy_c_buf_p ;
30233022
30243023 switch ( yy_get_next_buffer ( yyscanner ) )
@@ -3396,12 +3395,12 @@ YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
33963395 * @param yyscanner The scanner object.
33973396 * @return the newly allocated buffer state object.
33983397 */
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)
34003399{
34013400 YY_BUFFER_STATE b;
34023401 char *buf;
34033402 yy_size_t n;
3404- yy_size_t i;
3403+ int i;
34053404
34063405 /* Get memory for full buffer, including space for trailing EOB's. */
34073406 n = (yy_size_t ) (_yybytes_len + 2 );
@@ -3445,7 +3444,7 @@ static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
34453444 do \
34463445 { \
34473446 /* Undo effects of setting up yytext. */ \
3448- yy_size_t yyless_macro_arg = (n); \
3447+ int yyless_macro_arg = (n); \
34493448 YY_LESS_LINENO (yyless_macro_arg);\
34503449 yytext[yyleng] = yyg->yy_hold_char ; \
34513450 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
@@ -3513,7 +3512,7 @@ FILE *yyget_out (yyscan_t yyscanner)
35133512/* * Get the length of the current token.
35143513 * @param yyscanner The scanner object.
35153514 */
3516- yy_size_t yyget_leng (yyscan_t yyscanner)
3515+ int yyget_leng (yyscan_t yyscanner)
35173516{
35183517 struct yyguts_t * yyg = (struct yyguts_t *)yyscanner;
35193518 return yyleng;
@@ -3704,13 +3703,8 @@ static int yy_init_globals (yyscan_t yyscanner)
37043703 yyg->yy_start_stack = NULL ;
37053704
37063705/* 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 ;
37143708
37153709 /* For future reference: Set errno on error, since we are called by
37163710 * yylex_init()
0 commit comments