Lines Matching refs:macro
41 const char *macro,
47 const char *macro,
240 macro_t *macro = hash_table_find (parser->defines, $2); variable
241 if (macro) {
243 ralloc_free (macro);
286 macro_t *macro = hash_table_find (parser->defines, $2); variable
288 _glcpp_parser_skip_stack_push_if (parser, & @1, macro != NULL);
291 macro_t *macro = hash_table_find (parser->defines, $2); variable
293 _glcpp_parser_skip_stack_push_if (parser, & @1, macro == NULL);
337 macro_t *macro = hash_table_find (parser->defines, "__VERSION__"); variable
338 if (macro) {
340 ralloc_free (macro);
1395 macro_t *macro; in _glcpp_parser_expand_function() local
1404 macro = hash_table_find (parser->defines, identifier); in _glcpp_parser_expand_function()
1406 assert (macro->is_function); in _glcpp_parser_expand_function()
1422 if (macro->replacements == NULL) { in _glcpp_parser_expand_function()
1428 _string_list_length (macro->parameters)) || in _glcpp_parser_expand_function()
1429 (_string_list_length (macro->parameters) == 0 && in _glcpp_parser_expand_function()
1437 _string_list_length (macro->parameters)); in _glcpp_parser_expand_function()
1444 for (node = macro->replacements->head; node; node = node->next) in _glcpp_parser_expand_function()
1447 _string_list_contains (macro->parameters, in _glcpp_parser_expand_function()
1510 macro_t *macro; in _glcpp_parser_expand_node() local
1527 macro = hash_table_find (parser->defines, identifier); in _glcpp_parser_expand_node()
1530 if (macro == NULL) in _glcpp_parser_expand_node()
1551 if (! macro->is_function) in _glcpp_parser_expand_node()
1557 if (macro->replacements == NULL) in _glcpp_parser_expand_node()
1560 replacement = _token_list_copy (parser, macro->replacements); in _glcpp_parser_expand_node()
1747 macro_t *macro, *previous; in _define_object_macro() local
1752 macro = ralloc (parser, macro_t); in _define_object_macro()
1754 macro->is_function = 0; in _define_object_macro()
1755 macro->parameters = NULL; in _define_object_macro()
1756 macro->identifier = ralloc_strdup (macro, identifier); in _define_object_macro()
1757 macro->replacements = replacements; in _define_object_macro()
1758 ralloc_steal (macro, replacements); in _define_object_macro()
1762 if (_macro_equal (macro, previous)) { in _define_object_macro()
1763 ralloc_free (macro); in _define_object_macro()
1770 hash_table_insert (parser->defines, macro, identifier); in _define_object_macro()
1780 macro_t *macro, *previous; in _define_function_macro() local
1784 macro = ralloc (parser, macro_t); in _define_function_macro()
1785 ralloc_steal (macro, parameters); in _define_function_macro()
1786 ralloc_steal (macro, replacements); in _define_function_macro()
1788 macro->is_function = 1; in _define_function_macro()
1789 macro->parameters = parameters; in _define_function_macro()
1790 macro->identifier = ralloc_strdup (macro, identifier); in _define_function_macro()
1791 macro->replacements = replacements; in _define_function_macro()
1794 if (_macro_equal (macro, previous)) { in _define_function_macro()
1795 ralloc_free (macro); in _define_function_macro()
1802 hash_table_insert (parser->defines, macro, identifier); in _define_function_macro()
1856 macro_t *macro; in glcpp_parser_lex() local
1857 macro = hash_table_find (parser->defines, in glcpp_parser_lex()
1859 if (macro && macro->is_function) { in glcpp_parser_lex()