]> sjero.net Git - wget/commitdiff
[svn] New function hash_table_count.
authorhniksic <devnull@localhost>
Sun, 8 Apr 2001 02:09:04 +0000 (19:09 -0700)
committerhniksic <devnull@localhost>
Sun, 8 Apr 2001 02:09:04 +0000 (19:09 -0700)
Published in <sxsu2403zzw.fsf@florida.arsdigita.de>.

src/ChangeLog
src/hash.c

index da546b28fce2fc73b741b4701b84f722eb5768bb..7f26857208e04bbe3c5f838423ed9a68efe717c4 100644 (file)
@@ -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
index 38bc284ae59c3c1b8f6d05b1947ade5dc4457e1f..edd1302bbb31dc67b996ba6b9b1b2920a4600398 100644 (file)
@@ -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;
+}
 \f
 /* Support for hash tables whose keys are strings.  */