X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhash.h;h=99b0957489595bc0d4fc7ea13e9bf48d95c3182d;hp=6a9254158246b77168b7a144f07ef1eb92972b56;hb=8624553a31b148f9051cc11725bc01d9760fa07b;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/src/hash.h b/src/hash.h index 6a925415..99b09574 100644 --- a/src/hash.h +++ b/src/hash.h @@ -1,5 +1,6 @@ /* Hash table declarations. - Copyright (C) 2000, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2000, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -33,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 *); @@ -41,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 *);