Lines Matching defs:pattern

111 /* Return TRUE if the PATTERN argument is a wildcard pattern.
112 Although backslashes are treated specially if a pattern contains
114 be enough to cause the pattern to be treated as a wildcard.
116 #define wildcardp(pattern) (strpbrk ((pattern), "?*[") != NULL)
302 match_simple_wild (const char *pattern, const char *name)
304 /* The first four characters of the pattern are guaranteed valid
306 if (pattern[0] != name[0] || pattern[1] != name[1]
307 || pattern[2] != name[2] || pattern[3] != name[3])
310 pattern += 4;
312 while (*pattern != '*')
313 if (*name++ != *pattern++)
5588 /* If the wild pattern was marked KEEP, the member sections
6554 /* If PREV is NULL, return first version pattern matching particular symbol.
6555 If PREV is non-NULL, return first version pattern matching particular
6636 if (!expr->pattern)
6639 if (expr->pattern[0] == '*' && expr->pattern[1] == '\0')
6648 if (fnmatch (expr->pattern, s, 0) == 0)
6660 /* Return NULL if the PATTERN argument is a glob pattern, otherwise,
6664 realsymbol (const char *pattern)
6668 char *s, *symbol = xmalloc (strlen (pattern) + 1);
6670 for (p = pattern, s = symbol; *p != '\0'; ++p)
6672 /* It is a glob pattern only if there is no preceding
6700 return pattern;
6706 pattern to be matched against symbol names. */
6718 ret->pattern = literal_p ? NULL : new;
6830 /* FIXME: Memory leak. Sometimes pattern is not
6909 if (strcmp (e1->pattern, e2->pattern) == 0
6912 " in version information\n"), e1->pattern);
6936 if (strcmp (e1->pattern, e2->pattern) == 0
6939 " in version information\n"), e1->pattern);