23 #include <drizzled/errmsg_print.h>
24 #include <drizzled/memory/sql_alloc.h>
25 #include <drizzled/current_session.h>
26 #include <drizzled/error.h>
28 #include <drizzled/internal/my_sys.h>
33 void* sql_alloc(
size_t Size)
35 return current_mem_root()->
alloc(Size);
38 void* sql_calloc(
size_t size)
40 return current_mem_root()->calloc(size);
43 char* sql_strdup(
const char* str)
45 return current_mem_root()->
strdup(str);
50 return current_mem_root()->
strdup(str);
53 void* sql_memdup(
const void* ptr,
size_t len)
55 return current_mem_root()->
memdup(ptr, len);
void * memdup(const void *, size_t)
Duplicate the provided block into memory allocated from within the specified Root.
unsigned char * alloc(size_t Size)
Allocate a chunk of memory from the Root structure provided, obtaining more memory from the heap if n...
char * strdup(const char *)
Duplicate a null-terminated string into memory allocated from within the specified Root...