Expand #ifdef RUBY region

Include the functions which are only used for
`rb_hash_bulk_insert_into_st_table`.
This commit is contained in:
Nobuyoshi Nakada 2023-06-17 10:39:47 +09:00
parent 725739d65b
commit 9001d54788
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
Notes: git 2023-06-17 06:45:25 +00:00

2
st.c
View File

@ -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)
{