ucx/map.c

changeset 108
d2b1e67b2b48
parent 107
86b19c98b5fd
child 111
c8c59d7f4536
equal deleted inserted replaced
107:86b19c98b5fd 108:d2b1e67b2b48
37 37
38 UcxMap *ucx_map_new_allocator(size_t size, UcxAllocator *allocator) { 38 UcxMap *ucx_map_new_allocator(size_t size, UcxAllocator *allocator) {
39 if(size == 0) { 39 if(size == 0) {
40 size = 16; 40 size = 16;
41 } 41 }
42 42
43 if(!allocator) { 43 if(!allocator) {
44 allocator = ucx_default_allocator(); 44 allocator = ucx_default_allocator();
45 } 45 }
46 46
47 UcxMap *map = (UcxMap*)allocator->malloc(allocator->pool, sizeof(UcxMap)); 47 UcxMap *map = (UcxMap*)allocator->malloc(allocator->pool, sizeof(UcxMap));

mercurial