Lines Matching refs:options
78 int options; member
105 int options; /* common options for this segment */ member
143 fnmatch_pattern_has_wildcards (const char *str, int options) in fnmatch_pattern_has_wildcards() argument
154 if (options & EXCLUDE_REGEX) in fnmatch_pattern_has_wildcards()
159 if (options & EXCLUDE_REGEX) in fnmatch_pattern_has_wildcards()
162 str += ! (options & FNM_NOESCAPE) && *str; in fnmatch_pattern_has_wildcards()
166 if (options & FNM_EXTMATCH && *str == '(') in fnmatch_pattern_has_wildcards()
255 new_exclude_segment (struct exclude *ex, enum exclude_type type, int options) in new_exclude_segment() argument
259 sp->options = options; in new_exclude_segment()
267 (options & FNM_CASEFOLD) ? in new_exclude_segment()
270 (options & FNM_CASEFOLD) ? in new_exclude_segment()
291 if (seg->v.pat.exclude[i].options & EXCLUDE_REGEX) in free_exclude_segment()
333 fnmatch_no_wildcards (char const *pattern, char const *f, int options) in fnmatch_no_wildcards() argument
335 if (! (options & FNM_LEADING_DIR)) in fnmatch_no_wildcards()
336 return ((options & FNM_CASEFOLD) in fnmatch_no_wildcards()
339 else if (! (options & FNM_CASEFOLD)) in fnmatch_no_wildcards()
378 exclude_fnmatch (char const *pattern, char const *f, int options) in exclude_fnmatch() argument
381 (options & EXCLUDE_WILDCARDS in exclude_fnmatch()
384 bool matched = ((*matcher) (pattern, f, options) == 0); in exclude_fnmatch()
387 if (! (options & EXCLUDE_ANCHORED)) in exclude_fnmatch()
390 matched = ((*matcher) (pattern, p + 1, options) == 0); in exclude_fnmatch()
398 int options = opts->options; in exclude_patopts() local
400 return (options & EXCLUDE_REGEX) in exclude_patopts()
402 : exclude_fnmatch (opts->v.pattern, f, options); in exclude_patopts()
429 int options = seg->options; in file_name_matches() local
441 if (options & FNM_LEADING_DIR) in file_name_matches()
453 if (!(options & EXCLUDE_ANCHORED)) in file_name_matches()
512 return invert ^ ! (seg->options & EXCLUDE_INCLUDE); in excluded_file_name()
518 add_exclude (struct exclude *ex, char const *pattern, int options) in add_exclude() argument
524 if ((options & (EXCLUDE_REGEX|EXCLUDE_WILDCARDS)) in add_exclude()
525 && fnmatch_pattern_has_wildcards (pattern, options)) in add_exclude()
528 && ((ex->head->options & EXCLUDE_INCLUDE) in add_exclude()
529 == (options & EXCLUDE_INCLUDE)))) in add_exclude()
530 new_exclude_segment (ex, exclude_pattern, options); in add_exclude()
540 patopts->options = options; in add_exclude()
541 if (options & EXCLUDE_REGEX) in add_exclude()
545 ((options & FNM_CASEFOLD) ? REG_ICASE : 0); in add_exclude()
547 if (options & FNM_LEADING_DIR) in add_exclude()
577 if (options & EXCLUDE_ALLOC) in add_exclude()
591 && ((ex->head->options & exclude_hash_flags) in add_exclude()
592 == (options & exclude_hash_flags)))) in add_exclude()
593 new_exclude_segment (ex, exclude_hash, options); in add_exclude()
597 if ((options & (EXCLUDE_WILDCARDS | FNM_NOESCAPE)) == EXCLUDE_WILDCARDS) in add_exclude()
612 struct exclude *ex, FILE *fp, int options, in add_exclude_fp() argument
658 (*add_func) (ex, pattern, options, data); in add_exclude_fp()
669 call_addfn (struct exclude *ex, char const *pattern, int options, void *data) in call_addfn() argument
672 (*addfnptr) (ex, pattern, options); in call_addfn()
677 struct exclude *ex, char const *file_name, int options, in add_exclude_file() argument
689 rc = add_exclude_fp (call_addfn, ex, in, options, line_end, &add_func); in add_exclude_file()