
Go to the source code of this file.
Macros | |
| #define | st__NUMCMP(x, y) |
| #define | st__NUMHASH(x, size) |
| #define | st__PTRHASH(x, size) |
| #define | EQUAL(func, x, y) |
| #define | do_hash(key, table) |
| #define | PTR_NOT_EQUAL(table, ptr, user_key) |
| #define | FIND_ENTRY(table, hash_val, key, ptr, last) |
| #define | ADD_DIRECT(table, key, value, hash_val, new) |
Functions | |
| int | st__numhash (const char *, int) |
| int | st__ptrhash (const char *, int) |
| int | st__numcmp (const char *, const char *) |
| int | st__ptrcmp (const char *, const char *) |
| st__table * | st__init_table_with_params (st__compare_func_type compare, st__hash_func_type hash, int size, int density, double grow_factor, int reorder_flag) |
| st__table * | st__init_table (st__compare_func_type compare, st__hash_func_type hash) |
| void | st__free_table (st__table *table) |
| int | st__lookup (st__table *table, const char *key, char **value) |
| int | st__lookup_int (st__table *table, char *key, int *value) |
| int | st__insert (st__table *table, const char *key, char *value) |
| int | st__add_direct (st__table *table, char *key, char *value) |
| int | st__find_or_add (st__table *table, char *key, char ***slot) |
| int | st__find (st__table *table, char *key, char ***slot) |
| st__table * | st__copy (st__table *old_table) |
| int | st__delete (st__table *table, const char **keyp, char **value) |
| int | st__delete_int (st__table *table, long *keyp, char **value) |
| int | st__foreach (st__table *table, enum st__retval(*func)(char *, char *, char *), char *arg) |
| int | st__strhash (const char *string, int modulus) |
| st__generator * | st__init_gen (st__table *table) |
| int | st__gen (st__generator *gen, const char **key_p, char **value_p) |
| int | st__gen_int (st__generator *gen, const char **key_p, long *value_p) |
| void | st__free_gen (st__generator *gen) |
Definition at line 154 of file st.c.
| #define do_hash | ( | key, | |
| table ) |
Definition at line 28 of file st.c.
| #define EQUAL | ( | func, | |
| x, | |||
| y ) |
Definition at line 23 of file st.c.
| #define FIND_ENTRY | ( | table, | |
| hash_val, | |||
| key, | |||
| ptr, | |||
| last ) |
Definition at line 101 of file st.c.
| #define PTR_NOT_EQUAL | ( | table, | |
| ptr, | |||
| user_key ) |
| #define st__NUMHASH | ( | x, | |
| size ) |
| #define st__PTRHASH | ( | x, | |
| size ) |
| int st__add_direct | ( | st__table * | table, |
| char * | key, | ||
| char * | value ) |
Definition at line 205 of file st.c.
Definition at line 330 of file st.c.
Definition at line 375 of file st.c.

| int st__delete_int | ( | st__table * | table, |
| long * | keyp, | ||
| char ** | value ) |
| int st__find | ( | st__table * | table, |
| char * | key, | ||
| char *** | slot ) |
Definition at line 264 of file st.c.

| int st__find_or_add | ( | st__table * | table, |
| char * | key, | ||
| char *** | slot ) |
Definition at line 230 of file st.c.

| int st__foreach | ( | st__table * | table, |
| enum st__retval(* | func )(char *, char *, char *), | ||
| char * | arg ) |
Definition at line 421 of file st.c.
| void st__free_gen | ( | st__generator * | gen | ) |
| void st__free_table | ( | st__table * | table | ) |
Definition at line 81 of file st.c.

| int st__gen | ( | st__generator * | gen, |
| const char ** | key_p, | ||
| char ** | value_p ) |
| int st__gen_int | ( | st__generator * | gen, |
| const char ** | key_p, | ||
| long * | value_p ) |
| st__generator * st__init_gen | ( | st__table * | table | ) |
| st__table * st__init_table | ( | st__compare_func_type | compare, |
| st__hash_func_type | hash ) |
Definition at line 72 of file st.c.


| st__table * st__init_table_with_params | ( | st__compare_func_type | compare, |
| st__hash_func_type | hash, | ||
| int | size, | ||
| int | density, | ||
| double | grow_factor, | ||
| int | reorder_flag ) |
Definition at line 41 of file st.c.

Definition at line 171 of file st.c.

Definition at line 114 of file st.c.

| int st__lookup_int | ( | st__table * | table, |
| char * | key, | ||
| int * | value ) |
Definition at line 134 of file st.c.

| int st__numhash | ( | const char * | x, |
| int | size ) |
| int st__ptrhash | ( | const char * | x, |
| int | size ) |
| int st__strhash | ( | const char * | string, |
| int | modulus ) |