yajl_alloc.h

Memory allocation macros for yajl.

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.

Author

Lloyd Hilaiel

Defines

YA_MALLOC(afs, sz)
YA_FREE(afs, ptr)
YA_REALLOC(afs, ptr, sz)

Functions

void yajl_set_default_alloc_funcs(yajl_alloc_funcs *yaf)