diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-21 10:01:17 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-21 10:01:17 +0900 |
| commit | 78423105736d650e4136e7d44175059ce7ee7411 (patch) | |
| tree | a2ad84e377b9cb2da21c0601e42c0b10a0c71ea8 /src/hash.c | |
| parent | e61bdbe3960aa471a8b4e5d8a89614d1433959aa (diff) | |
| parent | cd68190480785430b8e350d9a5d2127ab04e1074 (diff) | |
| download | mruby-78423105736d650e4136e7d44175059ce7ee7411.tar.gz mruby-78423105736d650e4136e7d44175059ce7ee7411.zip | |
Merge branch 'modify_khash' of https://github.com/crimsonwoods/mruby into crimsonwoods-modify_khash
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index fe5336dc1..08f906800 100644 --- a/src/hash.c +++ b/src/hash.c @@ -31,7 +31,8 @@ mrb_hash_ht_hash_equal(mrb_state *mrb, mrb_value a, mrb_value b) return mrb_eql(mrb, a, b); } -KHASH_INIT(ht, mrb_value, mrb_value, 1, mrb_hash_ht_hash_func, mrb_hash_ht_hash_equal); +KHASH_DECLARE(ht, mrb_value, mrb_value, 1); +KHASH_DEFINE (ht, mrb_value, mrb_value, 1, mrb_hash_ht_hash_func, mrb_hash_ht_hash_equal); static void mrb_hash_modify(mrb_state *mrb, mrb_value hash); |
