Move free() decl to utils.c.

This commit is contained in:
Andrew Cagney 2001-03-20 00:28:23 +00:00
parent 8cca004af1
commit 81b8eb809e
4 changed files with 14 additions and 7 deletions

View file

@ -56,6 +56,12 @@
#include <readline/readline.h>
#ifndef MALLOC_INCOMPATIBLE
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
#endif
#undef XMALLOC
#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE)))
@ -1110,7 +1116,7 @@ void
xfree (void *ptr)
{
if (ptr != NULL)
free (ptr);
free (ptr); /* NOTE: GDB's only call to free() */
}