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:
Petri Lehtinen
2012-01-24 20:36:31 +02:00
parent 5eb2c442a9
commit a2381948bb
7 changed files with 98 additions and 219 deletions

View File

@@ -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");
}