X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhash.h;h=99b0957489595bc0d4fc7ea13e9bf48d95c3182d;hp=1dadf0930cbab9c60d3071d986f92c8963543008;hb=8624553a31b148f9051cc11725bc01d9760fa07b;hpb=2f6aa1d7417df1dfc58597777686fbd77179b9fd diff --git a/src/hash.h b/src/hash.h index 1dadf093..99b09574 100644 --- a/src/hash.h +++ b/src/hash.h @@ -34,7 +34,7 @@ as that of the covered work. */ struct hash_table; struct hash_table *hash_table_new (int, unsigned long (*) (const void *), - int (*) (const void *, const void *)); + int (*) (const void *, const void *)); void hash_table_destroy (struct hash_table *); void *hash_table_get (const struct hash_table *, const void *); @@ -42,16 +42,16 @@ int hash_table_get_pair (const struct hash_table *, const void *, void *, void *); int hash_table_contains (const struct hash_table *, const void *); -void hash_table_put (struct hash_table *, const void *, void *); +void hash_table_put (struct hash_table *, const void *, const void *); int hash_table_remove (struct hash_table *, const void *); void hash_table_clear (struct hash_table *); void hash_table_for_each (struct hash_table *, - int (*) (void *, void *, void *), void *); + int (*) (void *, void *, void *), void *); typedef struct { - void *key, *value; /* public members */ - void *pos, *end; /* private members */ + void *key, *value; /* public members */ + void *pos, *end; /* private members */ } hash_table_iterator; void hash_table_iterate (struct hash_table *, hash_table_iterator *); int hash_table_iter_next (hash_table_iterator *);