| 430 map->base.cl = &cx_hash_map_class; |
430 map->base.cl = &cx_hash_map_class; |
| 431 map->base.collection.allocator = allocator; |
431 map->base.collection.allocator = allocator; |
| 432 |
432 |
| 433 if (itemsize > 0) { |
433 if (itemsize > 0) { |
| 434 map->base.collection.elem_size = itemsize; |
434 map->base.collection.elem_size = itemsize; |
| 435 map->base.collection.advanced_cmp = cx_acmp_memcmp; |
435 map->base.collection.advanced_cmp = cx_ccmp_memcmp; |
| 436 map->base.collection.cmp_data = &map->base.collection.elem_size; |
436 map->base.collection.cmp_data = &map->base.collection.elem_size; |
| 437 } else { |
437 } else { |
| 438 map->base.collection.elem_size = sizeof(void *); |
438 map->base.collection.elem_size = sizeof(void *); |
| 439 map->base.collection.store_pointer = true; |
439 map->base.collection.store_pointer = true; |
| 440 map->base.collection.simple_cmp = cx_cmp_ptr; |
440 map->base.collection.simple_cmp = cx_cmp_ptr; |