Lines Matching refs:cJSON_malloc
42 static void *(*cJSON_malloc)(size_t sz) = malloc; variable
50 if (!(copy = (char *)cJSON_malloc(len))) in cJSON_strdup()
58 cJSON_malloc = malloc; in cJSON_InitHooks()
63 cJSON_malloc = (hooks->malloc_fn) ? hooks->malloc_fn : malloc; in cJSON_InitHooks()
69 cJSON *node = (cJSON *)cJSON_malloc(sizeof(cJSON)); in cJSON_New_Item()
163 newbuffer = (char *)cJSON_malloc(newsize); in ensure()
193 str = (char *)cJSON_malloc(2); /* special case for 0. */ in print_number()
201 str = (char *)cJSON_malloc( in print_number()
209 str = (char *)cJSON_malloc(64); /* This is a nice tradeoff. */ in print_number()
283 out = (char *)cJSON_malloc( in parse_string()
386 out = (char *)cJSON_malloc(len + 3); in print_string_ptr()
401 out = (char *)cJSON_malloc(3); in print_string_ptr()
419 out = (char *)cJSON_malloc(len + 3); in print_string_ptr()
523 p.buffer = (char *)cJSON_malloc(prebuffer); in cJSON_PrintBuffered()
685 out = (char *)cJSON_malloc(3); in print_array()
724 entries = (char **)cJSON_malloc(numentries * sizeof(char *)); in print_array()
742 out = (char *)cJSON_malloc(len); in print_array()
853 out = (char *)cJSON_malloc(fmt ? depth + 4 : 3); in print_object()
928 entries = (char **)cJSON_malloc(numentries * sizeof(char *)); in print_object()
931 names = (char **)cJSON_malloc(numentries * sizeof(char *)); in print_object()
956 out = (char *)cJSON_malloc(len); in print_object()