10 #if defined(__cplusplus) 21 #if SIZEOF_LONG == SIZEOF_VOIDP 23 #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP 26 # error ---->> st.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<---- 28 #define ST_DATA_T_DEFINED 53 #define MAX_ST_INDEX_VAL (~(st_index_t) 0) 59 #define SIZEOF_ST_INDEX_T SIZEOF_VOIDP 66 #define ST_INDEX_BITS (SIZEOF_ST_INDEX_T * CHAR_BIT) 68 #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR) && defined(HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P) 69 # define ST_DATA_COMPATIBLE_P(type) \ 70 __builtin_choose_expr(__builtin_types_compatible_p(type, st_data_t), 1, 0) 72 # define ST_DATA_COMPATIBLE_P(type) 0 81 unsigned char entry_power, bin_power,
size_ind;
97 #define st_is_member(table,key) st_lookup((table),(key),(st_data_t *)0) 136 #define st_strcasecmp st_locale_insensitive_strcasecmp 137 #define st_strncasecmp st_locale_insensitive_strncasecmp 144 #define st_hash_start(h) ((st_index_t)(h)) 148 #if defined(__cplusplus)
int st_locale_insensitive_strncasecmp(const char *s1, const char *s2, size_t n)
st_index_t st_hash_uint32(st_index_t h, uint32_t i)
int st_insert(st_table *, st_data_t, st_data_t)
st_index_t st_numhash(st_data_t n)
void st_free_table(st_table *)
int st_get_key(st_table *, st_data_t, st_data_t *)
st_table * st_init_strtable(void)
int st_update(st_table *table, st_data_t key, st_update_callback_func *func, st_data_t arg)
RUBY_SYMBOL_EXPORT_BEGIN typedef unsigned long st_data_t
st_index_t st_hash_func(st_data_t)
int st_insert2(st_table *, st_data_t, st_data_t, st_data_t(*)(st_data_t))
st_table * st_init_strcasetable(void)
char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP==(int) sizeof(st_index_t) ? 1 :-1]
int st_lookup(st_table *, st_data_t, st_data_t *)
int st_locale_insensitive_strcasecmp(const char *s1, const char *s2)
PUREFUNC(int st_locale_insensitive_strcasecmp(const char *s1, const char *s2))
st_table * st_init_strcasetable_with_size(st_index_t)
st_index_t st_hash_end(st_index_t h)
size_t st_memsize(const st_table *tab)
void st_add_direct(st_table *, st_data_t, st_data_t)
int st_delete(st_table *, st_data_t *, st_data_t *)
int st_compare_func(st_data_t, st_data_t)
st_index_t(* hash)(ANYARGS)
st_table * st_init_strtable_with_size(st_index_t)
unsigned int rebuilds_num
st_index_t st_hash(const void *ptr, size_t len, st_index_t h)
st_index_t st_values(st_table *table, st_data_t *values, st_index_t size)
#define RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_BEGIN
CONSTFUNC(int st_numcmp(st_data_t, st_data_t))
st_index_t st_values_check(st_table *table, st_data_t *values, st_index_t size, st_data_t never)
st_table * st_init_numtable(void)
register unsigned int len
st_table * st_init_table_with_size(const struct st_hash_type *, st_index_t)
int st_shift(st_table *, st_data_t *, st_data_t *)
int st_foreach_check(st_table *, int(*)(ANYARGS), st_data_t, st_data_t)
const struct st_hash_type * type
st_index_t st_keys(st_table *table, st_data_t *keys, st_index_t size)
st_index_t st_keys_check(st_table *table, st_data_t *keys, st_index_t size, st_data_t never)
int st_numcmp(st_data_t x, st_data_t y)
void st_cleanup_safe(st_table *, st_data_t)
st_table * st_copy(st_table *)
void st_clear(st_table *)
st_table * st_init_table(const struct st_hash_type *)
st_table * st_init_numtable_with_size(st_index_t)
st_index_t st_hash_uint(st_index_t h, st_index_t i)
int st_delete_safe(st_table *, st_data_t *, st_data_t *, st_data_t)
int st_update_callback_func(st_data_t *key, st_data_t *value, st_data_t arg, int existing)
int st_foreach(st_table *, int(*)(ANYARGS), st_data_t)