Commit 3c80a5e2 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

add inline to KHASH_INIT functions

parent ae9d9a07
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <stdio.h> #include <stdio.h>
static khint_t static inline khint_t
mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
{ {
char type = mrb_type(key); char type = mrb_type(key);
...@@ -28,7 +28,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value 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)); 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) mrb_hash_ht_hash_equal(mrb_state *mrb, mrb_value a, mrb_value b)
{ {
return mrb_equal(mrb, a, b); return mrb_equal(mrb, a, b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment