diff options
Diffstat (limited to 'src/mesa/program/lex.yy.c')
-rw-r--r-- | src/mesa/program/lex.yy.c | 422 |
1 files changed, 204 insertions, 218 deletions
diff --git a/src/mesa/program/lex.yy.c b/src/mesa/program/lex.yy.c index 135eca6fd8..33e1a11018 100644 --- a/src/mesa/program/lex.yy.c +++ b/src/mesa/program/lex.yy.c @@ -1,5 +1,6 @@ +#line 2 "program/lex.yy.c" -#line 3 "lex.yy.c" +#line 4 "program/lex.yy.c" #define YY_INT_ALIGNED short int @@ -53,6 +54,7 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; +#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -83,8 +85,6 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif -#endif /* ! C99 */ - #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -158,15 +158,7 @@ typedef void* yyscan_t; /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -#ifdef __ia64__ -/* On IA-64, the buffer size is 16k, not 8k. - * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. - * Ditto for the __ia64__ case accordingly. - */ -#define YY_BUF_SIZE 32768 -#else #define YY_BUF_SIZE 16384 -#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -178,6 +170,11 @@ typedef void* yyscan_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 @@ -200,11 +197,6 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE; #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -222,7 +214,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -301,7 +293,7 @@ static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner ); void *yyalloc (yy_size_t ,yyscan_t yyscanner ); void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); @@ -1017,8 +1009,8 @@ static yyconst flex_int16_t yy_chk[1368] = #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -#line 1 "program_lexer.l" -#line 2 "program_lexer.l" +#line 1 "program/program_lexer.l" +#line 2 "program/program_lexer.l" /* * Copyright © 2009 Intel Corporation * @@ -1173,7 +1165,7 @@ static keyword. Declare them here to avoid a compiler warning. */ int yyget_column (yyscan_t yyscanner); void yyset_column (int column_no , yyscan_t yyscanner); -#line 1177 "lex.yy.c" +#line 1169 "program/lex.yy.c" #define INITIAL 0 @@ -1202,8 +1194,8 @@ struct yyguts_t size_t yy_buffer_stack_max; /**< capacity of stack. */ YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ char yy_hold_char; - int yy_n_chars; - int yyleng_r; + yy_size_t yy_n_chars; + yy_size_t yyleng_r; char *yy_c_buf_p; int yy_init; int yy_start; @@ -1260,7 +1252,7 @@ FILE *yyget_out (yyscan_t yyscanner ); void yyset_out (FILE * out_str ,yyscan_t yyscanner ); -int yyget_leng (yyscan_t yyscanner ); +yy_size_t yyget_leng (yyscan_t yyscanner ); char *yyget_text (yyscan_t yyscanner ); @@ -1310,12 +1302,7 @@ static int input (yyscan_t yyscanner ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE -#ifdef __ia64__ -/* On IA-64, the buffer size is 16k, not 8k */ -#define YY_READ_BUF_SIZE 16384 -#else #define YY_READ_BUF_SIZE 8192 -#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -1323,7 +1310,7 @@ static int input (yyscan_t yyscanner ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) +#define ECHO fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -1334,7 +1321,7 @@ static int input (yyscan_t yyscanner ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - size_t n; \ + yy_size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -1419,10 +1406,10 @@ YY_DECL register int yy_act; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; -#line 169 "program_lexer.l" +#line 169 "program/program_lexer.l" -#line 1426 "lex.yy.c" +#line 1413 "program/lex.yy.c" yylval = yylval_param; @@ -1511,17 +1498,17 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 171 "program_lexer.l" +#line 171 "program/program_lexer.l" { return ARBvp_10; } YY_BREAK case 2: YY_RULE_SETUP -#line 172 "program_lexer.l" +#line 172 "program/program_lexer.l" { return ARBfp_10; } YY_BREAK case 3: YY_RULE_SETUP -#line 173 "program_lexer.l" +#line 173 "program/program_lexer.l" { yylval->integer = at_address; return_token_or_IDENTIFIER(require_ARB_vp, ADDRESS); @@ -1529,692 +1516,692 @@ YY_RULE_SETUP YY_BREAK case 4: YY_RULE_SETUP -#line 177 "program_lexer.l" +#line 177 "program/program_lexer.l" { return ALIAS; } YY_BREAK case 5: YY_RULE_SETUP -#line 178 "program_lexer.l" +#line 178 "program/program_lexer.l" { return ATTRIB; } YY_BREAK case 6: YY_RULE_SETUP -#line 179 "program_lexer.l" +#line 179 "program/program_lexer.l" { return END; } YY_BREAK case 7: YY_RULE_SETUP -#line 180 "program_lexer.l" +#line 180 "program/program_lexer.l" { return OPTION; } YY_BREAK case 8: YY_RULE_SETUP -#line 181 "program_lexer.l" +#line 181 "program/program_lexer.l" { return OUTPUT; } YY_BREAK case 9: YY_RULE_SETUP -#line 182 "program_lexer.l" +#line 182 "program/program_lexer.l" { return PARAM; } YY_BREAK case 10: YY_RULE_SETUP -#line 183 "program_lexer.l" +#line 183 "program/program_lexer.l" { yylval->integer = at_temp; return TEMP; } YY_BREAK case 11: YY_RULE_SETUP -#line 185 "program_lexer.l" +#line 185 "program/program_lexer.l" { return_opcode( 1, VECTOR_OP, ABS, 3); } YY_BREAK case 12: YY_RULE_SETUP -#line 186 "program_lexer.l" +#line 186 "program/program_lexer.l" { return_opcode( 1, BIN_OP, ADD, 3); } YY_BREAK case 13: YY_RULE_SETUP -#line 187 "program_lexer.l" +#line 187 "program/program_lexer.l" { return_opcode(require_ARB_vp, ARL, ARL, 3); } YY_BREAK case 14: YY_RULE_SETUP -#line 189 "program_lexer.l" +#line 189 "program/program_lexer.l" { return_opcode(require_ARB_fp, TRI_OP, CMP, 3); } YY_BREAK case 15: YY_RULE_SETUP -#line 190 "program_lexer.l" +#line 190 "program/program_lexer.l" { return_opcode(require_ARB_fp, SCALAR_OP, COS, 3); } YY_BREAK case 16: YY_RULE_SETUP -#line 192 "program_lexer.l" +#line 192 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, DDX, 3); } YY_BREAK case 17: YY_RULE_SETUP -#line 193 "program_lexer.l" +#line 193 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, DDY, 3); } YY_BREAK case 18: YY_RULE_SETUP -#line 194 "program_lexer.l" +#line 194 "program/program_lexer.l" { return_opcode( 1, BIN_OP, DP3, 3); } YY_BREAK case 19: YY_RULE_SETUP -#line 195 "program_lexer.l" +#line 195 "program/program_lexer.l" { return_opcode( 1, BIN_OP, DP4, 3); } YY_BREAK case 20: YY_RULE_SETUP -#line 196 "program_lexer.l" +#line 196 "program/program_lexer.l" { return_opcode( 1, BIN_OP, DPH, 3); } YY_BREAK case 21: YY_RULE_SETUP -#line 197 "program_lexer.l" +#line 197 "program/program_lexer.l" { return_opcode( 1, BIN_OP, DST, 3); } YY_BREAK case 22: YY_RULE_SETUP -#line 199 "program_lexer.l" +#line 199 "program/program_lexer.l" { return_opcode( 1, SCALAR_OP, EX2, 3); } YY_BREAK case 23: YY_RULE_SETUP -#line 200 "program_lexer.l" +#line 200 "program/program_lexer.l" { return_opcode(require_ARB_vp, SCALAR_OP, EXP, 3); } YY_BREAK case 24: YY_RULE_SETUP -#line 202 "program_lexer.l" +#line 202 "program/program_lexer.l" { return_opcode( 1, VECTOR_OP, FLR, 3); } YY_BREAK case 25: YY_RULE_SETUP -#line 203 "program_lexer.l" +#line 203 "program/program_lexer.l" { return_opcode( 1, VECTOR_OP, FRC, 3); } YY_BREAK case 26: YY_RULE_SETUP -#line 205 "program_lexer.l" +#line 205 "program/program_lexer.l" { return_opcode(require_ARB_fp, KIL, KIL, 3); } YY_BREAK case 27: YY_RULE_SETUP -#line 207 "program_lexer.l" +#line 207 "program/program_lexer.l" { return_opcode( 1, VECTOR_OP, LIT, 3); } YY_BREAK case 28: YY_RULE_SETUP -#line 208 "program_lexer.l" +#line 208 "program/program_lexer.l" { return_opcode( 1, SCALAR_OP, LG2, 3); } YY_BREAK case 29: YY_RULE_SETUP -#line 209 "program_lexer.l" +#line 209 "program/program_lexer.l" { return_opcode(require_ARB_vp, SCALAR_OP, LOG, 3); } YY_BREAK case 30: YY_RULE_SETUP -#line 210 "program_lexer.l" +#line 210 "program/program_lexer.l" { return_opcode(require_ARB_fp, TRI_OP, LRP, 3); } YY_BREAK case 31: YY_RULE_SETUP -#line 212 "program_lexer.l" +#line 212 "program/program_lexer.l" { return_opcode( 1, TRI_OP, MAD, 3); } YY_BREAK case 32: YY_RULE_SETUP -#line 213 "program_lexer.l" +#line 213 "program/program_lexer.l" { return_opcode( 1, BIN_OP, MAX, 3); } YY_BREAK case 33: YY_RULE_SETUP -#line 214 "program_lexer.l" +#line 214 "program/program_lexer.l" { return_opcode( 1, BIN_OP, MIN, 3); } YY_BREAK case 34: YY_RULE_SETUP -#line 215 "program_lexer.l" +#line 215 "program/program_lexer.l" { return_opcode( 1, VECTOR_OP, MOV, 3); } YY_BREAK case 35: YY_RULE_SETUP -#line 216 "program_lexer.l" +#line 216 "program/program_lexer.l" { return_opcode( 1, BIN_OP, MUL, 3); } YY_BREAK case 36: YY_RULE_SETUP -#line 218 "program_lexer.l" +#line 218 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, PK2H, 4); } YY_BREAK case 37: YY_RULE_SETUP -#line 219 "program_lexer.l" +#line 219 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, PK2US, 5); } YY_BREAK case 38: YY_RULE_SETUP -#line 220 "program_lexer.l" +#line 220 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, PK4B, 4); } YY_BREAK case 39: YY_RULE_SETUP -#line 221 "program_lexer.l" +#line 221 "program/program_lexer.l" { return_opcode(require_NV_fp, VECTOR_OP, PK4UB, 5); } YY_BREAK case 40: YY_RULE_SETUP -#line 222 "program_lexer.l" +#line 222 "program/program_lexer.l" { return_opcode( 1, BINSC_OP, POW, 3); } YY_BREAK case 41: YY_RULE_SETUP -#line 224 "program_lexer.l" +#line 224 "program/program_lexer.l" { return_opcode( 1, SCALAR_OP, RCP, 3); } YY_BREAK case 42: YY_RULE_SETUP -#line 225 "program_lexer.l" +#line 225 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, RFL, 3); } YY_BREAK case 43: YY_RULE_SETUP -#line 226 "program_lexer.l" +#line 226 "program/program_lexer.l" { return_opcode( 1, SCALAR_OP, RSQ, 3); } YY_BREAK case 44: YY_RULE_SETUP -#line 228 "program_lexer.l" +#line 228 "program/program_lexer.l" { return_opcode(require_ARB_fp, SCALAR_OP, SCS, 3); } YY_BREAK case 45: YY_RULE_SETUP -#line 229 "program_lexer.l" +#line 229 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, SEQ, 3); } YY_BREAK case 46: YY_RULE_SETUP -#line 230 "program_lexer.l" +#line 230 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, SFL, 3); } YY_BREAK case 47: YY_RULE_SETUP -#line 231 "program_lexer.l" +#line 231 "program/program_lexer.l" { return_opcode( 1, BIN_OP, SGE, 3); } YY_BREAK case 48: YY_RULE_SETUP -#line 232 "program_lexer.l" +#line 232 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, SGT, 3); } YY_BREAK case 49: YY_RULE_SETUP -#line 233 "program_lexer.l" +#line 233 "program/program_lexer.l" { return_opcode(require_ARB_fp, SCALAR_OP, SIN, 3); } YY_BREAK case 50: YY_RULE_SETUP -#line 234 "program_lexer.l" +#line 234 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, SLE, 3); } YY_BREAK case 51: YY_RULE_SETUP -#line 235 "program_lexer.l" +#line 235 "program/program_lexer.l" { return_opcode( 1, BIN_OP, SLT, 3); } YY_BREAK case 52: YY_RULE_SETUP -#line 236 "program_lexer.l" +#line 236 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, SNE, 3); } YY_BREAK case 53: YY_RULE_SETUP -#line 237 "program_lexer.l" +#line 237 "program/program_lexer.l" { return_opcode(require_NV_fp, BIN_OP, STR, 3); } YY_BREAK case 54: YY_RULE_SETUP -#line 238 "program_lexer.l" +#line 238 "program/program_lexer.l" { return_opcode( 1, BIN_OP, SUB, 3); } YY_BREAK case 55: YY_RULE_SETUP -#line 239 "program_lexer.l" +#line 239 "program/program_lexer.l" { return_opcode( 1, SWZ, SWZ, 3); } YY_BREAK case 56: YY_RULE_SETUP -#line 241 "program_lexer.l" +#line 241 "program/program_lexer.l" { return_opcode(require_ARB_fp, SAMPLE_OP, TEX, 3); } YY_BREAK case 57: YY_RULE_SETUP -#line 242 "program_lexer.l" +#line 242 "program/program_lexer.l" { return_opcode(require_ARB_fp, SAMPLE_OP, TXB, 3); } YY_BREAK case 58: YY_RULE_SETUP -#line 243 "program_lexer.l" +#line 243 "program/program_lexer.l" { return_opcode(require_NV_fp, TXD_OP, TXD, 3); } YY_BREAK case 59: YY_RULE_SETUP -#line 244 "program_lexer.l" +#line 244 "program/program_lexer.l" { return_opcode(require_ARB_fp, SAMPLE_OP, TXP, 3); } YY_BREAK case 60: YY_RULE_SETUP -#line 246 "program_lexer.l" +#line 246 "program/program_lexer.l" { return_opcode(require_NV_fp, SCALAR_OP, UP2H, 4); } YY_BREAK case 61: YY_RULE_SETUP -#line 247 "program_lexer.l" +#line 247 "program/program_lexer.l" { return_opcode(require_NV_fp, SCALAR_OP, UP2US, 5); } YY_BREAK case 62: YY_RULE_SETUP -#line 248 "program_lexer.l" +#line 248 "program/program_lexer.l" { return_opcode(require_NV_fp, SCALAR_OP, UP4B, 4); } YY_BREAK case 63: YY_RULE_SETUP -#line 249 "program_lexer.l" +#line 249 "program/program_lexer.l" { return_opcode(require_NV_fp, SCALAR_OP, UP4UB, 5); } YY_BREAK case 64: YY_RULE_SETUP -#line 251 "program_lexer.l" +#line 251 "program/program_lexer.l" { return_opcode(require_NV_fp, TRI_OP, X2D, 3); } YY_BREAK case 65: YY_RULE_SETUP -#line 252 "program_lexer.l" +#line 252 "program/program_lexer.l" { return_opcode( 1, BIN_OP, XPD, 3); } YY_BREAK case 66: YY_RULE_SETUP -#line 254 "program_lexer.l" +#line 254 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_vp, VERTEX); } YY_BREAK case 67: YY_RULE_SETUP -#line 255 "program_lexer.l" +#line 255 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, FRAGMENT); } YY_BREAK case 68: YY_RULE_SETUP -#line 256 "program_lexer.l" +#line 256 "program/program_lexer.l" { return PROGRAM; } YY_BREAK case 69: YY_RULE_SETUP -#line 257 "program_lexer.l" +#line 257 "program/program_lexer.l" { return STATE; } YY_BREAK case 70: YY_RULE_SETUP -#line 258 "program_lexer.l" +#line 258 "program/program_lexer.l" { return RESULT; } YY_BREAK case 71: YY_RULE_SETUP -#line 260 "program_lexer.l" +#line 260 "program/program_lexer.l" { return AMBIENT; } YY_BREAK case 72: YY_RULE_SETUP -#line 261 "program_lexer.l" +#line 261 "program/program_lexer.l" { return ATTENUATION; } YY_BREAK case 73: YY_RULE_SETUP -#line 262 "program_lexer.l" +#line 262 "program/program_lexer.l" { return BACK; } YY_BREAK case 74: YY_RULE_SETUP -#line 263 "program_lexer.l" +#line 263 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, CLIP); } YY_BREAK case 75: YY_RULE_SETUP -#line 264 "program_lexer.l" +#line 264 "program/program_lexer.l" { return COLOR; } YY_BREAK case 76: YY_RULE_SETUP -#line 265 "program_lexer.l" +#line 265 "program/program_lexer.l" { return_token_or_DOT(require_ARB_fp, DEPTH); } YY_BREAK case 77: YY_RULE_SETUP -#line 266 "program_lexer.l" +#line 266 "program/program_lexer.l" { return DIFFUSE; } YY_BREAK case 78: YY_RULE_SETUP -#line 267 "program_lexer.l" +#line 267 "program/program_lexer.l" { return DIRECTION; } YY_BREAK case 79: YY_RULE_SETUP -#line 268 "program_lexer.l" +#line 268 "program/program_lexer.l" { return EMISSION; } YY_BREAK case 80: YY_RULE_SETUP -#line 269 "program_lexer.l" +#line 269 "program/program_lexer.l" { return ENV; } YY_BREAK case 81: YY_RULE_SETUP -#line 270 "program_lexer.l" +#line 270 "program/program_lexer.l" { return EYE; } YY_BREAK case 82: YY_RULE_SETUP -#line 271 "program_lexer.l" +#line 271 "program/program_lexer.l" { return FOGCOORD; } YY_BREAK case 83: YY_RULE_SETUP -#line 272 "program_lexer.l" +#line 272 "program/program_lexer.l" { return FOG; } YY_BREAK case 84: YY_RULE_SETUP -#line 273 "program_lexer.l" +#line 273 "program/program_lexer.l" { return FRONT; } YY_BREAK case 85: YY_RULE_SETUP -#line 274 "program_lexer.l" +#line 274 "program/program_lexer.l" { return HALF; } YY_BREAK case 86: YY_RULE_SETUP -#line 275 "program_lexer.l" +#line 275 "program/program_lexer.l" { return INVERSE; } YY_BREAK case 87: YY_RULE_SETUP -#line 276 "program_lexer.l" +#line 276 "program/program_lexer.l" { return INVTRANS; } YY_BREAK case 88: YY_RULE_SETUP -#line 277 "program_lexer.l" +#line 277 "program/program_lexer.l" { return LIGHT; } YY_BREAK case 89: YY_RULE_SETUP -#line 278 "program_lexer.l" +#line 278 "program/program_lexer.l" { return LIGHTMODEL; } YY_BREAK case 90: YY_RULE_SETUP -#line 279 "program_lexer.l" +#line 279 "program/program_lexer.l" { return LIGHTPROD; } YY_BREAK case 91: YY_RULE_SETUP -#line 280 "program_lexer.l" +#line 280 "program/program_lexer.l" { return LOCAL; } YY_BREAK case 92: YY_RULE_SETUP -#line 281 "program_lexer.l" +#line 281 "program/program_lexer.l" { return MATERIAL; } YY_BREAK case 93: YY_RULE_SETUP -#line 282 "program_lexer.l" +#line 282 "program/program_lexer.l" { return MAT_PROGRAM; } YY_BREAK case 94: YY_RULE_SETUP -#line 283 "program_lexer.l" +#line 283 "program/program_lexer.l" { return MATRIX; } YY_BREAK case 95: YY_RULE_SETUP -#line 284 "program_lexer.l" +#line 284 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, MATRIXINDEX); } YY_BREAK case 96: YY_RULE_SETUP -#line 285 "program_lexer.l" +#line 285 "program/program_lexer.l" { return MODELVIEW; } YY_BREAK case 97: YY_RULE_SETUP -#line 286 "program_lexer.l" +#line 286 "program/program_lexer.l" { return MVP; } YY_BREAK case 98: YY_RULE_SETUP -#line 287 "program_lexer.l" +#line 287 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, NORMAL); } YY_BREAK case 99: YY_RULE_SETUP -#line 288 "program_lexer.l" +#line 288 "program/program_lexer.l" { return OBJECT; } YY_BREAK case 100: YY_RULE_SETUP -#line 289 "program_lexer.l" +#line 289 "program/program_lexer.l" { return PALETTE; } YY_BREAK case 101: YY_RULE_SETUP -#line 290 "program_lexer.l" +#line 290 "program/program_lexer.l" { return PARAMS; } YY_BREAK case 102: YY_RULE_SETUP -#line 291 "program_lexer.l" +#line 291 "program/program_lexer.l" { return PLANE; } YY_BREAK case 103: YY_RULE_SETUP -#line 292 "program_lexer.l" +#line 292 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, POINT_TOK); } YY_BREAK case 104: YY_RULE_SETUP -#line 293 "program_lexer.l" +#line 293 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, POINTSIZE); } YY_BREAK case 105: YY_RULE_SETUP -#line 294 "program_lexer.l" +#line 294 "program/program_lexer.l" { return POSITION; } YY_BREAK case 106: YY_RULE_SETUP -#line 295 "program_lexer.l" +#line 295 "program/program_lexer.l" { return PRIMARY; } YY_BREAK case 107: YY_RULE_SETUP -#line 296 "program_lexer.l" +#line 296 "program/program_lexer.l" { return PROJECTION; } YY_BREAK case 108: YY_RULE_SETUP -#line 297 "program_lexer.l" +#line 297 "program/program_lexer.l" { return_token_or_DOT(require_ARB_fp, RANGE); } YY_BREAK case 109: YY_RULE_SETUP -#line 298 "program_lexer.l" +#line 298 "program/program_lexer.l" { return ROW; } YY_BREAK case 110: YY_RULE_SETUP -#line 299 "program_lexer.l" +#line 299 "program/program_lexer.l" { return SCENECOLOR; } YY_BREAK case 111: YY_RULE_SETUP -#line 300 "program_lexer.l" +#line 300 "program/program_lexer.l" { return SECONDARY; } YY_BREAK case 112: YY_RULE_SETUP -#line 301 "program_lexer.l" +#line 301 "program/program_lexer.l" { return SHININESS; } YY_BREAK case 113: YY_RULE_SETUP -#line 302 "program_lexer.l" +#line 302 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, SIZE_TOK); } YY_BREAK case 114: YY_RULE_SETUP -#line 303 "program_lexer.l" +#line 303 "program/program_lexer.l" { return SPECULAR; } YY_BREAK case 115: YY_RULE_SETUP -#line 304 "program_lexer.l" +#line 304 "program/program_lexer.l" { return SPOT; } YY_BREAK case 116: YY_RULE_SETUP -#line 305 "program_lexer.l" +#line 305 "program/program_lexer.l" { return TEXCOORD; } YY_BREAK case 117: YY_RULE_SETUP -#line 306 "program_lexer.l" +#line 306 "program/program_lexer.l" { return_token_or_DOT(require_ARB_fp, TEXENV); } YY_BREAK case 118: YY_RULE_SETUP -#line 307 "program_lexer.l" +#line 307 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, TEXGEN); } YY_BREAK case 119: YY_RULE_SETUP -#line 308 "program_lexer.l" +#line 308 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, TEXGEN_Q); } YY_BREAK case 120: YY_RULE_SETUP -#line 309 "program_lexer.l" +#line 309 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, TEXGEN_S); } YY_BREAK case 121: YY_RULE_SETUP -#line 310 "program_lexer.l" +#line 310 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, TEXGEN_T); } YY_BREAK case 122: YY_RULE_SETUP -#line 311 "program_lexer.l" +#line 311 "program/program_lexer.l" { return TEXTURE; } YY_BREAK case 123: YY_RULE_SETUP -#line 312 "program_lexer.l" +#line 312 "program/program_lexer.l" { return TRANSPOSE; } YY_BREAK case 124: YY_RULE_SETUP -#line 313 "program_lexer.l" +#line 313 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, VTXATTRIB); } YY_BREAK case 125: YY_RULE_SETUP -#line 314 "program_lexer.l" +#line 314 "program/program_lexer.l" { return_token_or_DOT(require_ARB_vp, WEIGHT); } YY_BREAK case 126: YY_RULE_SETUP -#line 316 "program_lexer.l" +#line 316 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, TEXTURE_UNIT); } YY_BREAK case 127: YY_RULE_SETUP -#line 317 "program_lexer.l" +#line 317 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, TEX_1D); } YY_BREAK case 128: YY_RULE_SETUP -#line 318 "program_lexer.l" +#line 318 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, TEX_2D); } YY_BREAK case 129: YY_RULE_SETUP -#line 319 "program_lexer.l" +#line 319 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, TEX_3D); } YY_BREAK case 130: YY_RULE_SETUP -#line 320 "program_lexer.l" +#line 320 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp, TEX_CUBE); } YY_BREAK case 131: YY_RULE_SETUP -#line 321 "program_lexer.l" +#line 321 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_rect, TEX_RECT); } YY_BREAK case 132: YY_RULE_SETUP -#line 322 "program_lexer.l" +#line 322 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow, TEX_SHADOW1D); } YY_BREAK case 133: YY_RULE_SETUP -#line 323 "program_lexer.l" +#line 323 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow, TEX_SHADOW2D); } YY_BREAK case 134: YY_RULE_SETUP -#line 324 "program_lexer.l" +#line 324 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_rect, TEX_SHADOWRECT); } YY_BREAK case 135: YY_RULE_SETUP -#line 325 "program_lexer.l" +#line 325 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_texarray, TEX_ARRAY1D); } YY_BREAK case 136: YY_RULE_SETUP -#line 326 "program_lexer.l" +#line 326 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_texarray, TEX_ARRAY2D); } YY_BREAK case 137: YY_RULE_SETUP -#line 327 "program_lexer.l" +#line 327 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_texarray, TEX_ARRAYSHADOW1D); } YY_BREAK case 138: YY_RULE_SETUP -#line 328 "program_lexer.l" +#line 328 "program/program_lexer.l" { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_texarray, TEX_ARRAYSHADOW2D); } YY_BREAK case 139: YY_RULE_SETUP -#line 330 "program_lexer.l" +#line 330 "program/program_lexer.l" { return handle_ident(yyextra, yytext, yylval); } YY_BREAK case 140: YY_RULE_SETUP -#line 332 "program_lexer.l" +#line 332 "program/program_lexer.l" { return DOT_DOT; } YY_BREAK case 141: YY_RULE_SETUP -#line 334 "program_lexer.l" +#line 334 "program/program_lexer.l" { yylval->integer = strtol(yytext, NULL, 10); return INTEGER; @@ -2222,7 +2209,7 @@ YY_RULE_SETUP YY_BREAK case 142: YY_RULE_SETUP -#line 338 "program_lexer.l" +#line 338 "program/program_lexer.l" { yylval->real = _mesa_strtof(yytext, NULL); return REAL; @@ -2234,7 +2221,7 @@ case 143: yyg->yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 342 "program_lexer.l" +#line 342 "program/program_lexer.l" { yylval->real = _mesa_strtof(yytext, NULL); return REAL; @@ -2242,7 +2229,7 @@ YY_RULE_SETUP YY_BREAK case 144: YY_RULE_SETUP -#line 346 "program_lexer.l" +#line 346 "program/program_lexer.l" { yylval->real = _mesa_strtof(yytext, NULL); return REAL; @@ -2250,7 +2237,7 @@ YY_RULE_SETUP YY_BREAK case 145: YY_RULE_SETUP -#line 350 "program_lexer.l" +#line 350 "program/program_lexer.l" { yylval->real = _mesa_strtof(yytext, NULL); return REAL; @@ -2258,7 +2245,7 @@ YY_RULE_SETUP YY_BREAK case 146: YY_RULE_SETUP -#line 355 "program_lexer.l" +#line 355 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_NOOP; yylval->swiz_mask.mask = WRITEMASK_XYZW; @@ -2267,7 +2254,7 @@ YY_RULE_SETUP YY_BREAK case 147: YY_RULE_SETUP -#line 361 "program_lexer.l" +#line 361 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_XY @@ -2277,7 +2264,7 @@ YY_RULE_SETUP YY_BREAK case 148: YY_RULE_SETUP -#line 367 "program_lexer.l" +#line 367 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_XZW; @@ -2286,7 +2273,7 @@ YY_RULE_SETUP YY_BREAK case 149: YY_RULE_SETUP -#line 372 "program_lexer.l" +#line 372 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_YZW; @@ -2295,7 +2282,7 @@ YY_RULE_SETUP YY_BREAK case 150: YY_RULE_SETUP -#line 378 "program_lexer.l" +#line 378 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_X @@ -2305,7 +2292,7 @@ YY_RULE_SETUP YY_BREAK case 151: YY_RULE_SETUP -#line 384 "program_lexer.l" +#line 384 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_Y @@ -2315,7 +2302,7 @@ YY_RULE_SETUP YY_BREAK case 152: YY_RULE_SETUP -#line 390 "program_lexer.l" +#line 390 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_ZW; @@ -2324,7 +2311,7 @@ YY_RULE_SETUP YY_BREAK case 153: YY_RULE_SETUP -#line 396 "program_lexer.l" +#line 396 "program/program_lexer.l" { const unsigned s = swiz_from_char(yytext[1]); yylval->swiz_mask.swizzle = MAKE_SWIZZLE4(s, s, s, s); @@ -2334,7 +2321,7 @@ YY_RULE_SETUP YY_BREAK case 154: YY_RULE_SETUP -#line 403 "program_lexer.l" +#line 403 "program/program_lexer.l" { yylval->swiz_mask.swizzle = MAKE_SWIZZLE4(swiz_from_char(yytext[1]), swiz_from_char(yytext[2]), @@ -2346,7 +2333,7 @@ YY_RULE_SETUP YY_BREAK case 155: YY_RULE_SETUP -#line 412 "program_lexer.l" +#line 412 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_NOOP; yylval->swiz_mask.mask = WRITEMASK_XYZW; @@ -2355,7 +2342,7 @@ YY_RULE_SETUP YY_BREAK case 156: YY_RULE_SETUP -#line 418 "program_lexer.l" +#line 418 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_XY @@ -2365,7 +2352,7 @@ YY_RULE_SETUP YY_BREAK case 157: YY_RULE_SETUP -#line 424 "program_lexer.l" +#line 424 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_XZW; @@ -2374,7 +2361,7 @@ YY_RULE_SETUP YY_BREAK case 158: YY_RULE_SETUP -#line 429 "program_lexer.l" +#line 429 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_YZW; @@ -2383,7 +2370,7 @@ YY_RULE_SETUP YY_BREAK case 159: YY_RULE_SETUP -#line 435 "program_lexer.l" +#line 435 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_X @@ -2393,7 +2380,7 @@ YY_RULE_SETUP YY_BREAK case 160: YY_RULE_SETUP -#line 441 "program_lexer.l" +#line 441 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_Y @@ -2403,7 +2390,7 @@ YY_RULE_SETUP YY_BREAK case 161: YY_RULE_SETUP -#line 447 "program_lexer.l" +#line 447 "program/program_lexer.l" { yylval->swiz_mask.swizzle = SWIZZLE_INVAL; yylval->swiz_mask.mask = WRITEMASK_ZW; @@ -2412,7 +2399,7 @@ YY_RULE_SETUP YY_BREAK case 162: YY_RULE_SETUP -#line 453 "program_lexer.l" +#line 453 "program/program_lexer.l" { const unsigned s = swiz_from_char(yytext[1]); yylval->swiz_mask.swizzle = MAKE_SWIZZLE4(s, s, s, s); @@ -2422,7 +2409,7 @@ YY_RULE_SETUP YY_BREAK case 163: YY_RULE_SETUP -#line 461 "program_lexer.l" +#line 461 "program/program_lexer.l" { if (require_ARB_vp) { return TEXGEN_R; @@ -2436,7 +2423,7 @@ YY_RULE_SETUP YY_BREAK case 164: YY_RULE_SETUP -#line 472 "program_lexer.l" +#line 472 "program/program_lexer.l" { yylval->swiz_mask.swizzle = MAKE_SWIZZLE4(swiz_from_char(yytext[1]), swiz_from_char(yytext[2]), @@ -2448,13 +2435,13 @@ YY_RULE_SETUP YY_BREAK case 165: YY_RULE_SETUP -#line 481 "program_lexer.l" +#line 481 "program/program_lexer.l" { return DOT; } YY_BREAK case 166: /* rule 166 can match eol */ YY_RULE_SETUP -#line 483 "program_lexer.l" +#line 483 "program/program_lexer.l" { yylloc->first_line++; yylloc->first_column = 1; @@ -2465,7 +2452,7 @@ YY_RULE_SETUP YY_BREAK case 167: YY_RULE_SETUP -#line 490 "program_lexer.l" +#line 490 "program/program_lexer.l" /* eat whitespace */ ; YY_BREAK case 168: @@ -2473,20 +2460,20 @@ case 168: yyg->yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP -#line 491 "program_lexer.l" +#line 491 "program/program_lexer.l" /* eat comments */ ; YY_BREAK case 169: YY_RULE_SETUP -#line 492 "program_lexer.l" +#line 492 "program/program_lexer.l" { return yytext[0]; } YY_BREAK case 170: YY_RULE_SETUP -#line 493 "program_lexer.l" +#line 493 "program/program_lexer.l" ECHO; YY_BREAK -#line 2490 "lex.yy.c" +#line 2477 "program/lex.yy.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -2673,7 +2660,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) else { - int num_to_read = + yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) @@ -2687,7 +2674,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) if ( b->yy_is_our_buffer ) { - int new_size = b->yy_buf_size * 2; + yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; @@ -2718,7 +2705,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, (size_t) num_to_read ); + yyg->yy_n_chars, num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; } @@ -2831,7 +2818,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register int number_to_move = yyg->yy_n_chars + 2; + register yy_size_t number_to_move = yyg->yy_n_chars + 2; register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register char *source = @@ -2881,7 +2868,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) else { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; + yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr; ++yyg->yy_c_buf_p; switch ( yy_get_next_buffer( yyscanner ) ) @@ -2905,7 +2892,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) case EOB_ACT_END_OF_FILE: { if ( yywrap(yyscanner ) ) - return EOF; + return 0; if ( ! yyg->yy_did_buffer_switch_on_eof ) YY_NEW_FILE; @@ -3161,7 +3148,7 @@ void yypop_buffer_state (yyscan_t yyscanner) */ static void yyensure_buffer_stack (yyscan_t yyscanner) { - int num_to_alloc; + yy_size_t num_to_alloc; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (!yyg->yy_buffer_stack) { @@ -3254,17 +3241,16 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner) /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param yybytes the byte buffer to scan - * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * @param bytes the byte buffer to scan + * @param len the number of bytes in the buffer pointed to by @a bytes. * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner) { YY_BUFFER_STATE b; char *buf; - yy_size_t n; - int i; + yy_size_t n, i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; @@ -3374,7 +3360,7 @@ FILE *yyget_out (yyscan_t yyscanner) /** Get the length of the current token. * @param yyscanner The scanner object. */ -int yyget_leng (yyscan_t yyscanner) +yy_size_t yyget_leng (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; return yyleng; @@ -3661,7 +3647,7 @@ void yyfree (void * ptr , yyscan_t yyscanner) #define YYTABLES_NAME "yytables" -#line 493 "program_lexer.l" +#line 493 "program/program_lexer.l" |