Lines Matching defs: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 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (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)
2811 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2841 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
2844 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
2867 static int yyinput (yyscan_t yyscanner)
2869 static int input (yyscan_t yyscanner)
2874 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2893 switch ( yy_get_next_buffer( yyscanner ) )
2907 _mesa_glsl_restart(yyin ,yyscanner);
2913 if ( _mesa_glsl_wrap(yyscanner ) )
2919 return yyinput(yyscanner);
2921 return input(yyscanner);
2944 * @param yyscanner The scanner object.
2947 void _mesa_glsl_restart (FILE * input_file , yyscan_t yyscanner)
2949 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2952 _mesa_glsl_ensure_buffer_stack (yyscanner);
2954 _mesa_glsl__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
2957 _mesa_glsl__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2958 _mesa_glsl__load_buffer_state(yyscanner );
2963 * @param yyscanner The scanner object.
2965 void _mesa_glsl__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2967 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2974 _mesa_glsl_ensure_buffer_stack (yyscanner);
2987 _mesa_glsl__load_buffer_state(yyscanner );
2997 static void _mesa_glsl__load_buffer_state (yyscan_t yyscanner)
2999 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3009 * @param yyscanner The scanner object.
3012 YY_BUFFER_STATE _mesa_glsl__create_buffer (FILE * file, int size , yyscan_t yyscanner)
3016 b = (YY_BUFFER_STATE) _mesa_glsl_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
3025 b->yy_ch_buf = (char *) _mesa_glsl_alloc(b->yy_buf_size + 2 ,yyscanner );
3031 _mesa_glsl__init_buffer(b,file ,yyscanner);
3038 * @param yyscanner The scanner object.
3040 void _mesa_glsl__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
3042 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3051 _mesa_glsl_free((void *) b->yy_ch_buf ,yyscanner );
3053 _mesa_glsl_free((void *) b ,yyscanner );
3060 static void _mesa_glsl__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
3064 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3066 _mesa_glsl__flush_buffer(b ,yyscanner);
3087 * @param yyscanner The scanner object.
3089 void _mesa_glsl__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
3091 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3110 _mesa_glsl__load_buffer_state(yyscanner );
3117 * @param yyscanner The scanner object.
3119 void _mesa_glsl_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
3121 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3125 _mesa_glsl_ensure_buffer_stack(yyscanner);
3142 _mesa_glsl__load_buffer_state(yyscanner );
3148 * @param yyscanner The scanner object.
3150 void _mesa_glsl_pop_buffer_state (yyscan_t yyscanner)
3152 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3156 _mesa_glsl__delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
3162 _mesa_glsl__load_buffer_state(yyscanner );
3170 static void _mesa_glsl_ensure_buffer_stack (yyscan_t yyscanner)
3173 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3184 , yyscanner);
3204 , yyscanner);
3217 * @param yyscanner The scanner object.
3220 YY_BUFFER_STATE _mesa_glsl__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
3230 b = (YY_BUFFER_STATE) _mesa_glsl_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
3244 _mesa_glsl__switch_to_buffer(b ,yyscanner );
3252 * @param yyscanner The scanner object.
3257 YY_BUFFER_STATE _mesa_glsl__scan_string (yyconst char * yystr , yyscan_t yyscanner)
3260 return _mesa_glsl__scan_bytes(yystr,strlen(yystr) ,yyscanner);
3267 * @param yyscanner The scanner object.
3270 YY_BUFFER_STATE _mesa_glsl__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
3279 buf = (char *) _mesa_glsl_alloc(n ,yyscanner );
3288 b = _mesa_glsl__scan_buffer(buf,n ,yyscanner);
3304 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
3330 * @param yyscanner The scanner object.
3332 YY_EXTRA_TYPE _mesa_glsl_get_extra (yyscan_t yyscanner)
3334 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3339 * @param yyscanner The scanner object.
3341 int _mesa_glsl_get_lineno (yyscan_t yyscanner)
3343 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3352 * @param yyscanner The scanner object.
3354 int _mesa_glsl_get_column (yyscan_t yyscanner)
3356 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3365 * @param yyscanner The scanner object.
3367 FILE *_mesa_glsl_get_in (yyscan_t yyscanner)
3369 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3374 * @param yyscanner The scanner object.
3376 FILE *_mesa_glsl_get_out (yyscan_t yyscanner)
3378 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3383 * @param yyscanner The scanner object.
3385 int _mesa_glsl_get_leng (yyscan_t yyscanner)
3387 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3392 * @param yyscanner The scanner object.
3395 char *_mesa_glsl_get_text (yyscan_t yyscanner)
3397 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3403 * @param yyscanner The scanner object.
3405 void _mesa_glsl_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
3407 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3413 * @param yyscanner The scanner object.
3415 void _mesa_glsl_set_lineno (int line_number , yyscan_t yyscanner)
3417 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3421 yy_fatal_error( "_mesa_glsl_set_lineno called with no buffer" , yyscanner);
3428 * @param yyscanner The scanner object.
3430 void _mesa_glsl_set_column (int column_no , yyscan_t yyscanner)
3432 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3436 yy_fatal_error( "_mesa_glsl_set_column called with no buffer" , yyscanner);
3444 * @param yyscanner The scanner object.
3447 void _mesa_glsl_set_in (FILE * in_str , yyscan_t yyscanner)
3449 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3453 void _mesa_glsl_set_out (FILE * out_str , yyscan_t yyscanner)
3455 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3459 int _mesa_glsl_get_debug (yyscan_t yyscanner)
3461 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3465 void _mesa_glsl_set_debug (int bdebug , yyscan_t yyscanner)
3467 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3473 YYSTYPE * _mesa_glsl_get_lval (yyscan_t yyscanner)
3475 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3479 void _mesa_glsl_set_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
3481 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3485 YYLTYPE *_mesa_glsl_get_lloc (yyscan_t yyscanner)
3487 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3491 void _mesa_glsl_set_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
3493 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3561 static int yy_init_globals (yyscan_t yyscanner)
3563 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3595 int _mesa_glsl_lex_destroy (yyscan_t yyscanner)
3597 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
3601 _mesa_glsl__delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
3603 _mesa_glsl_pop_buffer_state(yyscanner);
3607 _mesa_glsl_free(yyg->yy_buffer_stack ,yyscanner);
3611 _mesa_glsl_free(yyg->yy_start_stack ,yyscanner );
3616 yy_init_globals( yyscanner);
3619 _mesa_glsl_free ( yyscanner , yyscanner );
3620 yyscanner = NULL;
3629 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
3638 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
3648 void *_mesa_glsl_alloc (yy_size_t size , yyscan_t yyscanner)
3653 void *_mesa_glsl_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
3665 void _mesa_glsl_free (void * ptr , yyscan_t yyscanner)