- EMACS_INT i;
- ptrdiff_t cache_len_max =
- min (PTRDIFF_MAX, SIZE_MAX) / sizeof *c->boundaries;
- ptrdiff_t min_size_max = cache_len_max - c->cache_len;
-
- if (min_size_max < min_size)
- memory_full (SIZE_MAX);
-
- /* Unless running out of space, make at least NEW_CACHE_GAP
- elements, as long as we're expanding anyway. */
- min_size = max (min_size, min (min_size_max, NEW_CACHE_GAP));