Lines Matching defs:exclude
0 /* exclude.c -- exclude file names
58 #include "exclude.h"
76 /* An exclude pattern-options pair. The options are fnmatch options
85 /* An exclude list, of pattern-options pairs. */
87 struct exclude
89 struct patopts *exclude;
94 /* Return a newly allocated and empty exclude list. */
96 struct exclude *
99 struct exclude *ex = (struct exclude *) xmalloc (sizeof *ex);
102 ex->exclude = (struct patopts *) xmalloc (ex->exclude_alloc
103 * sizeof ex->exclude[0]);
107 /* Free the storage associated with an exclude list. */
110 free_exclude (struct exclude *ex)
112 free (ex->exclude);
145 excluded_filename (struct exclude const *ex, char const *f)
154 struct patopts const *exclude = ex->exclude;
158 bool excluded = !! (exclude[0].options & EXCLUDE_INCLUDE);
164 char const *pattern = exclude[i].pattern;
165 int options = exclude[i].options;
191 add_exclude (struct exclude *ex, char const *pattern, int options)
198 if (! (0 < s && s <= SIZE_MAX / sizeof ex->exclude[0]))
201 ex->exclude = (struct patopts *) xrealloc (ex->exclude,
202 s * sizeof ex->exclude[0]);
205 patopts = &ex->exclude[ex->exclude_count++];
215 add_exclude_file (void (*add_func) PARAMS ((struct exclude *,
217 struct exclude *ex, char const *filename, int options,