25
25
namespace drizzled {
28
void *sql_alloc(size_t);
29
void *sql_calloc(size_t);
30
char *sql_strdup(const char*);
31
char *sql_strmake(const char*, size_t);
32
void *sql_memdup(const void*, size_t);
28
void* sql_alloc(size_t);
29
void* sql_calloc(size_t);
30
char* sql_strdup(const char*);
31
char* sql_strmake(const char*, size_t);
32
void* sql_memdup(const void*, size_t);
34
34
class DRIZZLED_API SqlAlloc
37
static void *operator new(size_t size);
38
static void *operator new[](size_t size);
39
static void *operator new[](size_t size, Root *mem_root);
40
static void *operator new(size_t size, Root *mem_root);
41
static void operator delete(void *, size_t)
43
static void operator delete(void *, Root *)
45
static void operator delete[](void *, Root *)
47
static void operator delete[](void *, size_t)
37
static void *operator new(size_t size)
39
return memory::sql_alloc(size);
42
static void *operator new[](size_t size)
44
return memory::sql_alloc(size);
47
static void *operator new[](size_t size, Root& root)
49
return root.alloc(size);
52
static void *operator new(size_t size, Root& root)
54
return root.alloc(size);
57
static void *operator new[](size_t size, Root* root)
59
return root->alloc(size);
62
static void *operator new(size_t size, Root* root)
64
return root->alloc(size);
67
static void operator delete(void*, size_t)
69
static void operator delete(void*, Root*)
71
static void operator delete[](void*, Root*)
73
static void operator delete[](void*, size_t)