add inline to KHASH_INIT functions

This commit is contained in:
Yukihiro Matsumoto
2012-06-01 01:18:20 +09:00
parent ae9d9a0781
commit 3c80a5e2bf
+2 -2
View File
@@ -18,7 +18,7 @@
#include <stdio.h>
static khint_t
static inline khint_t
mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
{
char type = mrb_type(key);
@@ -28,7 +28,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
return kh_str_hash_func(mrb, RSTRING_PTR(s1));
}
static khint_t
static inline khint_t
mrb_hash_ht_hash_equal(mrb_state *mrb, mrb_value a, mrb_value b)
{
return mrb_equal(mrb, a, b);