diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-21 16:27:16 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-21 16:27:16 +0900 |
| commit | 766ae4ee5f99ea96dac166a3dfa0791baa77f353 (patch) | |
| tree | e29f539dfb5dffbcf7c5dd93b5111d155309957c | |
| parent | 9936ce997cbfa9560f792994e2a8f5e45eb6fdef (diff) | |
| download | mruby-766ae4ee5f99ea96dac166a3dfa0791baa77f353.tar.gz mruby-766ae4ee5f99ea96dac166a3dfa0791baa77f353.zip | |
dislose mrb_hash_keys; close #304
| -rw-r--r-- | include/mruby/hash.h | 1 | ||||
| -rw-r--r-- | src/hash.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/hash.h b/include/mruby/hash.h index e7162c3ab..7a16d7b5a 100644 --- a/include/mruby/hash.h +++ b/include/mruby/hash.h @@ -27,6 +27,7 @@ void mrb_hash_set(mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value val); mrb_value mrb_hash_get(mrb_state *mrb, mrb_value hash, mrb_value key); mrb_value mrb_hash_fetch(mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value def); mrb_value mrb_hash_delete_key(mrb_state *mrb, mrb_value hash, mrb_value key); +mrb_value mrb_hash_keys(mrb_state *mrb, mrb_value hash); mrb_value mrb_hash(mrb_state *mrb, mrb_value obj); mrb_value mrb_check_hash_type(mrb_state *mrb, mrb_value self); diff --git a/src/hash.c b/src/hash.c index 7b9ae6a8a..0e06cd246 100644 --- a/src/hash.c +++ b/src/hash.c @@ -965,7 +965,7 @@ mrb_hash_to_hash(mrb_state *mrb, mrb_value hash) * */ -static mrb_value +mrb_value mrb_hash_keys(mrb_state *mrb, mrb_value hash) { khash_t(ht) *h = RHASH_TBL(hash); |
