Home
last modified time | relevance | path

Searched refs:global_hooks (Results 1 - 12 of 12) sorted by relevance

/third_party/cJSON/
H A DcJSON.c198 static internal_hooks global_hooks = { internal_malloc, internal_free, internal_realloc }; variable
226 global_hooks.allocate = malloc; in cJSON_InitHooks()
227 global_hooks.deallocate = free; in cJSON_InitHooks()
228 global_hooks.reallocate = realloc; in cJSON_InitHooks()
232 global_hooks.allocate = malloc; in cJSON_InitHooks()
235 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()
238 global_hooks.deallocate = free; in cJSON_InitHooks()
241 global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()
245 global_hooks.reallocate = NULL; in cJSON_InitHooks()
246 if ((global_hooks in cJSON_InitHooks()
[all...]
/third_party/cJSON/tests/
H A Dprint_object.c41 parsebuffer.hooks = global_hooks; in assert_print_object()
48 formatted_buffer.hooks = global_hooks; in assert_print_object()
55 unformatted_buffer.hooks = global_hooks; in assert_print_object()
H A Dprint_array.c40 parsebuffer.hooks = global_hooks; in assert_print_array()
47 formatted_buffer.hooks = global_hooks; in assert_print_array()
54 unformatted_buffer.hooks = global_hooks; in assert_print_array()
H A Dparse_string.c51 buffer.hooks = global_hooks; in assert_parse_string()
56 global_hooks.deallocate(item->valuestring); in assert_parse_string()
65 buffer.hooks = global_hooks; in assert_not_parse_string()
H A Dprint_value.c41 buffer.hooks = global_hooks; in assert_print_value()
45 parsebuffer.hooks = global_hooks; in assert_print_value()
H A Dparse_array.c50 buffer.hooks = global_hooks; in assert_not_array()
61 buffer.hooks = global_hooks; in assert_parse_array()
H A Dcommon.h36 global_hooks.deallocate(item->valuestring); in reset()
40 global_hooks.deallocate(item->string); in reset()
H A Dparse_object.c58 parsebuffer.hooks = global_hooks; in assert_not_object()
70 parsebuffer.hooks = global_hooks; in assert_parse_object()
H A Dprint_number.c37 buffer.hooks = global_hooks; in assert_print_int64_number()
57 buffer.hooks = global_hooks; in assert_print_number()
H A Dprint_string.c35 buffer.hooks = global_hooks; in assert_print_string()
H A Dparse_value.c49 buffer.hooks = global_hooks; in assert_parse_value()
H A Dmisc_tests.c490 buffer.hooks = global_hooks; in skip_utf8_bom_should_skip_bom()
502 buffer.hooks = global_hooks; in skip_utf8_bom_should_not_skip_bom_if_not_at_beginning()
602 char *name = (char *)cJSON_strdup((const unsigned char *)"number", &global_hooks); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()

Completed in 7 milliseconds