]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/hashtab.c
hashtab.c (htab_expand): Change to return int.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 4 Nov 2000 07:42:53 +0000 (07:42 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 4 Nov 2000 07:42:53 +0000 (07:42 +0000)
commitd50d20ecc8b8152b7bf5aa498c4a6a7556e493ec
tree1c95543158a92a3624e0db715aa490c262af08e7
parent5dd0f480ae41ba813754743c0f040c030be62987
hashtab.c (htab_expand): Change to return int.

* 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.

From-SVN: r37247
libiberty/ChangeLog
libiberty/hashtab.c