diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-04 02:21:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-04 02:21:53 +0000 |
commit | 2d4b0d626170c2dada457ea3d11d1d6732775db4 (patch) | |
tree | 7eef99474c246405218d57d69e1f5041870a8cf2 /include/ruby | |
parent | 5c6b43d91eadb3e9aa96ef8b2ff5a244081e30f0 (diff) | |
download | ruby-2d4b0d626170c2dada457ea3d11d1d6732775db4.tar.gz |
* hash.c (rb_hash_update_by): new API for Hash#update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index b18a1f542b..d1224334f7 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -436,6 +436,8 @@ VALUE rb_hash_fetch(VALUE, VALUE); VALUE rb_hash_aset(VALUE, VALUE, VALUE); VALUE rb_hash_delete_if(VALUE); VALUE rb_hash_delete(VALUE,VALUE); +typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value); +VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func); struct st_table *rb_hash_tbl(VALUE); int rb_path_check(const char*); int rb_env_path_tainted(void); |