diff options
Diffstat (limited to 'khash.h')
-rw-r--r-- | khash.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -26,8 +26,7 @@ #ifndef __AC_KHASH_H #define __AC_KHASH_H -#include "cache.h" -#include "hashmap.h" +#include "hash.h" #define AC_VERSION_KHASH_H "0.2.8" @@ -62,7 +61,7 @@ static inline khint_t __ac_X31_hash_string(const char *s) static const double __ac_HASH_UPPER = 0.77; #define __KHASH_TYPE(name, khkey_t, khval_t) \ - typedef struct { \ + typedef struct kh_##name { \ khint_t n_buckets, size, n_occupied, upper_bound; \ khint32_t *flags; \ khkey_t *keys; \ |