diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-12-17 15:57:54 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-12-17 15:59:42 +0900 |
| commit | e65d42644afc11c15d5eaf5553c97e575020681f (patch) | |
| tree | d485261a223c73a9ea3d1c8cbb060c806b2fefa1 | |
| parent | e690314525d3ebfa23eda9f2cacfff37bd53482a (diff) | |
| download | mruby-e65d42644afc11c15d5eaf5553c97e575020681f.tar.gz mruby-e65d42644afc11c15d5eaf5553c97e575020681f.zip | |
Remove `#include <mruby/khash.h>` from `mruby/hash.h`.
| -rw-r--r-- | include/mruby/hash.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/mruby/hash.h b/include/mruby/hash.h index ce51b2016..7e2ed5596 100644 --- a/include/mruby/hash.h +++ b/include/mruby/hash.h @@ -8,7 +8,6 @@ #define MRUBY_HASH_H #include "common.h" -#include <mruby/khash.h> /** * Hash class @@ -198,15 +197,13 @@ MRB_API mrb_value mrb_hash_dup(mrb_state *mrb, mrb_value hash); */ MRB_API void mrb_hash_merge(mrb_state *mrb, mrb_value hash1, mrb_value hash2); -/* declaration of struct kh_ht */ +/* declaration of struct mrb_hash_value */ /* be careful when you touch the internal */ typedef struct { mrb_value v; mrb_int n; } mrb_hash_value; -KHASH_DECLARE(ht, mrb_value, mrb_hash_value, TRUE) - /* RHASH_TBL allocates st_table if not available. */ #define RHASH(obj) ((struct RHash*)(mrb_ptr(obj))) #define RHASH_TBL(h) (RHASH(h)->ht) |
