@@ -66,8 +66,8 @@ typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP == (int)sizeof(st_index
6666#define SIZEOF_ST_INDEX_T SIZEOF_VOIDP
6767
6868struct st_hash_type {
69- int (* compare )(ANYARGS /* st_data_t, st_data_t*/ ); /* st_compare_func* */
70- st_index_t (* hash )(ANYARGS /* st_data_t*/ ); /* st_hash_func* */
69+ int (* compare )(st_data_t , st_data_t ); /* st_compare_func* */
70+ st_index_t (* hash )(st_data_t ); /* st_hash_func* */
7171};
7272
7373#define ST_INDEX_BITS (SIZEOF_ST_INDEX_T * CHAR_BIT)
@@ -124,9 +124,10 @@ typedef int st_update_callback_func(st_data_t *key, st_data_t *value, st_data_t
124124/* *key may be altered, but must equal to the old key, i.e., the
125125 * results of hash() are same and compare() returns 0, otherwise the
126126 * behavior is undefined */
127+ typedef int st_foreach_callback_func (st_data_t key , st_data_t value , st_data_t arg , int existing );
127128int st_update (st_table * table , st_data_t key , st_update_callback_func * func , st_data_t arg );
128- int st_foreach_with_replace (st_table * tab , int ( * func )( ANYARGS ) , st_update_callback_func * replace , st_data_t arg );
129- int st_foreach (st_table * , int ( * )( ANYARGS ) , st_data_t );
129+ int st_foreach_with_replace (st_table * tab , st_foreach_callback_func * func , st_update_callback_func * replace , st_data_t arg );
130+ int st_foreach (st_table * , st_foreach_callback_func * func , st_data_t );
130131int st_foreach_check (st_table * , int (* )(ANYARGS ), st_data_t , st_data_t );
131132st_index_t st_keys (st_table * table , st_data_t * keys , st_index_t size );
132133st_index_t st_keys_check (st_table * table , st_data_t * keys , st_index_t size , st_data_t never );
0 commit comments