1/* This used to crash IRA with -O3 -fPIC. 2 See PR 37333. */ 3struct yy_buffer_state { 4 int yy_is_interactive; 5}; 6static struct yy_buffer_state * * yy_buffer_stack = 0; 7static int yy_n_chars; 8int orafce_sql_yyleng; 9unsigned char *yy_c_buf_p = 0; 10extern char *orafce_sql_yytext; 11static const int yy_ec[256] = { }; 12short yy_accept[155], yy_base[193] = { }, yy_def[193] = { }; 13short yy_chk[738] = { }; 14unsigned char *yy_last_accepting_cpos; 15int orafce_sql_yylex (int a) 16{ 17 register int yy_current_state; 18 unsigned char *yy_cp, *yy_bp; 19 register int yy_act; 20 while ( 1 ) { 21 do { 22 char yy_c = yy_ec[*yy_cp]; 23 if ( yy_accept[yy_current_state] ) 24 yy_last_accepting_cpos = yy_cp; 25 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 26 yy_current_state = yy_def[yy_current_state]; 27 } while ( yy_current_state != 154 ); 28yy_find_action: 29 yy_act = yy_accept[yy_current_state]; 30 *yy_cp = '\0'; 31 switch ( yy_act ) { 32 case 2: 33 *yy_cp = 1; 34 return 265; 35 case 24: 36 case 25: 37 addlit(orafce_sql_yytext, orafce_sql_yyleng); 38 case 26: 39 addlit(orafce_sql_yytext, orafce_sql_yyleng); 40 case 53: 41 yy_fatal_error( "flex scanner jammed" ); 42 break; 43 case 54: 44 yy_cp = ++(yy_c_buf_p); 45 unsigned long n = 0; 46 if ( yy_buffer_stack[0]->yy_is_interactive ) 47 for ( ; _IO_getc () != (-1) ; ++n ) 48 yy_n_chars = n; 49 if (a == 0) 50 { 51 yy_current_state = yy_get_previous_state( ); 52 goto yy_find_action; 53 } 54 } 55 } 56} 57