30 const char * statStr =
"unknown";
33 statStr =
"ok, no error";
36 statStr =
"client canceled parse";
39 statStr =
"parse error";
97 if (va_arg(ap,
int)) h->
flags |= opt;
98 else h->
flags &= ~opt;
161 const unsigned char * jsonText,
size_t jsonTextLen)
#define YA_MALLOC(afs, sz)
void yajl_free(yajl_handle handle)
#define YA_FREE(afs, ptr)
unsigned char * yajl_get_error(yajl_handle hand, int verbose, const unsigned char *jsonText, size_t jsonTextLen)
#define yajl_bs_push(obs, byte)
yajl_buf yajl_buf_alloc(yajl_alloc_funcs *alloc)
int yajl_config(yajl_handle h, yajl_option opt,...)
Memory allocation macros for yajl.
void yajl_set_default_alloc_funcs(yajl_alloc_funcs *yaf)
unsigned char * yajl_render_error_string(yajl_handle hand, const unsigned char *jsonText, size_t jsonTextLen, int verbose)
yajl_status yajl_do_parse(yajl_handle hand, const unsigned char *jsonText, size_t jsonTextLen)
#define yajl_bs_free(obs)
yajl_realloc_func realloc
Interface to YAJL's JSON stream parsing facilities.
const char * yajl_status_to_string(yajl_status stat)
#define yajl_bs_init(obs, _yaf)
yajl_lexer yajl_lex_alloc(yajl_alloc_funcs *alloc, unsigned int allowComments, unsigned int validateUTF8)
void yajl_free_error(yajl_handle hand, unsigned char *str)
void yajl_buf_free(yajl_buf buf)
yajl_handle yajl_alloc(const yajl_callbacks *callbacks, yajl_alloc_funcs *afs, void *ctx)
yajl_status yajl_parse(yajl_handle hand, const unsigned char *jsonText, size_t jsonTextLen)
yajl_status yajl_do_finish(yajl_handle hand)
struct yajl_handle_t * yajl_handle
yajl_status yajl_complete_parse(yajl_handle hand)
void yajl_lex_free(yajl_lexer lxr)
const yajl_callbacks * callbacks
size_t yajl_get_bytes_consumed(yajl_handle hand)
yajl_bytestack stateStack