Searched refs:global_hooks (Results 1 – 2 of 2) sorted by relevance
175 global_hooks.allocate = malloc; in cJSON_InitHooks()176 global_hooks.deallocate = free; in cJSON_InitHooks()181 global_hooks.allocate = malloc; in cJSON_InitHooks()187 global_hooks.deallocate = free; in cJSON_InitHooks()194 global_hooks.reallocate = NULL; in cJSON_InitHooks()195 if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) in cJSON_InitHooks()232 global_hooks.deallocate(item); in cJSON_Delete()1017 buffer.hooks = global_hooks; in cJSON_ParseWithOpts()1181 p.hooks = global_hooks; in cJSON_PrintBuffered()1206 p.hooks = global_hooks; in cJSON_PrintPreallocated()[all …]
963 global_hooks.allocate = hooks->malloc_fn; in lite_cjson_init_hooks()964 global_hooks.deallocate = hooks->free_fn; in lite_cjson_init_hooks()1567 return (char *)print(item, true, &global_hooks); in lite_cjson_print()1572 return (char *)print(item, false, &global_hooks); in lite_cjson_print_unformatted()1585 global_hooks.deallocate(item->valuestring); in lite_cjson_delete()1588 global_hooks.deallocate(item->string); in lite_cjson_delete()1590 global_hooks.deallocate(item); in lite_cjson_delete()1711 lite_cjson_item_t *item = cJSON_New_Item(&global_hooks); in lite_cjson_create_null()1721 lite_cjson_item_t *item = cJSON_New_Item(&global_hooks); in lite_cjson_create_true()1731 lite_cjson_item_t *item = cJSON_New_Item(&global_hooks); in lite_cjson_create_false()[all …]
Completed in 10 milliseconds