- Remove LAM_MEM_ZERO
- Remove LAM_MALLOC and LAM_FREE -- simply #define malloc/free to be lam_malloc and lam_free as necessary This commit was SVN r672.
Этот коммит содержится в:
родитель
a6ab772354
Коммит
e1fb3b0db4
@ -44,3 +44,18 @@ typedef enum { false, true } bool;
|
||||
#if HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do we want memory debugging?
|
||||
*/
|
||||
#if LAM_ENABLE_MEM_DEBUG && defined(LAM_BUILDING) && LAM_BUILDING
|
||||
|
||||
/* It is safe to include lam/mem/malloc.h here because a) it will only
|
||||
happen when we are building LAM and therefore have a full LAM
|
||||
source tree [including headers] available, and b) we guaranteed to
|
||||
*not* to include anything else via lam/mem/malloc.h, so we won't
|
||||
have Cascading Includes Of Death. */
|
||||
#include "lam/mem/malloc.h"
|
||||
#define malloc(size) lam_malloc((size), __FILE__, __LINE__)
|
||||
#define free(ptr) lam_free((ptr), __FILE__, __LINE__)
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user