OSDN Git Service

* hashtab.c (htab_expand): Change to return int. Use calloc or
authorhp <hp>
Sat, 4 Nov 2000 07:54:27 +0000 (07:54 +0000)
committerhp <hp>
Sat, 4 Nov 2000 07:54:27 +0000 (07:54 +0000)
commitae2f4407720034987e96f92d674f72a7ed8b686d
tree947b6024f657f7753a5ef427fd82f73a7c7c197a
parent4be5f93eeb08b23986a2710674e51ba195d82900
* 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