aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 10:39:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 13:24:58 +0900
commit9001d54788568814a691a4f1dd86db47cf232e03 (patch)
tree5826bcc8bbcaefc162b3305556ba7e67c9c9b533 /st.c
parent725739d65bf2a3369467f3b8ef9f2a0a125a4084 (diff)
downloadruby-9001d54788568814a691a4f1dd86db47cf232e03.tar.gz
Expand `#ifdef RUBY` region
Include the functions which are only used for `rb_hash_bulk_insert_into_st_table`.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index b8ad6ab6c2..456e61a7d7 100644
--- a/st.c
+++ b/st.c
@@ -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)
{