Lines Matching refs:identifier

112 _parser_active_list_push(glcpp_parser_t *parser, const char *identifier,
119 _parser_active_list_contains(glcpp_parser_t *parser, const char *identifier);
1651 * If the identifier is a defined macro, this function returns 1.
1653 * If the identifier is not a defined macro, this function returns 0.
1656 * consumed by the evaluation, (either the token of the identifier or the
1698 /* Ignore whitespace after identifier, before ')' token. */
1715 "\"defined\" not followed by an identifier");
1833 * although 'node' corresponds to an identifier defined as a
1854 const char *identifier;
1860 identifier = node->token->value.str;
1862 entry = _mesa_hash_table_search(parser->defines, identifier);
1876 glcpp_error(&node->token->location, parser, "Macro %s call has unbalanced parentheses\n", identifier);
1892 identifier, _argument_list_length (arguments),
1959 const char *identifier;
1973 identifier = token->value.str;
1977 if (*identifier == '_') {
1978 if (strcmp(identifier, "__LINE__") == 0)
1981 if (strcmp(identifier, "__FILE__") == 0)
1986 /* Look up this identifier in the hash table. */
1987 entry = _mesa_hash_table_search(parser->defines, identifier);
1996 if (_parser_active_list_contains (parser, identifier)) {
2026 /* Push a new identifier onto the parser's active list.
2029 * expansion of 'identifier'. That is, when the list iterator begins
2034 _parser_active_list_push(glcpp_parser_t *parser, const char *identifier,
2040 node->identifier = linear_strdup(parser->linalloc, identifier);
2062 _parser_active_list_contains(glcpp_parser_t *parser, const char *identifier)
2070 if (strcmp(node->identifier, identifier) == 0)
2092 * not followed by an (optionally parenthesized) identifier, then
2190 const char *identifier)
2209 if (strstr(identifier, "__")) {
2213 if (strncmp(identifier, "GL_", 3) == 0) {
2216 if (strcmp(identifier, "defined") == 0) {
2237 const char *identifier, token_list_t *replacements)
2246 _check_for_reserved_macro_name(parser, loc, identifier);
2252 macro->identifier = linear_strdup(parser->linalloc, identifier);
2255 entry = _mesa_hash_table_search(parser->defines, identifier);
2261 glcpp_error (loc, parser, "Redefinition of macro %s\n", identifier);
2264 _mesa_hash_table_insert (parser->defines, identifier, macro);
2269 const char *identifier, string_list_t *parameters,
2276 _check_for_reserved_macro_name(parser, loc, identifier);
2287 macro->identifier = linear_strdup(parser->linalloc, identifier);
2290 entry = _mesa_hash_table_search(parser->defines, identifier);
2296 glcpp_error (loc, parser, "Redefinition of macro %s\n", identifier);
2299 _mesa_hash_table_insert(parser->defines, identifier, macro);
2456 const char *identifier,
2468 (identifier && (strcmp(identifier, "es") == 0));
2469 bool is_compat = version >= 150 && identifier &&
2470 strcmp(identifier, "compatibility") == 0;
2509 identifier ? " " : "",
2510 identifier ? identifier : "");
2540 const char *identifier = macro->identifier;
2542 identifier);
2550 identifier);
2553 _mesa_hash_table_insert(di->parser->defines, identifier, macro);