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_a(size, NULL); |
35 return ucx_map_new_a(NULL, size); |
36 } |
36 } |
37 |
37 |
38 UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator) { |
38 UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size) { |
39 if(size == 0) { |
39 if(size == 0) { |
40 size = 16; |
40 size = 16; |
41 } |
41 } |
42 |
42 |
43 if(!allocator) { |
43 if(!allocator) { |