Refactor: clean up malloc/realloc/free/calloc
authorTrond Norbye <trond.norbye@sun.com>
Wed, 10 Jun 2009 10:29:06 +0000 (12:29 +0200)
committerTrond Norbye <trond.norbye@sun.com>
Wed, 10 Jun 2009 10:29:06 +0000 (12:29 +0200)
commit24240a9d5478d0e840d9246df44be38c63461f90
tree4227daeafbe5eb7c16a1954fd015d867a0faef6e
parent1b3d7ce5cc6fcff13e047c487b090df91c5c807b
Refactor: clean up malloc/realloc/free/calloc

Added memcached_set_memory_allocators and memcached_get_memory_allocators
to set and get the memory allocators used by memcached. The old versions set
by the memcached_set_callback function is deprecated and will be removed in
future versions.

Internally we will now only use the call_malloc function pointer and don't
test if it is set before calling (it is initialized to a libc-version)
17 files changed:
.bzrignore
docs/Makefile.am
docs/memcached_callback.pod
docs/memcached_memory_allocators.pod [new file with mode: 0644]
libmemcached/Makefile.am
libmemcached/memcached.c
libmemcached/memcached.h
libmemcached/memcached_allocators.c [new file with mode: 0644]
libmemcached/memcached_analyze.c
libmemcached/memcached_hosts.c
libmemcached/memcached_internal.h [new file with mode: 0644]
libmemcached/memcached_result.c
libmemcached/memcached_server.c
libmemcached/memcached_stats.c
libmemcached/memcached_string.c
libmemcached/memcached_types.h
tests/function.c