-/* Returns a replacement for PROTO that is unshared and has
- enough room for at least N_WIDTHS widths before additional
- memory is needed. */
-struct caseproto *
-caseproto_reserve (struct caseproto *proto, size_t n_widths)
-{
- proto = caseproto_unshare (proto);
- if (n_widths > proto->allocated_widths)
- {
- proto->allocated_widths = MAX (proto->allocated_widths * 2, n_widths);
- proto = xrealloc (proto, caseproto_size (proto->allocated_widths));
- }
- return proto;
-}
-