1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-18 00:23:50 +03:00

r502: modified ldb to allow the use of an external pool memory

allocator. The way to use this is to call ldb_set_alloc() with a
function pointer to whatever memory allocator you like. It includes a
context pointer to allow for pool based allocators.
This commit is contained in:
Andrew Tridgell
2004-05-06 04:40:15 +00:00
committed by Gerald (Jerry) Carter
parent ace939a588
commit 3955c482e6
25 changed files with 693 additions and 492 deletions

View File

@@ -18,11 +18,5 @@
#include <sys/time.h>
#include <time.h>
#include "ldb.h"
#include "ldb_parse.h"
#define malloc_p(type) (type *)malloc(sizeof(type))
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
#include "tdb/tdb.h"
#include "proto.h"