Ruby 4.1.0dev (2026-09-26 revision 57213d44ce7b1a31fc9648e9cd5eb0c4507f4a49)
st.h
1#ifndef INTERNAL_ST_H
2#define INTERNAL_ST_H
3
4#include "ruby/st.h"
5
6st_table *rb_st_replace(st_table *new_tab, st_table *old_tab);
7#define st_replace rb_st_replace
8st_table *rb_st_init_existing_table_with_size(st_table *tab, const struct st_hash_type *type, st_index_t size);
9#define st_init_existing_table_with_size rb_st_init_existing_table_with_size
10
11st_table *rb_st_init_existing_numtable_with_size(st_table *tab, st_index_t size);
12#define st_init_existing_numtable_with_size rb_st_init_existing_numtable_with_size
13
14st_table *rb_st_init_existing_strtable_with_size(st_table *tab, st_index_t size);
15#define st_init_existing_strtable_with_size rb_st_init_existing_strtable_with_size
16
17size_t rb_st_allocated_memsize(const st_table *tab);
18#define st_allocated_memsize rb_st_allocated_memsize
19
20void rb_st_free_embedded_table(st_table *tab);
21#define st_free_embedded_table rb_st_free_embedded_table
22
23int rb_st_insert_no_rebuild(st_table *tab, st_data_t key, st_data_t value);
24#define st_insert_no_rebuild rb_st_insert_no_rebuild
25
26typedef int st_foreach_with_hash_callback_func(st_data_t, st_data_t, st_data_t, st_data_t);
27int rb_st_foreach_with_hash(st_table *, st_foreach_with_hash_callback_func *, st_data_t);
28#define st_foreach_with_hash rb_st_foreach_with_hash
29#endif
Definition st.h:79