8 #if defined(__cplusplus)
19 #if SIZEOF_LONG == SIZEOF_VOIDP
21 #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
24 # error ---->> st.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
26 #define ST_DATA_T_DEFINED
53 #define SIZEOF_ST_INDEX_T SIZEOF_VOIDP
60 #define ST_INDEX_BITS (sizeof(st_index_t) * CHAR_BIT)
62 #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR) && defined(HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P)
63 # define ST_DATA_COMPATIBLE_P(type) \
64 __builtin_choose_expr(__builtin_types_compatible_p(type, st_data_t), 1, 0)
66 # define ST_DATA_COMPATIBLE_P(type) 0
98 #define st_is_member(table,key) st_lookup((table),(key),(st_data_t *)0)
135 #define st_strcasecmp st_locale_insensitive_strcasecmp
136 #define st_strncasecmp st_locale_insensitive_strncasecmp
143 #define st_hash_start(h) ((st_index_t)(h))
147 #if defined(__cplusplus)
RUBY_SYMBOL_EXPORT_BEGIN typedef unsigned long st_data_t
st_index_t st_keys(st_table *table, st_data_t *keys, st_index_t size)
struct st_table::@106::@107 big
st_table * st_init_table_with_size(const struct st_hash_type *, st_index_t)
int st_lookup(st_table *, st_data_t, st_data_t *)
void st_add_direct(st_table *, st_data_t, st_data_t)
int st_shift(st_table *, st_data_t *, st_data_t *)
st_table * st_init_numtable(void)
SSL_METHOD *(* func)(void)
struct st_packed_entry * entries
int st_update_callback_func(st_data_t *key, st_data_t *value, st_data_t arg, int existing)
st_table * st_init_strcasetable(void)
int st_numcmp(st_data_t, st_data_t)
int st_insert2(st_table *, st_data_t, st_data_t, st_data_t(*)(st_data_t))
struct st_hash_type * type
char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP==(int) sizeof(st_index_t)?1:-1]
size_t st_memsize(const st_table *)
st_table * st_init_strtable(void)
st_index_t st_hash(const void *ptr, size_t len, st_index_t h)
unsigned int entries_packed
int st_update(st_table *table, st_data_t key, st_update_callback_func *func, st_data_t arg)
int st_delete(st_table *, st_data_t *, st_data_t *)
st_index_t st_hash_func(st_data_t)
st_index_t st_numhash(st_data_t)
struct st_table_entry * head
int st_foreach(st_table *, int(*)(ANYARGS), st_data_t)
int st_locale_insensitive_strncasecmp(const char *s1, const char *s2, size_t n)
st_index_t st_hash_uint(st_index_t h, st_index_t i)
#define RUBY_SYMBOL_EXPORT_END
int st_get_key(st_table *, st_data_t, st_data_t *)
int st_compare_func(st_data_t, st_data_t)
st_table * st_init_strcasetable_with_size(st_index_t)
struct st_table_entry ** bins
#define RUBY_SYMBOL_EXPORT_BEGIN
int st_reverse_foreach(st_table *, int(*)(ANYARGS), st_data_t)
st_index_t st_values(st_table *table, st_data_t *values, st_index_t size)
st_index_t st_values_check(st_table *table, st_data_t *values, st_index_t size, st_data_t never)
int st_insert(st_table *, st_data_t, st_data_t)
int st_foreach_check(st_table *, int(*)(ANYARGS), st_data_t, st_data_t)
void st_clear(st_table *)
st_index_t(* hash)(ANYARGS)
int st_locale_insensitive_strcasecmp(const char *s1, const char *s2)
st_table * st_init_table(const struct st_hash_type *)
st_index_t st_keys_check(st_table *table, st_data_t *keys, st_index_t size, st_data_t never)
st_index_t st_hash_uint32(st_index_t h, uint32_t i)
st_table * st_copy(st_table *)
st_table * st_init_strtable_with_size(st_index_t)
st_table * st_init_numtable_with_size(st_index_t)
int st_delete_safe(st_table *, st_data_t *, st_data_t *, st_data_t)
st_index_t st_hash_end(st_index_t h)
void st_cleanup_safe(st_table *, st_data_t)
struct st_table_entry * tail
void st_free_table(st_table *)
struct st_table::@106::@108 packed