Lines Matching defs:ex
99 struct exclude *ex = (struct exclude *) xmalloc (sizeof *ex);
100 ex->exclude_count = 0;
101 ex->exclude_alloc = (1 << 6); /* This must be a power of 2. */
102 ex->exclude = (struct patopts *) xmalloc (ex->exclude_alloc
103 * sizeof ex->exclude[0]);
104 return ex;
110 free_exclude (struct exclude *ex)
112 free (ex->exclude);
113 free (ex);
145 excluded_filename (struct exclude const *ex, char const *f)
147 size_t exclude_count = ex->exclude_count;
154 struct patopts const *exclude = ex->exclude;
191 add_exclude (struct exclude *ex, char const *pattern, int options)
195 if (ex->exclude_alloc <= ex->exclude_count)
197 size_t s = 2 * ex->exclude_alloc;
198 if (! (0 < s && s <= SIZE_MAX / sizeof ex->exclude[0]))
200 ex->exclude_alloc = s;
201 ex->exclude = (struct patopts *) xrealloc (ex->exclude,
202 s * sizeof ex->exclude[0]);
205 patopts = &ex->exclude[ex->exclude_count++];
217 struct exclude *ex, char const *filename, int options,
262 (*add_func) (ex, pattern, options);