ucx/map.c

changeset 137
81a02ad99388
parent 136
b798f2eed26a
child 139
dddb9348ea42
equal deleted inserted replaced
136:b798f2eed26a 137:81a02ad99388
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) {

mercurial