* hashtab.c (htab_expand): Change to return int. Use calloc or
authorHans-Peter Nilsson <hp@axis.com>
Sat, 4 Nov 2000 07:54:27 +0000 (07:54 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 4 Nov 2000 07:54:27 +0000 (07:54 +0000)
commit99a4c1bd6b076fb9194689a48c72914348019638
treea3aa69cb9babf5375d774e1fe60bb050094cc374
parent82e7f05e13cc6fd05f1289378e863f25ff8d2f21
* hashtab.c (htab_expand): Change to return int.  Use calloc or
  xcalloc depending on htab->return_allocation_failure.  Return zero
  if calloc fails.
(htab_create): Update comment to cover memory allocation.
(htab_try_create): New.
(htab_find_slot_with_hash): Return NULL if htab_expand fails.
   Update comment to cover this.
libiberty/ChangeLog
libiberty/hashtab.c