mirror of git://sourceware.org/git/glibc.git
[BZ #1261]
2005-08-29 Thomas Schwinge <schwinge@nic-nac-project.de> [BZ #1261] * manual/memory.texi (Hooks for Malloc): Correct prototype of my_init_hook and definition of my_free_hook.
This commit is contained in:
parent
ad41c28e66
commit
2ac057a069
|
|
@ -1,3 +1,9 @@
|
||||||
|
2005-08-29 Thomas Schwinge <schwinge@nic-nac-project.de>
|
||||||
|
|
||||||
|
[BZ #1261]
|
||||||
|
* manual/memory.texi (Hooks for Malloc): Correct prototype of
|
||||||
|
my_init_hook and definition of my_free_hook.
|
||||||
|
|
||||||
2005-09-12 Roland McGrath <roland@redhat.com>
|
2005-09-12 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
[BZ #1331]
|
[BZ #1331]
|
||||||
|
|
|
||||||
|
|
@ -948,7 +948,7 @@ program.
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
/* Prototypes for our hooks. */
|
/* Prototypes for our hooks. */
|
||||||
static void *my_init_hook (void);
|
static void my_init_hook (void);
|
||||||
static void *my_malloc_hook (size_t, const void *);
|
static void *my_malloc_hook (size_t, const void *);
|
||||||
static void my_free_hook (void*, const void *);
|
static void my_free_hook (void*, const void *);
|
||||||
|
|
||||||
|
|
@ -984,7 +984,7 @@ my_malloc_hook (size_t size, const void *caller)
|
||||||
return result;
|
return result;
|
||||||
@}
|
@}
|
||||||
|
|
||||||
static void *
|
static void
|
||||||
my_free_hook (void *ptr, const void *caller)
|
my_free_hook (void *ptr, const void *caller)
|
||||||
@{
|
@{
|
||||||
/* Restore all old hooks */
|
/* Restore all old hooks */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue