Make hashtable less generic
This will make it possible to implement json_object_foreach(). It should also have some (positive) effect on speed.
This commit is contained in:
@@ -39,7 +39,7 @@ static void test_simple()
|
||||
json_set_alloc_funcs(my_malloc, my_free);
|
||||
create_and_free_complex_object();
|
||||
|
||||
if(malloc_called != 27 || free_called != 27)
|
||||
if(malloc_called != 20 || free_called != 20)
|
||||
fail("Custom allocation failed");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user