Lines Matching refs:yyscanner
155 #define YY_NEW_FILE _mesa_glsl_restart(yyin ,yyscanner )
193 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
280 void _mesa_glsl_restart (FILE *input_file ,yyscan_t yyscanner );
281 void _mesa_glsl__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
282 YY_BUFFER_STATE _mesa_glsl__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
283 void _mesa_glsl__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
284 void _mesa_glsl__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
285 void _mesa_glsl_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
286 void _mesa_glsl_pop_buffer_state (yyscan_t yyscanner );
288 static void _mesa_glsl_ensure_buffer_stack (yyscan_t yyscanner );
289 static void _mesa_glsl__load_buffer_state (yyscan_t yyscanner );
290 static void _mesa_glsl__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
292 #define YY_FLUSH_BUFFER _mesa_glsl__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
294 YY_BUFFER_STATE _mesa_glsl__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
295 YY_BUFFER_STATE _mesa_glsl__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
296 YY_BUFFER_STATE _mesa_glsl__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
298 void *_mesa_glsl_alloc (yy_size_t ,yyscan_t yyscanner );
299 void *_mesa_glsl_realloc (void *,yy_size_t ,yyscan_t yyscanner );
300 void _mesa_glsl_free (void * ,yyscan_t yyscanner );
307 _mesa_glsl_ensure_buffer_stack (yyscanner); \
309 _mesa_glsl__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
317 _mesa_glsl_ensure_buffer_stack (yyscanner); \
319 _mesa_glsl__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 );
1104 static int yy_init_globals (yyscan_t yyscanner );
1119 int _mesa_glsl_lex_destroy (yyscan_t yyscanner );
1121 int _mesa_glsl_get_debug (yyscan_t yyscanner );
1123 void _mesa_glsl_set_debug (int debug_flag ,yyscan_t yyscanner );
1125 YY_EXTRA_TYPE _mesa_glsl_get_extra (yyscan_t yyscanner );
1127 void _mesa_glsl_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
1129 FILE *_mesa_glsl_get_in (yyscan_t yyscanner );
1131 void _mesa_glsl_set_in (FILE * in_str ,yyscan_t yyscanner );
1133 FILE *_mesa_glsl_get_out (yyscan_t yyscanner );
1135 void _mesa_glsl_set_out (FILE * out_str ,yyscan_t yyscanner );
1137 int _mesa_glsl_get_leng (yyscan_t yyscanner );
1139 char *_mesa_glsl_get_text (yyscan_t yyscanner );
1141 int _mesa_glsl_get_lineno (yyscan_t yyscanner );
1143 void _mesa_glsl_set_lineno (int line_number ,yyscan_t yyscanner );
1145 YYSTYPE * _mesa_glsl_get_lval (yyscan_t yyscanner );
1147 void _mesa_glsl_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
1149 YYLTYPE *_mesa_glsl_get_lloc (yyscan_t yyscanner );
1151 void _mesa_glsl_set_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
1159 extern "C" int _mesa_glsl_wrap (yyscan_t yyscanner );
1161 extern int _mesa_glsl_wrap (yyscan_t yyscanner );
1166 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
1170 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
1176 static int yyinput (yyscan_t yyscanner );
1178 static int input (yyscan_t yyscanner );
1247 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1259 (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
1262 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
1290 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1319 _mesa_glsl_ensure_buffer_stack (yyscanner);
1321 _mesa_glsl__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1324 _mesa_glsl__load_buffer_state(yyscanner );
2573 yy_current_state = yy_get_previous_state( yyscanner );
2584 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
2604 else switch ( yy_get_next_buffer( yyscanner ) )
2610 if ( _mesa_glsl_wrap(yyscanner ) )
2639 yy_current_state = yy_get_previous_state( yyscanner );
2649 yy_current_state = yy_get_previous_state( yyscanner );
2672 static int yy_get_next_buffer (yyscan_t yyscanner)
2674 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2742 _mesa_glsl_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
2774 _mesa_glsl_restart(yyin ,yyscanner);
2791 …f = (char *) _mesa_glsl_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
2807 static yy_state_type yy_get_previous_state (yyscan_t yyscanner) in yy_get_previous_state() argument
2811 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_previous_state()
2841 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) in yy_try_NUL_trans() argument
2844 …struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon opti… in yy_try_NUL_trans()
2867 static int yyinput (yyscan_t yyscanner) in yyinput() argument
2869 static int input (yyscan_t yyscanner) in yyinput()
2874 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyinput()
2893 switch ( yy_get_next_buffer( yyscanner ) ) in yyinput()
2907 _mesa_glsl_restart(yyin ,yyscanner); in yyinput()
2913 if ( _mesa_glsl_wrap(yyscanner ) ) in yyinput()
2919 return yyinput(yyscanner); in yyinput()
2921 return input(yyscanner); in yyinput()
2947 void _mesa_glsl_restart (FILE * input_file , yyscan_t yyscanner) in _mesa_glsl_restart() argument
2949 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_restart()
2952 _mesa_glsl_ensure_buffer_stack (yyscanner); in _mesa_glsl_restart()
2954 _mesa_glsl__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); in _mesa_glsl_restart()
2957 _mesa_glsl__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); in _mesa_glsl_restart()
2958 _mesa_glsl__load_buffer_state(yyscanner ); in _mesa_glsl_restart()
2965 void _mesa_glsl__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in _mesa_glsl__switch_to_buffer() argument
2967 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl__switch_to_buffer()
2974 _mesa_glsl_ensure_buffer_stack (yyscanner); in _mesa_glsl__switch_to_buffer()
2987 _mesa_glsl__load_buffer_state(yyscanner ); in _mesa_glsl__switch_to_buffer()
2997 static void _mesa_glsl__load_buffer_state (yyscan_t yyscanner) in _mesa_glsl__load_buffer_state() argument
2999 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl__load_buffer_state()
3012 YY_BUFFER_STATE _mesa_glsl__create_buffer (FILE * file, int size , yyscan_t yyscanner) in _mesa_glsl__create_buffer() argument
3016 b = (YY_BUFFER_STATE) _mesa_glsl_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in _mesa_glsl__create_buffer()
3025 b->yy_ch_buf = (char *) _mesa_glsl_alloc(b->yy_buf_size + 2 ,yyscanner ); in _mesa_glsl__create_buffer()
3031 _mesa_glsl__init_buffer(b,file ,yyscanner); in _mesa_glsl__create_buffer()
3040 void _mesa_glsl__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in _mesa_glsl__delete_buffer() argument
3042 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl__delete_buffer()
3051 _mesa_glsl_free((void *) b->yy_ch_buf ,yyscanner ); in _mesa_glsl__delete_buffer()
3053 _mesa_glsl_free((void *) b ,yyscanner ); in _mesa_glsl__delete_buffer()
3060 static void _mesa_glsl__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) in _mesa_glsl__init_buffer() argument
3064 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl__init_buffer()
3066 _mesa_glsl__flush_buffer(b ,yyscanner); in _mesa_glsl__init_buffer()
3089 void _mesa_glsl__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in _mesa_glsl__flush_buffer() argument
3091 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl__flush_buffer()
3110 _mesa_glsl__load_buffer_state(yyscanner ); in _mesa_glsl__flush_buffer()
3119 void _mesa_glsl_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in _mesa_glsl_push_buffer_state() argument
3121 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_push_buffer_state()
3125 _mesa_glsl_ensure_buffer_stack(yyscanner); in _mesa_glsl_push_buffer_state()
3142 _mesa_glsl__load_buffer_state(yyscanner ); in _mesa_glsl_push_buffer_state()
3150 void _mesa_glsl_pop_buffer_state (yyscan_t yyscanner) in _mesa_glsl_pop_buffer_state() argument
3152 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_pop_buffer_state()
3156 _mesa_glsl__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); in _mesa_glsl_pop_buffer_state()
3162 _mesa_glsl__load_buffer_state(yyscanner ); in _mesa_glsl_pop_buffer_state()
3170 static void _mesa_glsl_ensure_buffer_stack (yyscan_t yyscanner) in _mesa_glsl_ensure_buffer_stack() argument
3173 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_ensure_buffer_stack()
3184 , yyscanner); in _mesa_glsl_ensure_buffer_stack()
3204 , yyscanner); in _mesa_glsl_ensure_buffer_stack()
3220 YY_BUFFER_STATE _mesa_glsl__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) in _mesa_glsl__scan_buffer() argument
3230 b = (YY_BUFFER_STATE) _mesa_glsl_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in _mesa_glsl__scan_buffer()
3244 _mesa_glsl__switch_to_buffer(b ,yyscanner ); in _mesa_glsl__scan_buffer()
3257 YY_BUFFER_STATE _mesa_glsl__scan_string (yyconst char * yystr , yyscan_t yyscanner) in _mesa_glsl__scan_string() argument
3260 return _mesa_glsl__scan_bytes(yystr,strlen(yystr) ,yyscanner); in _mesa_glsl__scan_string()
3270 …FFER_STATE _mesa_glsl__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) in _mesa_glsl__scan_bytes() argument
3279 buf = (char *) _mesa_glsl_alloc(n ,yyscanner ); in _mesa_glsl__scan_bytes()
3288 b = _mesa_glsl__scan_buffer(buf,n ,yyscanner); in _mesa_glsl__scan_bytes()
3304 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) in yy_fatal_error() argument
3332 YY_EXTRA_TYPE _mesa_glsl_get_extra (yyscan_t yyscanner) in _mesa_glsl_get_extra() argument
3334 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_extra()
3341 int _mesa_glsl_get_lineno (yyscan_t yyscanner) in _mesa_glsl_get_lineno() argument
3343 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_lineno()
3354 int _mesa_glsl_get_column (yyscan_t yyscanner) in _mesa_glsl_get_column() argument
3356 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_column()
3367 FILE *_mesa_glsl_get_in (yyscan_t yyscanner) in _mesa_glsl_get_in() argument
3369 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_in()
3376 FILE *_mesa_glsl_get_out (yyscan_t yyscanner) in _mesa_glsl_get_out() argument
3378 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_out()
3385 int _mesa_glsl_get_leng (yyscan_t yyscanner) in _mesa_glsl_get_leng() argument
3387 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_leng()
3395 char *_mesa_glsl_get_text (yyscan_t yyscanner) in _mesa_glsl_get_text() argument
3397 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_text()
3405 void _mesa_glsl_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) in _mesa_glsl_set_extra() argument
3407 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_extra()
3415 void _mesa_glsl_set_lineno (int line_number , yyscan_t yyscanner) in _mesa_glsl_set_lineno() argument
3417 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_lineno()
3421 yy_fatal_error( "_mesa_glsl_set_lineno called with no buffer" , yyscanner); in _mesa_glsl_set_lineno()
3430 void _mesa_glsl_set_column (int column_no , yyscan_t yyscanner) in _mesa_glsl_set_column() argument
3432 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_column()
3436 yy_fatal_error( "_mesa_glsl_set_column called with no buffer" , yyscanner); in _mesa_glsl_set_column()
3447 void _mesa_glsl_set_in (FILE * in_str , yyscan_t yyscanner) in _mesa_glsl_set_in() argument
3449 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_in()
3453 void _mesa_glsl_set_out (FILE * out_str , yyscan_t yyscanner) in _mesa_glsl_set_out() argument
3455 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_out()
3459 int _mesa_glsl_get_debug (yyscan_t yyscanner) in _mesa_glsl_get_debug() argument
3461 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_debug()
3465 void _mesa_glsl_set_debug (int bdebug , yyscan_t yyscanner) in _mesa_glsl_set_debug() argument
3467 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_debug()
3473 YYSTYPE * _mesa_glsl_get_lval (yyscan_t yyscanner) in _mesa_glsl_get_lval() argument
3475 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_lval()
3479 void _mesa_glsl_set_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) in _mesa_glsl_set_lval() argument
3481 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_lval()
3485 YYLTYPE *_mesa_glsl_get_lloc (yyscan_t yyscanner) in _mesa_glsl_get_lloc() argument
3487 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_get_lloc()
3491 void _mesa_glsl_set_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) in _mesa_glsl_set_lloc() argument
3493 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_set_lloc()
3561 static int yy_init_globals (yyscan_t yyscanner) in yy_init_globals() argument
3563 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_init_globals()
3595 int _mesa_glsl_lex_destroy (yyscan_t yyscanner) in _mesa_glsl_lex_destroy() argument
3597 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in _mesa_glsl_lex_destroy()
3601 _mesa_glsl__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); in _mesa_glsl_lex_destroy()
3603 _mesa_glsl_pop_buffer_state(yyscanner); in _mesa_glsl_lex_destroy()
3607 _mesa_glsl_free(yyg->yy_buffer_stack ,yyscanner); in _mesa_glsl_lex_destroy()
3611 _mesa_glsl_free(yyg->yy_start_stack ,yyscanner ); in _mesa_glsl_lex_destroy()
3616 yy_init_globals( yyscanner); in _mesa_glsl_lex_destroy()
3619 _mesa_glsl_free ( yyscanner , yyscanner ); in _mesa_glsl_lex_destroy()
3620 yyscanner = NULL; in _mesa_glsl_lex_destroy()
3629 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) in yy_flex_strncpy() argument
3638 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) in yy_flex_strlen() argument
3648 void *_mesa_glsl_alloc (yy_size_t size , yyscan_t yyscanner) in _mesa_glsl_alloc() argument
3653 void *_mesa_glsl_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner) in _mesa_glsl_realloc() argument
3665 void _mesa_glsl_free (void * ptr , yyscan_t yyscanner) in _mesa_glsl_free() argument