And some more...

This commit is contained in:
theraven 2011-05-29 14:38:14 +00:00
parent 4a78269815
commit ff1e691c3b

View File

@ -126,18 +126,9 @@ struct PREFIX(_table_cell_struct) *PREFIX(alloc_cells)(PREFIX(_table) *table, in
# endif
}
static void PREFIX(delete_table)(void *table, void *unused)
{
fprintf(stderr, "finalizing table %p\n", table);
}
PREFIX(_table) *PREFIX(_create)(uint32_t capacity)
{
PREFIX(_table) *table = CALLOC(1, sizeof(PREFIX(_table)));
fprintf(stderr, "Allocated hash table %p \n", table);
#ifdef ENABLE_GC
GC_REGISTER_FINALIZER_NO_ORDER(table, PREFIX(delete_table), 0, 0, 0);
#endif
# ifndef MAP_TABLE_NO_LOCK
INIT_LOCK(table->lock);
# endif