diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-20 07:17:55 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-20 07:17:55 +0000 |
commit | 2a70f68c05118775da45e630a96e89f6f57ceb39 (patch) | |
tree | 9aeaa9cd0198e44b88fdba51609b1bce75041bf3 /internal.h | |
parent | fe8475d7df29e5b4775272754ba1989ac9a842a4 (diff) |
hide iseq operand object for duphash. [Bug #15440]
* compile.c (compile_array): hide source Hash object.
* hash.c (rb_hash_resurrect): introduced to dup Hash object
using rb_cHash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 1aad0c85a0..b62feb9cf1 100644 --- a/internal.h +++ b/internal.h @@ -1573,6 +1573,7 @@ VALUE rb_hash_key_str(VALUE); VALUE rb_hash_keys(VALUE hash); VALUE rb_hash_values(VALUE hash); VALUE rb_hash_rehash(VALUE hash); +VALUE rb_hash_resurrect(VALUE hash); int rb_hash_add_new_element(VALUE hash, VALUE key, VALUE val); VALUE rb_hash_set_pair(VALUE hash, VALUE pair); void rb_hash_bulk_insert(long, const VALUE *, VALUE); |