diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-22 07:31:36 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-22 07:31:36 +0000 |
commit | b60487e1283c61a67670d93286b2ca82e6ffd34f (patch) | |
tree | 22a097222dcd126f597cc6c394b74fbd34af81f3 | |
parent | 17acbfbaa5d9601686f6a49433c04b0eb6c3b11b (diff) | |
download | ruby-b60487e1283c61a67670d93286b2ca82e6ffd34f.tar.gz |
export rb_hash_bulk_insert
msgpack-ruby requests this function public because they want to
create a hash with bulk key value pairs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | include/ruby/st.h | 2 | ||||
-rw-r--r-- | internal.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h index 47e14a3e2c..ede3ff4456 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -143,6 +143,8 @@ CONSTFUNC(st_index_t st_hash_end(st_index_t h)); 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) diff --git a/internal.h b/internal.h index b6b8839978..0d71dce5e2 100644 --- a/internal.h +++ b/internal.h @@ -1736,9 +1736,6 @@ int rb_match_nth_defined(int nth, VALUE match); 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, |