Commit Graph

7 Commits

Author SHA1 Message Date
DJ Delorie 5ca0f83d75 * hashtab.c (higher_prime_number): Use a table, rather than a
seive, to find the next prime.
2000-11-29 19:19:10 +00:00
Hans-Peter Nilsson 99a4c1bd6b * 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.
2000-11-04 07:54:27 +00:00
Hans-Peter Nilsson e0f3df8f1e * hashtab.c: Change void * to PTR where necessary.
(htab_create, htab_expand): Correct formatting of comment before
	function.
2000-11-03 20:55:25 +00:00
H.J. Lu eb383413c2 Synced with libiberty in the gcc repository. 2000-06-15 20:56:25 +00:00
Zack Weinberg 5c82d20a26 * hashtab.c, partition.c, xmemdup.c: Include string.h
if HAVE_STRING_H.
	* pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
	* objalloc.c: Include config.h.  Include stdlib.h and don't
	declare malloc or free if HAVE_STDLIB_H.
	* strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
	else declare malloc without prototype.  Include string.h if
	HAVE_STRING_H, else declare memset without prototype.  Don't
	include stddef.h.

	* sort.c: Bring over from GCC.
2000-05-29 20:45:32 +00:00
Jason Merrill b4fe268363 merge from gcc 2000-03-24 21:31:22 +00:00
Ian Lance Taylor e2eaf47799 import libiberty from egcs 2000-02-22 15:59:20 +00:00