2004-08-10 Andrew Cagney <cagney@gnu.org>

* defs.h (xmrealloc): Delete.
	* utils.c (xmrealloc): Delete.
	(xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
	* symmisc.c (extend_psymbol_list): Use xrealloc.
	* source.c (find_source_lines): Ditto.
	* hpread.c (hpread_lookup_type): Ditto.
	* dbxread.c (add_bincl_to_list): Ditto.
This commit is contained in:
Andrew Cagney
2004-08-10 20:03:32 +00:00
parent 7936743b08
commit 0efffb96a9
7 changed files with 33 additions and 34 deletions

View File

@@ -1238,8 +1238,8 @@ extend_psymbol_list (struct psymbol_allocation_list *listp,
{
new_size = listp->size * 2;
listp->list = (struct partial_symbol **)
xmrealloc (objfile->md, (char *) listp->list,
new_size * sizeof (struct partial_symbol *));
xrealloc ((char *) listp->list,
new_size * sizeof (struct partial_symbol *));
}
/* Next assumes we only went one over. Should be good if
program works correctly */