ruby-changes:51282
From: naruse <ko1@a...>
Date: Tue, 22 May 2018 16:31:43 +0900 (JST)
Subject: [ruby-changes:51282] naruse:r63488 (trunk): export rb_hash_bulk_insert
naruse 2018-05-22 16:31:36 +0900 (Tue, 22 May 2018) New Revision: 63488 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63488 Log: export rb_hash_bulk_insert msgpack-ruby requests this function public because they want to create a hash with bulk key value pairs. Modified files: trunk/include/ruby/st.h trunk/internal.h Index: include/ruby/st.h =================================================================== --- include/ruby/st.h (revision 63487) +++ include/ruby/st.h (revision 63488) @@ -143,6 +143,8 @@ CONSTFUNC(st_index_t st_hash_end(st_inde https://github.com/ruby/ruby/blob/trunk/include/ruby/st.h#L143 CONSTFUNC(st_index_t st_hash_start(st_index_t h)); #define st_hash_start(h) ((st_index_t)(h)) +void rb_hash_bulk_insert(long, const VALUE *, VALUE); + RUBY_SYMBOL_EXPORT_END #if defined(__cplusplus) Index: internal.h =================================================================== --- internal.h (revision 63487) +++ internal.h (revision 63488) @@ -1736,9 +1736,6 @@ int rb_match_nth_defined(int nth, VALUE https://github.com/ruby/ruby/blob/trunk/internal.h#L1736 extern int ruby_enable_coredump; int rb_get_next_signal(void); -/* st.c */ -extern void rb_hash_bulk_insert(long, const VALUE *, VALUE); - /* strftime.c */ #ifdef RUBY_ENCODING_H VALUE rb_strftime_timespec(const char *format, size_t format_len, rb_encoding *enc, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/