![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Memory allocation macros for yajl. More...
#include "yajl_common.h"
Go to the source code of this file.
Macros | |
#define | YA_MALLOC(afs, sz) (afs)->malloc((afs)->ctx, (sz)) |
#define | YA_FREE(afs, ptr) (afs)->free((afs)->ctx, (ptr)) |
#define | YA_REALLOC(afs, ptr, sz) (afs)->realloc((afs)->ctx, (ptr), (sz)) |
Functions | |
YAJL_API void | yajl_set_default_alloc_funcs (yajl_alloc_funcs *yaf) |
Memory allocation macros for yajl.
default memory allocation routines for yajl which use malloc/realloc and free
These macros are used inside YAJL instead of directly calling malloc(), realloc() or free(). They call the equivalent method in their yajl_alloc_funcs parameter afs.
Definition in file yajl_alloc.h.
#define YA_FREE | ( | afs, | |
ptr | |||
) | (afs)->free((afs)->ctx, (ptr)) |
Definition at line 33 of file yajl_alloc.h.
#define YA_MALLOC | ( | afs, | |
sz | |||
) | (afs)->malloc((afs)->ctx, (sz)) |
Definition at line 32 of file yajl_alloc.h.
#define YA_REALLOC | ( | afs, | |
ptr, | |||
sz | |||
) | (afs)->realloc((afs)->ctx, (ptr), (sz)) |
Definition at line 34 of file yajl_alloc.h.
YAJL_API void yajl_set_default_alloc_funcs | ( | yajl_alloc_funcs * | yaf | ) |
Definition at line 43 of file yajl_alloc.c.