Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "ruby/defines.h"
Go to the source code of this file.
Data Structures | |
struct | st_hash_type |
struct | st_table |
Typedefs | |
typedef unsigned long | st_data_t |
typedef struct st_table | st_table |
typedef st_data_t | st_index_t |
typedef int | st_compare_func(st_data_t, st_data_t) |
typedef st_index_t | st_hash_func(st_data_t) |
typedef char | st_check_for_sizeof_st_index_t[SIZEOF_VOIDP==(int) sizeof(st_index_t) ? 1 :-1] |
typedef struct st_table_entry | st_table_entry |
typedef int | st_update_callback_func(st_data_t *key, st_data_t *value, st_data_t arg, int existing) |
typedef int | st_foreach_callback_func(st_data_t, st_data_t, st_data_t) |
typedef int | st_foreach_check_callback_func(st_data_t, st_data_t, st_data_t, int) |
Enumerations | |
enum | st_retval { ST_CONTINUE , ST_STOP , ST_DELETE , ST_CHECK , ST_REPLACE } |
#define MAX_ST_INDEX_VAL (~(st_index_t) 0) |
#define st_add_direct rb_st_add_direct |
#define st_cleanup_safe rb_st_cleanup_safe |
#define st_clear rb_st_clear |
#define st_copy rb_st_copy |
#define st_delete rb_st_delete |
#define st_delete_safe rb_st_delete_safe |
#define st_foreach rb_st_foreach |
#define st_foreach_check rb_st_foreach_check |
#define st_foreach_with_replace rb_st_foreach_with_replace |
#define st_free_table rb_st_free_table |
#define st_get_key rb_st_get_key |
#define st_hash rb_st_hash |
#define st_hash_end rb_st_hash_end |
#define st_hash_start | ( | h | ) | ((st_index_t)(h)) |
#define st_hash_uint rb_st_hash_uint |
#define st_hash_uint32 rb_st_hash_uint32 |
#define ST_INDEX_BITS (SIZEOF_ST_INDEX_T * CHAR_BIT) |
#define st_init_numtable | ( | void | ) | rb_st_init_numtable |
#define st_init_numtable_with_size rb_st_init_numtable_with_size |
#define st_init_strcasetable | ( | void | ) | rb_st_init_strcasetable |
#define st_init_strcasetable_with_size rb_st_init_strcasetable_with_size |
#define st_init_strtable | ( | void | ) | rb_st_init_strtable |
#define st_init_strtable_with_size rb_st_init_strtable_with_size |
#define st_init_table rb_st_init_table |
#define st_init_table_with_size rb_st_init_table_with_size |
#define st_insert rb_st_insert |
#define st_insert2 rb_st_insert2 |
#define st_keys rb_st_keys |
#define st_keys_check rb_st_keys_check |
#define st_locale_insensitive_strcasecmp rb_st_locale_insensitive_strcasecmp |
#define st_locale_insensitive_strncasecmp rb_st_locale_insensitive_strncasecmp |
#define st_lookup rb_st_lookup |
#define st_memsize rb_st_memsize |
#define st_numcmp rb_st_numcmp |
#define st_numhash rb_st_numhash |
#define st_shift rb_st_shift |
#define st_strcasecmp rb_st_locale_insensitive_strcasecmp |
#define st_strncasecmp rb_st_locale_insensitive_strncasecmp |
#define st_update rb_st_update |
#define st_values rb_st_values |
#define st_values_check rb_st_values_check |
typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP==(int) sizeof(st_index_t) ? 1 :-1] |
typedef st_index_t st_hash_func(st_data_t) |
typedef st_data_t st_index_t |
typedef struct st_table_entry st_table_entry |
enum st_retval |
Definition at line 2224 of file st.c.
References argc, argv, MAX_POWER2_FOR_TABLES_WITHOUT_BINS, RHASH_TBL_RAW, and UNLIKELY.
Referenced by rb_hash_bulk_insert().
void rb_st_clear | ( | st_table * | ) |
int rb_st_foreach | ( | st_table * | , |
st_foreach_callback_func * | , | ||
st_data_t | |||
) |
int rb_st_foreach_check | ( | st_table * | , |
st_foreach_check_callback_func * | , | ||
st_data_t | , | ||
st_data_t | |||
) |
int rb_st_foreach_with_replace | ( | st_table * | tab, |
st_foreach_check_callback_func * | func, | ||
st_update_callback_func * | replace, | ||
st_data_t | arg | ||
) |
void rb_st_free_table | ( | st_table * | ) |
st_index_t rb_st_hash | ( | const void * | ptr, |
size_t | len, | ||
st_index_t | h | ||
) |
st_index_t rb_st_hash_end | ( | st_index_t | h | ) |
st_index_t rb_st_hash_start | ( | st_index_t | h | ) |
st_index_t rb_st_hash_uint | ( | st_index_t | h, |
st_index_t | i | ||
) |
st_index_t rb_st_hash_uint32 | ( | st_index_t | h, |
uint32_t | i | ||
) |
st_table * rb_st_init_numtable | ( | void | ) |
st_table * rb_st_init_numtable_with_size | ( | st_index_t | ) |
st_table * rb_st_init_strcasetable | ( | void | ) |
st_table * rb_st_init_strcasetable_with_size | ( | st_index_t | ) |
st_table * rb_st_init_strtable | ( | void | ) |
st_table * rb_st_init_strtable_with_size | ( | st_index_t | ) |
st_table * rb_st_init_table | ( | const struct st_hash_type * | ) |
st_table * rb_st_init_table_with_size | ( | const struct st_hash_type * | , |
st_index_t | |||
) |
st_index_t rb_st_keys | ( | st_table * | table, |
st_data_t * | keys, | ||
st_index_t | size | ||
) |
st_index_t rb_st_keys_check | ( | st_table * | table, |
st_data_t * | keys, | ||
st_index_t | size, | ||
st_data_t | never | ||
) |
st_index_t rb_st_numhash | ( | st_data_t | ) |
int rb_st_update | ( | st_table * | table, |
st_data_t | key, | ||
st_update_callback_func * | func, | ||
st_data_t | arg | ||
) |
st_index_t rb_st_values | ( | st_table * | table, |
st_data_t * | values, | ||
st_index_t | size | ||
) |
st_index_t rb_st_values_check | ( | st_table * | table, |
st_data_t * | values, | ||
st_index_t | size, | ||
st_data_t | never | ||
) |