Expand #ifdef RUBY
region
Include the functions which are only used for `rb_hash_bulk_insert_into_st_table`.
This commit is contained in:
parent
725739d65b
commit
9001d54788
Notes:
git
2023-06-17 06:45:25 +00:00
2
st.c
2
st.c
@ -2061,6 +2061,7 @@ st_numhash(st_data_t n)
|
|||||||
return (st_index_t)((n>>s1|(n<<s2)) ^ (n>>s2));
|
return (st_index_t)((n>>s1|(n<<s2)) ^ (n>>s2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RUBY
|
||||||
/* Expand TAB to be suitable for holding SIZ entries in total.
|
/* Expand TAB to be suitable for holding SIZ entries in total.
|
||||||
Pre-existing entries remain not deleted inside of TAB, but its bins
|
Pre-existing entries remain not deleted inside of TAB, but its bins
|
||||||
are cleared to expect future reconstruction. See rehash below. */
|
are cleared to expect future reconstruction. See rehash below. */
|
||||||
@ -2200,7 +2201,6 @@ st_rehash(st_table *tab)
|
|||||||
} while (rebuilt_p);
|
} while (rebuilt_p);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef RUBY
|
|
||||||
static st_data_t
|
static st_data_t
|
||||||
st_stringify(VALUE key)
|
st_stringify(VALUE key)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user