Lines Matching refs:pattern
121 #define wildcardp(pattern) (strpbrk ((pattern), "?*[") != NULL) argument
141 name_match (const char *pattern, const char *name) in name_match() argument
143 if (wildcardp (pattern)) in name_match()
144 return fnmatch (pattern, name, 0); in name_match()
145 return strcmp (pattern, name); in name_match()
152 archive_path (const char *pattern) in archive_path() argument
159 p = strchr (pattern, link_info.path_separator); in archive_path()
166 if (p == pattern + 1 && ISALPHA (*pattern)) in archive_path()
354 match_simple_wild (const char *pattern, const char *name) in match_simple_wild() argument
358 if (pattern[0] != name[0] || pattern[1] != name[1] in match_simple_wild()
359 || pattern[2] != name[2] || pattern[3] != name[3]) in match_simple_wild()
362 pattern += 4; in match_simple_wild()
364 while (*pattern != '*') in match_simple_wild()
365 if (*name++ != *pattern++) in match_simple_wild()
7550 e.pattern = c_sym; in lang_vers_match()
7553 while (expr && strcmp (expr->pattern, c_sym) == 0) in lang_vers_match()
7563 e.pattern = cxx_sym; in lang_vers_match()
7566 while (expr && strcmp (expr->pattern, cxx_sym) == 0) in lang_vers_match()
7576 e.pattern = java_sym; in lang_vers_match()
7579 while (expr && strcmp (expr->pattern, java_sym) == 0) in lang_vers_match()
7600 if (!expr->pattern) in lang_vers_match()
7603 if (expr->pattern[0] == '*' && expr->pattern[1] == '\0') in lang_vers_match()
7612 if (fnmatch (expr->pattern, s, 0) == 0) in lang_vers_match()
7630 realsymbol (const char *pattern) in realsymbol() argument
7634 char *s, *symbol = (char *) xmalloc (strlen (pattern) + 1); in realsymbol()
7636 for (p = pattern, s = symbol; *p != '\0'; ++p) in realsymbol()
7668 return pattern; in realsymbol()
7689 ret->pattern = literal_p ? new_name : realsymbol (new_name); in lang_new_vers_pattern()
7690 if (ret->pattern == NULL) in lang_new_vers_pattern()
7692 ret->pattern = new_name; in lang_new_vers_pattern()
7739 return htab_hash_string (e->pattern); in version_expr_head_hash()
7750 return strcmp (e1->pattern, e2->pattern) == 0; in version_expr_head_eq()
7801 while (e1 && strcmp (e1->pattern, e->pattern) == 0); in lang_finalize_version_expr_head()
7876 while (e2 && strcmp (e1->pattern, e2->pattern) == 0) in lang_register_vers_node()
7880 " in version information\n"), e1->pattern); in lang_register_vers_node()
7886 if (strcmp (e1->pattern, e2->pattern) == 0 in lang_register_vers_node()
7889 " in version information\n"), e1->pattern); in lang_register_vers_node()
7903 while (e2 && strcmp (e1->pattern, e2->pattern) == 0) in lang_register_vers_node()
7908 e1->pattern); in lang_register_vers_node()
7914 if (strcmp (e1->pattern, e2->pattern) == 0 in lang_register_vers_node()
7917 " in version information\n"), e1->pattern); in lang_register_vers_node()