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>
33void* sql_alloc(
size_t Size)
35 return current_mem_root()->
alloc(Size);
38void* sql_calloc(
size_t size)
40 return current_mem_root()->calloc(size);
43char* sql_strdup(
const char* str)
45 return current_mem_root()->
strdup(str);
48char* sql_strdup(str_ref str)
50 return current_mem_root()->
strdup(str);
53void* sql_memdup(
const void* ptr,
size_t len)
55 return current_mem_root()->
memdup(ptr, len);
unsigned char * alloc(size_t Size)
Allocate a chunk of memory from the Root structure provided, obtaining more memory from the heap if n...
void * memdup(const void *, size_t)
Duplicate the provided block into memory allocated from within the specified Root.
char * strdup(const char *)
Duplicate a null-terminated string into memory allocated from within the specified Root.
TODO: Rename this file - func.h is stupid.