From c93b7404c1fe0995df074115806d2bea333610b1 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 20 Feb 2015 13:53:23 +0000 Subject: merge revision(s) 49386: hash.c: move Hash specific functions * hash.c (rb_ident_hash): move compare_by_identity specific function from st.c. * hash.c (rb_ident_hash_new): ditto from thread.c. * st.c (st_numhash): remove ruby's Hash specific implementation. * thread.c (recursive_list_access): use rb_ident_hash_new(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 186e6f884b..4da45a4712 100644 --- a/internal.h +++ b/internal.h @@ -704,6 +704,7 @@ struct st_table *rb_hash_tbl_raw(VALUE hash); VALUE rb_hash_has_key(VALUE hash, VALUE key); VALUE rb_hash_set_default_proc(VALUE hash, VALUE proc); long rb_objid_hash(st_index_t index); +VALUE rb_ident_hash_new(void); st_table *rb_init_identtable(void); st_table *rb_init_identtable_with_size(st_index_t size); @@ -957,9 +958,6 @@ extern int ruby_enable_coredump; int rb_get_next_signal(void); int rb_sigaltstack_size(void); -/* st.c */ -extern const struct st_hash_type st_hashtype_num; - /* strftime.c */ #ifdef RUBY_ENCODING_H size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc, -- cgit v1.2.3