mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] New function hash_table_count.
Published in <sxsu2403zzw.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
b5788b5eb7
commit
26547d3987
@ -1,3 +1,7 @@
|
||||
2001-04-08 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* hash.c (hash_table_count): New function.
|
||||
|
||||
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* utils.c (read_file): Cast MAP_FAILED to char *. Enforced by
|
||||
@ -34,6 +38,7 @@
|
||||
username was present, but the URL did not contain a slash, e.g.
|
||||
http://foo:bar@myhost.
|
||||
|
||||
>>>>>>> 1.148
|
||||
2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
|
||||
|
||||
* http.c (http_atotm): Use %A instead of %a to match full
|
||||
|
@ -458,6 +458,15 @@ hash_table_map (struct hash_table *ht,
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return the number of elements in the hash table. This is not the
|
||||
same as the physical size of the hash table, which is always
|
||||
greater than the number of elements. */
|
||||
int
|
||||
hash_table_count (struct hash_table *ht)
|
||||
{
|
||||
return ht->count;
|
||||
}
|
||||
|
||||
/* Support for hash tables whose keys are strings. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user