This commit is contained in:
Vitor Santos Costa 2016-07-31 10:21:09 -05:00
parent 4fa33de8a8
commit 468a2279c3
1 changed files with 12 additions and 10 deletions

View File

@ -1620,7 +1620,7 @@ signal. */
/* malloc_t */
#ifndef MALLOC_T
#define MALLOC_T "void *"
#define MALLOC_T void *
#endif
/* max number of threads, default 1 or 1024 */
@ -1841,15 +1841,6 @@ signal. */
#define USE_JUDY ${WITH_JUDY}
#endif
/* use Doug Lea's malloc ot implement the data-base. */
#ifndef USE_DL_MALLOC
#cmakedefine USE_DL_MALLOC ${WITH_DL_MALLOC}
#endif
/* use the OS malloc or some other external library to implement the data-base. */
#ifndef USE_SYSTEM_MALLOC
#cmakedefine USE_SYSTEM_MALLOC ${WITH_SYSTEM_MALLOC}
#endif
/* Use mmap in or-parallel copying */
#ifndef USE_SYSTEM_MMAP
@ -2003,4 +1994,15 @@ calls it, or to nothing if 'inline' is not supported under any name. */
#endif
#endif
//#define DEBUG_MALLOC 1
#if DEBUG_MALLOC
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#define malloc(sz) my_malloc(sz)
#define realloc(pt, sz) my_realloc(pt,sz)
#define free(pt) my_free(pt)
#endif
#endif