config
This commit is contained in:
parent
4123764fcc
commit
19a265073f
@ -1620,7 +1620,7 @@ signal. */
|
|||||||
|
|
||||||
/* malloc_t */
|
/* malloc_t */
|
||||||
#ifndef MALLOC_T
|
#ifndef MALLOC_T
|
||||||
#define MALLOC_T "void *"
|
#define MALLOC_T void *
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* max number of threads, default 1 or 1024 */
|
/* max number of threads, default 1 or 1024 */
|
||||||
@ -1841,15 +1841,6 @@ signal. */
|
|||||||
#define USE_JUDY ${WITH_JUDY}
|
#define USE_JUDY ${WITH_JUDY}
|
||||||
#endif
|
#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 */
|
/* Use mmap in or-parallel copying */
|
||||||
#ifndef USE_SYSTEM_MMAP
|
#ifndef USE_SYSTEM_MMAP
|
||||||
@ -2003,4 +1994,15 @@ calls it, or to nothing if 'inline' is not supported under any name. */
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//#define DEBUG_MALLOC 1
|
||||||
|
#if DEBUG_MALLOC
|
||||||
|
#if HAVE_MALLOC_H
|
||||||
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
#define malloc(sz) my_malloc(sz)
|
||||||
|
#define realloc(pt, sz) my_realloc(pt,sz)
|
||||||
|
#define free(pt) my_free(pt)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user