summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 12:46:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 12:46:38 +0900
commit725b3ca5a74023947d10049eb54576163a781098 (patch)
tree19c3d032644490d9d67b8a1f89fca37339042944 /src/hash.c
parent7c82bfa7fe17ef7b44d55f058bb4be14eb7e62e0 (diff)
downloadmruby-725b3ca5a74023947d10049eb54576163a781098.tar.gz
mruby-725b3ca5a74023947d10049eb54576163a781098.zip
move KHASH_DECLARE(ht..) to mruby/hash.h; close #3073
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/hash.c b/src/hash.c
index ac7256987..7712cd467 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -91,12 +91,6 @@ mrb_hash_ht_hash_equal(mrb_state *mrb, mrb_value a, mrb_value b)
}
}
-typedef struct {
- mrb_value v;
- mrb_int n;
-} mrb_hash_value;
-
-KHASH_DECLARE(ht, mrb_value, mrb_hash_value, TRUE)
KHASH_DEFINE (ht, mrb_value, mrb_hash_value, TRUE, mrb_hash_ht_hash_func, mrb_hash_ht_hash_equal)
static void mrb_hash_modify(mrb_state *mrb, mrb_value hash);