EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
yajl_alloc.h File Reference

Memory allocation macros for yajl. More...

#include "yajl_common.h"
Include dependency graph for yajl_alloc.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)
 

Detailed Description

Author
Lloyd Hilaiel

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.