mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-03-07 07:57:28 +00:00
And some more...
This commit is contained in:
parent
4a78269815
commit
ff1e691c3b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user