Lines Matching defs:yyvsp

1161 yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, glcpp_parser_t *parser)
1174 &(yyvsp[(yyi + 1) - (yynrhs)])
1183 yy_reduce_print (yyssp, yyvsp, yylsp, Rule, parser); \
1507 YYSTYPE *yyvsp;
1535 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
1542 yyvsp = yyvs = yyvsa;
1598 &yyvs1, yysize * sizeof (*yyvsp),
1633 yyvsp = yyvs + yysize - 1;
1710 *++yyvsp = yylval;
1741 yyval = yyvsp[1-yylen];
1752 _glcpp_parser_print_expanded_token_list (parser, (yyvsp[0].token_list));
1761 if (parser->is_gles && (yyvsp[-1].expression_value).undefined_macro)
1762 glcpp_error(& (yylsp[-2]), parser, "undefined macro %s in expression (illegal in GLES)", (yyvsp[-1].expression_value).undefined_macro);
1763 _glcpp_parser_skip_stack_push_if (parser, & (yylsp[-2]), (yyvsp[-1].expression_value).value);
1771 if (parser->is_gles && (yyvsp[-1].expression_value).undefined_macro)
1772 glcpp_error(& (yylsp[-2]), parser, "undefined macro %s in expression (illegal in GLES)", (yyvsp[-1].expression_value).undefined_macro);
1773 _glcpp_parser_skip_stack_change_if (parser, & (yylsp[-2]), "elif", (yyvsp[-1].expression_value).value);
1782 parser->new_line_number = (yyvsp[-1].ival);
1783 _mesa_string_buffer_printf(parser->output, "#line %" PRIiMAX "\n", (yyvsp[-1].ival));
1792 parser->new_line_number = (yyvsp[-2].ival);
1794 parser->new_source_number = (yyvsp[-1].ival);
1797 (yyvsp[-2].ival), (yyvsp[-1].ival));
1805 _define_object_macro (parser, & (yylsp[-2]), (yyvsp[-2].str), (yyvsp[-1].token_list));
1813 _define_function_macro (parser, & (yylsp[-4]), (yyvsp[-4].str), NULL, (yyvsp[-1].token_list));
1821 _define_function_macro (parser, & (yylsp[-5]), (yyvsp[-5].str), (yyvsp[-3].string_list), (yyvsp[-1].token_list));
1842 LINE_EXPANDED, (yyvsp[-1].token_list),
1876 if (strncmp("GL_", (yyvsp[-1].str), 3) == 0)
1879 else if (strstr((yyvsp[-1].str), "__") != NULL) {
1882 && (strcmp("__LINE__", (yyvsp[-1].str)) == 0
1883 || strcmp("__FILE__", (yyvsp[-1].str)) == 0
1884 || strcmp("__VERSION__", (yyvsp[-1].str)) == 0)) {
1898 entry = _mesa_hash_table_search (parser->defines, (yyvsp[-1].str));
1920 IF_EXPANDED, (yyvsp[-1].token_list),
1951 _mesa_hash_table_search(parser->defines, (yyvsp[-2].str));
1962 _mesa_hash_table_search(parser->defines, (yyvsp[-2].str));
1983 ELIF_EXPANDED, (yyvsp[-1].token_list),
2063 _glcpp_parser_handle_version_declaration(parser, (yyvsp[-1].ival), NULL, true);
2074 _glcpp_parser_handle_version_declaration(parser, (yyvsp[-2].ival), (yyvsp[-1].str), true);
2090 _mesa_string_buffer_printf(parser->output, "#%s", (yyvsp[-1].str));
2098 glcpp_error(& (yylsp[-2]), parser, "#%s", (yyvsp[-1].str));
2123 (yyval.ival) = strtoll ((yyvsp[0].str), NULL, 0);
2131 (yyval.ival) = (yyvsp[0].ival);
2140 if ((yyvsp[0].str)[0] == '0' && (yyvsp[0].str)[1] != '\0') {
2141 glcpp_error(&(yylsp[0]), parser, "invalid #version \"%s\" (not a decimal constant)", (yyvsp[0].str));
2144 (yyval.ival) = strtoll((yyvsp[0].str), NULL, 10);
2153 (yyval.expression_value).value = (yyvsp[0].ival);
2164 (yyval.expression_value).undefined_macro = linear_strdup(parser->linalloc, (yyvsp[0].str));
2174 (yyval.expression_value).value = (yyvsp[-2].expression_value).value || (yyvsp[0].expression_value).value;
2179 if ((yyvsp[-2].expression_value).undefined_macro)
2180 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2181 else if (! (yyvsp[-2].expression_value).value)
2182 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2190 (yyval.expression_value).value = (yyvsp[-2].expression_value).value && (yyvsp[0].expression_value).value;
2195 if ((yyvsp[-2].expression_value).undefined_macro)
2196 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2197 else if ((yyvsp[-2].expression_value).value)
2198 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2206 (yyval.expression_value).value = (yyvsp[-2].expression_value).value | (yyvsp[0].expression_value).value;
2207 if ((yyvsp[-2].expression_value).undefined_macro)
2208 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2210 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2218 (yyval.expression_value).value = (yyvsp[-2].expression_value).value ^ (yyvsp[0].expression_value).value;
2219 if ((yyvsp[-2].expression_value).undefined_macro)
2220 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2222 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2230 (yyval.expression_value).value = (yyvsp[-2].expression_value).value & (yyvsp[0].expression_value).value;
2231 if ((yyvsp[-2].expression_value).undefined_macro)
2232 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2234 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2242 (yyval.expression_value).value = (yyvsp[-2].expression_value).value != (yyvsp[0].expression_value).value;
2243 if ((yyvsp[-2].expression_value).undefined_macro)
2244 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2246 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2254 (yyval.expression_value).value = (yyvsp[-2].expression_value).value == (yyvsp[0].expression_value).value;
2255 if ((yyvsp[-2].expression_value).undefined_macro)
2256 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2258 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2266 (yyval.expression_value).value = (yyvsp[-2].expression_value).value >= (yyvsp[0].expression_value).value;
2267 if ((yyvsp[-2].expression_value).undefined_macro)
2268 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2270 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2278 (yyval.expression_value).value = (yyvsp[-2].expression_value).value <= (yyvsp[0].expression_value).value;
2279 if ((yyvsp[-2].expression_value).undefined_macro)
2280 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2282 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2290 (yyval.expression_value).value = (yyvsp[-2].expression_value).value > (yyvsp[0].expression_value).value;
2291 if ((yyvsp[-2].expression_value).undefined_macro)
2292 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2294 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2302 (yyval.expression_value).value = (yyvsp[-2].expression_value).value < (yyvsp[0].expression_value).value;
2303 if ((yyvsp[-2].expression_value).undefined_macro)
2304 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2306 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2314 (yyval.expression_value).value = (yyvsp[-2].expression_value).value >> (yyvsp[0].expression_value).value;
2315 if ((yyvsp[-2].expression_value).undefined_macro)
2316 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2318 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2326 (yyval.expression_value).value = (yyvsp[-2].expression_value).value << (yyvsp[0].expression_value).value;
2327 if ((yyvsp[-2].expression_value).undefined_macro)
2328 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2330 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2338 (yyval.expression_value).value = (yyvsp[-2].expression_value).value - (yyvsp[0].expression_value).value;
2339 if ((yyvsp[-2].expression_value).undefined_macro)
2340 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2342 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2350 (yyval.expression_value).value = (yyvsp[-2].expression_value).value + (yyvsp[0].expression_value).value;
2351 if ((yyvsp[-2].expression_value).undefined_macro)
2352 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2354 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2362 if ((yyvsp[0].expression_value).value == 0) {
2366 (yyval.expression_value).value = (yyvsp[-2].expression_value).value % (yyvsp[0].expression_value).value;
2368 if ((yyvsp[-2].expression_value).undefined_macro)
2369 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2371 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2379 if ((yyvsp[0].expression_value).value == 0) {
2383 (yyval.expression_value).value = (yyvsp[-2].expression_value).value / (yyvsp[0].expression_value).value;
2385 if ((yyvsp[-2].expression_value).undefined_macro)
2386 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2388 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2396 (yyval.expression_value).value = (yyvsp[-2].expression_value).value * (yyvsp[0].expression_value).value;
2397 if ((yyvsp[-2].expression_value).undefined_macro)
2398 (yyval.expression_value).undefined_macro = (yyvsp[-2].expression_value).undefined_macro;
2400 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2408 (yyval.expression_value).value = ! (yyvsp[0].expression_value).value;
2409 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2417 (yyval.expression_value).value = ~ (yyvsp[0].expression_value).value;
2418 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2426 (yyval.expression_value).value = - (yyvsp[0].expression_value).value;
2427 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2435 (yyval.expression_value).value = + (yyvsp[0].expression_value).value;
2436 (yyval.expression_value).undefined_macro = (yyvsp[0].expression_value).undefined_macro;
2444 (yyval.expression_value) = (yyvsp[-1].expression_value);
2453 _string_list_append_item (parser, (yyval.string_list), (yyvsp[0].str));
2461 (yyval.string_list) = (yyvsp[-2].string_list);
2462 _string_list_append_item (parser, (yyval.string_list), (yyvsp[0].str));
2492 _token_list_append (parser, (yyval.token_list), (yyvsp[0].token));
2500 (yyval.token_list) = (yyvsp[-1].token_list);
2501 _token_list_append (parser, (yyval.token_list), (yyvsp[0].token));
2509 (yyval.token) = _token_create_str (parser, IDENTIFIER, (yyvsp[0].str));
2518 (yyval.token) = _token_create_str (parser, INTEGER_STRING, (yyvsp[0].str));
2527 (yyval.token) = _token_create_ival (parser, (yyvsp[0].ival), (yyvsp[0].ival));
2545 (yyval.token) = _token_create_str (parser, OTHER, (yyvsp[0].str));
2779 *++yyvsp = yyval;
2916 yystos[yystate], yyvsp, yylsp, parser);
2923 *++yyvsp = yylval;
2933 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
2979 yystos[*yyssp], yyvsp, yylsp, parser);