diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-06-17 10:39:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-06-17 13:24:58 +0900 |
commit | 9001d54788568814a691a4f1dd86db47cf232e03 (patch) | |
tree | 5826bcc8bbcaefc162b3305556ba7e67c9c9b533 /st.c | |
parent | 725739d65bf2a3369467f3b8ef9f2a0a125a4084 (diff) |
Expand `#ifdef RUBY` region
Include the functions which are only used for
`rb_hash_bulk_insert_into_st_table`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7949
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2061,6 +2061,7 @@ st_numhash(st_data_t n) return (st_index_t)((n>>s1|(n<<s2)) ^ (n>>s2)); } +#ifdef RUBY /* Expand TAB to be suitable for holding SIZ entries in total. Pre-existing entries remain not deleted inside of TAB, but its bins are cleared to expect future reconstruction. See rehash below. */ @@ -2200,7 +2201,6 @@ st_rehash(st_table *tab) } while (rebuilt_p); } -#ifdef RUBY static st_data_t st_stringify(VALUE key) { |