Files
advanced_C_standard_library/include/acl/hashmap.h

18 lines
564 B
C

#ifndef _acl_hashmap_h
#define _acl_hashmap_h
#include <stddef.h>
union acl_hashmap_meta {
void *dummy_ptr;
struct {
size_t bucketCount;
size_t sizeOneElement;
size_t keyBits;
};
};
/* set keySize to NULL for a dynamic keySize */
#define acl_hashmap_create_d union acl_hashmap_meta* acl_hashmap_create(size_t bucketCount, size_t sizeOneElement, size_t keySize)
acl_hashmap_create_d;
#define acl_hashmap_put_d void acl_hashmap_put(union acl_hashmap_meta *hashmap_meta, void *key, void *element)
acl_hashmap_put_d;
#endif