rem: if (ex->exclude_alloc <= ex->exclude_count) { size_t s = 2 * ex->exclude_alloc; if (! (0 < s && s <= SIZE_MAX / sizeof ex->exclude[0])) xalloc_die (); ex->exclude_alloc = s; ex->exclude = (struct patopts *) xrealloc (ex->exclude, s * sizeof ex->exclude[0]); }
add: if (ex->exclude_count == ex->exclude_alloc) ex->exclude = x2nrealloc (ex->exclude, &ex->exclude_alloc, sizeof *ex->exclude);
context: add_exclude (struct exclude *ex, char const *pattern, int options){  struct patopts *patopts;  if (ex->exclude_alloc <= ex->exclude_count)    {      size_t s = 2 * ex->exclude_alloc;      if (! (0 < s && s <= SIZE_MAX / sizeof ex->exclude[0]))	xalloc_die ();      ex->exclude_alloc = s;      ex->exclude = (struct patopts *) xrealloc (ex->exclude,						 s * sizeof ex->exclude[0]);    }  patopts = &ex->exclude[ex->exclude_count++];  patopts->pattern = pattern;  patopts->options = options;}