Go to the documentation of this file.
17 #ifndef __YAJL_COMMON_H__
18 #define __YAJL_COMMON_H__
26 #define YAJL_MAX_DEPTH 128
31 #if (defined(_WIN32) || defined(WIN32)) && defined(YAJL_SHARED)
33 # define YAJL_API __declspec(dllexport)
35 # define YAJL_API __declspec(dllimport)
38 # if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
39 # define YAJL_API __attribute__ ((visibility("default")))
47 typedef void * (*yajl_malloc_func)(
void *ctx,
size_t sz);
54 typedef void * (*yajl_realloc_func)(
void *ctx,
void * ptr,
size_t sz);