Lines Matching refs:yyscanner
155 #define YY_NEW_FILE glcpp_restart(yyin ,yyscanner )
193 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
280 void glcpp_restart (FILE *input_file ,yyscan_t yyscanner );
281 void glcpp__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
282 YY_BUFFER_STATE glcpp__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
283 void glcpp__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
284 void glcpp__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
285 void glcpp_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
286 void glcpp_pop_buffer_state (yyscan_t yyscanner );
288 static void glcpp_ensure_buffer_stack (yyscan_t yyscanner );
289 static void glcpp__load_buffer_state (yyscan_t yyscanner );
290 static void glcpp__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
292 #define YY_FLUSH_BUFFER glcpp__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
294 YY_BUFFER_STATE glcpp__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
295 YY_BUFFER_STATE glcpp__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
296 YY_BUFFER_STATE glcpp__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
298 void *glcpp_alloc (yy_size_t ,yyscan_t yyscanner );
299 void *glcpp_realloc (void *,yy_size_t ,yyscan_t yyscanner );
300 void glcpp_free (void * ,yyscan_t yyscanner );
307 glcpp_ensure_buffer_stack (yyscanner); \
309 glcpp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
317 glcpp_ensure_buffer_stack (yyscanner); \
319 glcpp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
337 static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
338 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
339 static int yy_get_next_buffer (yyscan_t yyscanner );
340 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
680 int glcpp_get_column (yyscan_t yyscanner);
681 void glcpp_set_column (int column_no , yyscan_t yyscanner);
757 static int yy_init_globals (yyscan_t yyscanner );
772 int glcpp_lex_destroy (yyscan_t yyscanner );
774 int glcpp_get_debug (yyscan_t yyscanner );
776 void glcpp_set_debug (int debug_flag ,yyscan_t yyscanner );
778 YY_EXTRA_TYPE glcpp_get_extra (yyscan_t yyscanner );
780 void glcpp_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
782 FILE *glcpp_get_in (yyscan_t yyscanner );
784 void glcpp_set_in (FILE * in_str ,yyscan_t yyscanner );
786 FILE *glcpp_get_out (yyscan_t yyscanner );
788 void glcpp_set_out (FILE * out_str ,yyscan_t yyscanner );
790 int glcpp_get_leng (yyscan_t yyscanner );
792 char *glcpp_get_text (yyscan_t yyscanner );
794 int glcpp_get_lineno (yyscan_t yyscanner );
796 void glcpp_set_lineno (int line_number ,yyscan_t yyscanner );
798 YYSTYPE * glcpp_get_lval (yyscan_t yyscanner );
800 void glcpp_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
802 YYLTYPE *glcpp_get_lloc (yyscan_t yyscanner );
804 void glcpp_set_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
812 extern "C" int glcpp_wrap (yyscan_t yyscanner );
814 extern int glcpp_wrap (yyscan_t yyscanner );
818 static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
821 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
825 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
831 static int yyinput (yyscan_t yyscanner );
833 static int input (yyscan_t yyscanner );
838 static void yy_push_state (int new_state ,yyscan_t yyscanner);
840 static void yy_pop_state (yyscan_t yyscanner );
842 static int yy_top_state (yyscan_t yyscanner );
908 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
920 (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
923 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
951 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
973 yyg->yy_state_buf = (yy_state_type *)glcpp_alloc(YY_STATE_BUF_SIZE ,yyscanner);
987 glcpp_ensure_buffer_stack (yyscanner);
989 glcpp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
992 glcpp__load_buffer_state(yyscanner );
1087 { yy_push_state(COMMENT, yyscanner); }
1115 yy_pop_state(yyscanner);
1518 yy_current_state = yy_get_previous_state( yyscanner );
1529 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1548 else switch ( yy_get_next_buffer( yyscanner ) )
1554 if ( glcpp_wrap(yyscanner ) )
1583 yy_current_state = yy_get_previous_state( yyscanner );
1593 yy_current_state = yy_get_previous_state( yyscanner );
1616 static int yy_get_next_buffer (yyscan_t yyscanner) in yy_get_next_buffer() argument
1618 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_next_buffer()
1689 glcpp_restart(yyin ,yyscanner); in yy_get_next_buffer()
1706 …ch_buf = (char *) glcpp_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); in yy_get_next_buffer()
1722 static yy_state_type yy_get_previous_state (yyscan_t yyscanner) in yy_get_previous_state() argument
1726 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_previous_state()
1755 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) in yy_try_NUL_trans() argument
1758 …struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon opti… in yy_try_NUL_trans()
1775 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) in yyunput() argument
1778 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyunput()
1815 static int yyinput (yyscan_t yyscanner) in yyinput() argument
1817 static int input (yyscan_t yyscanner) in yyinput()
1822 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyinput()
1841 switch ( yy_get_next_buffer( yyscanner ) ) in yyinput()
1855 glcpp_restart(yyin ,yyscanner); in yyinput()
1861 if ( glcpp_wrap(yyscanner ) ) in yyinput()
1867 return yyinput(yyscanner); in yyinput()
1869 return input(yyscanner); in yyinput()
1895 void glcpp_restart (FILE * input_file , yyscan_t yyscanner) in glcpp_restart() argument
1897 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_restart()
1900 glcpp_ensure_buffer_stack (yyscanner); in glcpp_restart()
1902 glcpp__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); in glcpp_restart()
1905 glcpp__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); in glcpp_restart()
1906 glcpp__load_buffer_state(yyscanner ); in glcpp_restart()
1913 void glcpp__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in glcpp__switch_to_buffer() argument
1915 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp__switch_to_buffer()
1922 glcpp_ensure_buffer_stack (yyscanner); in glcpp__switch_to_buffer()
1935 glcpp__load_buffer_state(yyscanner ); in glcpp__switch_to_buffer()
1945 static void glcpp__load_buffer_state (yyscan_t yyscanner) in glcpp__load_buffer_state() argument
1947 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp__load_buffer_state()
1960 YY_BUFFER_STATE glcpp__create_buffer (FILE * file, int size , yyscan_t yyscanner) in glcpp__create_buffer() argument
1964 b = (YY_BUFFER_STATE) glcpp_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in glcpp__create_buffer()
1973 b->yy_ch_buf = (char *) glcpp_alloc(b->yy_buf_size + 2 ,yyscanner ); in glcpp__create_buffer()
1979 glcpp__init_buffer(b,file ,yyscanner); in glcpp__create_buffer()
1988 void glcpp__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in glcpp__delete_buffer() argument
1990 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp__delete_buffer()
1999 glcpp_free((void *) b->yy_ch_buf ,yyscanner ); in glcpp__delete_buffer()
2001 glcpp_free((void *) b ,yyscanner ); in glcpp__delete_buffer()
2008 static void glcpp__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) in glcpp__init_buffer() argument
2012 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp__init_buffer()
2014 glcpp__flush_buffer(b ,yyscanner); in glcpp__init_buffer()
2037 void glcpp__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in glcpp__flush_buffer() argument
2039 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp__flush_buffer()
2058 glcpp__load_buffer_state(yyscanner ); in glcpp__flush_buffer()
2067 void glcpp_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in glcpp_push_buffer_state() argument
2069 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_push_buffer_state()
2073 glcpp_ensure_buffer_stack(yyscanner); in glcpp_push_buffer_state()
2090 glcpp__load_buffer_state(yyscanner ); in glcpp_push_buffer_state()
2098 void glcpp_pop_buffer_state (yyscan_t yyscanner) in glcpp_pop_buffer_state() argument
2100 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_pop_buffer_state()
2104 glcpp__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); in glcpp_pop_buffer_state()
2110 glcpp__load_buffer_state(yyscanner ); in glcpp_pop_buffer_state()
2118 static void glcpp_ensure_buffer_stack (yyscan_t yyscanner) in glcpp_ensure_buffer_stack() argument
2121 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_ensure_buffer_stack()
2132 , yyscanner); in glcpp_ensure_buffer_stack()
2152 , yyscanner); in glcpp_ensure_buffer_stack()
2168 YY_BUFFER_STATE glcpp__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) in glcpp__scan_buffer() argument
2178 b = (YY_BUFFER_STATE) glcpp_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in glcpp__scan_buffer()
2192 glcpp__switch_to_buffer(b ,yyscanner ); in glcpp__scan_buffer()
2205 YY_BUFFER_STATE glcpp__scan_string (yyconst char * yystr , yyscan_t yyscanner) in glcpp__scan_string() argument
2208 return glcpp__scan_bytes(yystr,strlen(yystr) ,yyscanner); in glcpp__scan_string()
2218 YY_BUFFER_STATE glcpp__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) in glcpp__scan_bytes() argument
2227 buf = (char *) glcpp_alloc(n ,yyscanner ); in glcpp__scan_bytes()
2236 b = glcpp__scan_buffer(buf,n ,yyscanner); in glcpp__scan_bytes()
2248 static void yy_push_state (int new_state , yyscan_t yyscanner) in yy_push_state() argument
2250 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_push_state()
2259 yyg->yy_start_stack = (int *) glcpp_alloc(new_size ,yyscanner ); in yy_push_state()
2262 yyg->yy_start_stack = (int *) glcpp_realloc((void *) yyg->yy_start_stack,new_size ,yyscanner ); in yy_push_state()
2273 static void yy_pop_state (yyscan_t yyscanner) in yy_pop_state() argument
2275 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_pop_state()
2282 static int yy_top_state (yyscan_t yyscanner) in yy_top_state() argument
2284 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_top_state()
2292 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) in yy_fatal_error() argument
2320 YY_EXTRA_TYPE glcpp_get_extra (yyscan_t yyscanner) in glcpp_get_extra() argument
2322 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_extra()
2329 int glcpp_get_lineno (yyscan_t yyscanner) in glcpp_get_lineno() argument
2331 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_lineno()
2342 int glcpp_get_column (yyscan_t yyscanner) in glcpp_get_column() argument
2344 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_column()
2355 FILE *glcpp_get_in (yyscan_t yyscanner) in glcpp_get_in() argument
2357 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_in()
2364 FILE *glcpp_get_out (yyscan_t yyscanner) in glcpp_get_out() argument
2366 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_out()
2373 int glcpp_get_leng (yyscan_t yyscanner) in glcpp_get_leng() argument
2375 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_leng()
2383 char *glcpp_get_text (yyscan_t yyscanner) in glcpp_get_text() argument
2385 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_text()
2393 void glcpp_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) in glcpp_set_extra() argument
2395 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_extra()
2403 void glcpp_set_lineno (int line_number , yyscan_t yyscanner) in glcpp_set_lineno() argument
2405 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_lineno()
2409 yy_fatal_error( "glcpp_set_lineno called with no buffer" , yyscanner); in glcpp_set_lineno()
2418 void glcpp_set_column (int column_no , yyscan_t yyscanner) in glcpp_set_column() argument
2420 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_column()
2424 yy_fatal_error( "glcpp_set_column called with no buffer" , yyscanner); in glcpp_set_column()
2435 void glcpp_set_in (FILE * in_str , yyscan_t yyscanner) in glcpp_set_in() argument
2437 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_in()
2441 void glcpp_set_out (FILE * out_str , yyscan_t yyscanner) in glcpp_set_out() argument
2443 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_out()
2447 int glcpp_get_debug (yyscan_t yyscanner) in glcpp_get_debug() argument
2449 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_debug()
2453 void glcpp_set_debug (int bdebug , yyscan_t yyscanner) in glcpp_set_debug() argument
2455 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_debug()
2461 YYSTYPE * glcpp_get_lval (yyscan_t yyscanner) in glcpp_get_lval() argument
2463 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_lval()
2467 void glcpp_set_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) in glcpp_set_lval() argument
2469 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_lval()
2473 YYLTYPE *glcpp_get_lloc (yyscan_t yyscanner) in glcpp_get_lloc() argument
2475 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_get_lloc()
2479 void glcpp_set_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) in glcpp_set_lloc() argument
2481 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_set_lloc()
2549 static int yy_init_globals (yyscan_t yyscanner) in yy_init_globals() argument
2551 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_init_globals()
2588 int glcpp_lex_destroy (yyscan_t yyscanner) in glcpp_lex_destroy() argument
2590 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in glcpp_lex_destroy()
2594 glcpp__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); in glcpp_lex_destroy()
2596 glcpp_pop_buffer_state(yyscanner); in glcpp_lex_destroy()
2600 glcpp_free(yyg->yy_buffer_stack ,yyscanner); in glcpp_lex_destroy()
2604 glcpp_free(yyg->yy_start_stack ,yyscanner ); in glcpp_lex_destroy()
2607 glcpp_free ( yyg->yy_state_buf , yyscanner); in glcpp_lex_destroy()
2612 yy_init_globals( yyscanner); in glcpp_lex_destroy()
2615 glcpp_free ( yyscanner , yyscanner ); in glcpp_lex_destroy()
2616 yyscanner = NULL; in glcpp_lex_destroy()
2625 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) in yy_flex_strncpy() argument
2634 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) in yy_flex_strlen() argument
2644 void *glcpp_alloc (yy_size_t size , yyscan_t yyscanner) in glcpp_alloc() argument
2649 void *glcpp_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner) in glcpp_realloc() argument
2661 void glcpp_free (void * ptr , yyscan_t yyscanner) in glcpp_free() argument