Searched refs:global_hooks (Results 1 – 1 of 1) sorted by relevance
115 static internal_hooks global_hooks = { malloc, free, realloc }; variable142 global_hooks.allocate = malloc; in cJSON_InitHooks()143 global_hooks.deallocate = free; in cJSON_InitHooks()144 global_hooks.reallocate = realloc; in cJSON_InitHooks()148 global_hooks.allocate = malloc; in cJSON_InitHooks()151 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()154 global_hooks.deallocate = free; in cJSON_InitHooks()157 global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()161 global_hooks.reallocate = NULL; in cJSON_InitHooks()162 if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) in cJSON_InitHooks()[all …]