mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-01 17:27:15 +08:00
Move free() decl to utils.c.
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2001-03-19 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* defs.h (free): Move declaration from here.
|
||||
* utils.c (free): To here.
|
||||
(xfree): Document as the only call to free().
|
||||
* config/pa/xm-hppah.h (free): Delete declaration.
|
||||
|
||||
2001-03-19 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
|
||||
|
@ -44,5 +44,3 @@
|
||||
extern void *malloc (size_t);
|
||||
|
||||
extern void *realloc (void *, size_t);
|
||||
|
||||
extern void free (void *);
|
||||
|
@ -955,10 +955,6 @@ extern PTR malloc ();
|
||||
extern PTR realloc ();
|
||||
#endif
|
||||
|
||||
#ifdef NEED_DECLARATION_FREE
|
||||
extern void free ();
|
||||
#endif
|
||||
|
||||
#endif /* MALLOC_INCOMPATIBLE */
|
||||
|
||||
/* Various possibilities for alloca. */
|
||||
|
@ -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() */
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user