]> git.kaiwu.me - klib.git/commitdiff
give kh_##name##_t a struct name
authorHeng Li <lh3@me.com>
Sat, 29 Nov 2014 02:04:38 +0000 (21:04 -0500)
committerHeng Li <lh3@me.com>
Sat, 29 Nov 2014 02:04:38 +0000 (21:04 -0500)
khash.h

diff --git a/khash.h b/khash.h
index d3b461fa2323140cb8937d15288a81a9dc5d0c0f..5e55088b2ac125fb52d38d76df9681a1decf6acd 100644 (file)
--- a/khash.h
+++ b/khash.h
@@ -184,7 +184,7 @@ typedef khint_t khiter_t;
 static const double __ac_HASH_UPPER = 0.77;
 
 #define __KHASH_TYPE(name, khkey_t, khval_t) \
-       typedef struct { \
+       typedef struct kh_##name##_s { \
                khint_t n_buckets, size, n_occupied, upper_bound; \
                khint32_t *flags; \
                khkey_t *keys; \