Lines Matching defs:ex
101 struct exclude *ex = (struct exclude *) xmalloc (sizeof *ex);
102 ex->exclude_count = 0;
103 ex->exclude_alloc = (1 << 6); /* This must be a power of 2. */
104 ex->exclude = (struct patopts *) xmalloc (ex->exclude_alloc
105 * sizeof ex->exclude[0]);
106 return ex;
112 free_exclude (struct exclude *ex)
114 free (ex->exclude);
115 free (ex);
147 excluded_filename (struct exclude const *ex, char const *f)
149 size_t exclude_count = ex->exclude_count;
156 struct patopts const *exclude = ex->exclude;
193 add_exclude (struct exclude *ex, char const *pattern, int options)
197 if (ex->exclude_alloc <= ex->exclude_count)
199 size_t s = 2 * ex->exclude_alloc;
200 if (! (0 < s && s <= SIZE_MAX / sizeof ex->exclude[0]))
202 ex->exclude_alloc = s;
203 ex->exclude = (struct patopts *) xrealloc (ex->exclude,
204 s * sizeof ex->exclude[0]);
207 patopts = &ex->exclude[ex->exclude_count++];
219 struct exclude *ex, char const *filename, int options,
264 (*add_func) (ex, pattern, options);