ucx/map.c

changeset 136
b798f2eed26a
parent 116
234920008754
child 137
81a02ad99388
child 138
7800811078b8
equal deleted inserted replaced
135:a0aa1c15f46b 136:b798f2eed26a
30 #include <string.h> 30 #include <string.h>
31 31
32 #include "map.h" 32 #include "map.h"
33 33
34 UcxMap *ucx_map_new(size_t size) { 34 UcxMap *ucx_map_new(size_t size) {
35 return ucx_map_new_allocator(size, NULL); 35 return ucx_map_new_a(size, NULL);
36 } 36 }
37 37
38 UcxMap *ucx_map_new_allocator(size_t size, UcxAllocator *allocator) { 38 UcxMap *ucx_map_new_a(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) {

mercurial