diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-01 01:18:20 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-01 01:18:20 +0900 |
| commit | 3c80a5e2bf279d6ffc934d821885f5904f1baf7d (patch) | |
| tree | abb0c1652815c7376a673d4209c38b34765bc13c | |
| parent | ae9d9a07811c0becbf4f435dcaa2a57ff8cdb050 (diff) | |
| download | mruby-3c80a5e2bf279d6ffc934d821885f5904f1baf7d.tar.gz mruby-3c80a5e2bf279d6ffc934d821885f5904f1baf7d.zip | |
add inline to KHASH_INIT functions
| -rw-r--r-- | src/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c index 28e718c0d..371ac777a 100644 --- a/src/hash.c +++ b/src/hash.c @@ -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); |
