From 9001d54788568814a691a4f1dd86db47cf232e03 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 17 Jun 2023 10:39:47 +0900 Subject: [PATCH] Expand `#ifdef RUBY` region Include the functions which are only used for `rb_hash_bulk_insert_into_st_table`. --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } +#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) {