cJSON.c: Pass allocation functions through internal functions
This is the first step in removing the global allocator functions. Every internal function now only accesses its locally available set of allocators.
This commit is contained in:
@@ -44,7 +44,7 @@ static void assert_is_value(cJSON *value_item, int type)
|
||||
|
||||
static void assert_parse_value(const char *string, int type)
|
||||
{
|
||||
TEST_ASSERT_NOT_NULL(parse_value(item, (const unsigned char*)string, &error_pointer));
|
||||
TEST_ASSERT_NOT_NULL(parse_value(item, (const unsigned char*)string, &error_pointer, &global_hooks));
|
||||
assert_is_value(item, type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user