diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-12-15 14:49:45 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-12-25 10:41:12 -0500 |
commit | 824ff48adcd47497b8e2993be5144de0e09a4f66 (patch) | |
tree | 7e3b645b1845167ac69d4a851d36964a5f297525 /internal | |
parent | f4d2fe5e0d22876a6df68b9b56fb00b25d7aa5d8 (diff) | |
download | ruby-824ff48adcd47497b8e2993be5144de0e09a4f66.tar.gz |
Move internal ST functions to internal/st.h
st_replace and st_init_existing_table_with_size are functions used
internally in Ruby and should not be publicly visible.
Diffstat (limited to 'internal')
-rw-r--r-- | internal/st.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/st.h b/internal/st.h new file mode 100644 index 0000000000..a26b224505 --- /dev/null +++ b/internal/st.h @@ -0,0 +1,11 @@ +#ifndef INTERNAL_ST_H +#define INTERNAL_ST_H + +#include "include/ruby/st.h" + +st_table *rb_st_replace(st_table *new_tab, st_table *old_tab); +#define st_replace rb_st_replace +st_table *rb_st_init_existing_table_with_size(st_table *tab, const struct st_hash_type *type, st_index_t size); +#define st_init_existing_table_with_size rb_st_init_existing_table_with_size + +#endif |