src/hash_map.c

changeset 989
8aa57a7fecc4
parent 962
cd418898af5c
equal deleted inserted replaced
988:15b3ca7ee33f 989:8aa57a7fecc4
390 CxMap *cxHashMapCreate( 390 CxMap *cxHashMapCreate(
391 const CxAllocator *allocator, 391 const CxAllocator *allocator,
392 size_t itemsize, 392 size_t itemsize,
393 size_t buckets 393 size_t buckets
394 ) { 394 ) {
395 if (allocator == NULL) {
396 allocator = cxDefaultAllocator;
397 }
398
395 if (buckets == 0) { 399 if (buckets == 0) {
396 // implementation defined default 400 // implementation defined default
397 buckets = 16; 401 buckets = 16;
398 } 402 }
399 403

mercurial