summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-27 11:44:26 +0000
committerpixel <pixel>2007-05-27 11:44:26 +0000
commit981e2c7c70b45ff6336c98eaac2af5a6a32bc5c4 (patch)
tree240ee49157b89051514e34d888f6f6dd288fd0e4 /include
parent41bce61b0857d69b5df8d0b66256347867b95c07 (diff)
Using 'proper' arguments.
Diffstat (limited to 'include')
-rw-r--r--include/hashtab.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/hashtab.h b/include/hashtab.h
index 58f5163..c2e7c46 100644
--- a/include/hashtab.h
+++ b/include/hashtab.h
@@ -69,7 +69,7 @@ extern "C" {
RETURNS:
the new table
*/
-htab *hcreate(/*_ int logsize _*/);
+htab *hcreate(int logsize);
/* hdestroy - destroy a hash table
@@ -80,7 +80,7 @@ htab *hcreate(/*_ int logsize _*/);
RETURNS:
nothing
*/
-void hdestroy(/*_ htab *t _*/);
+void hdestroy(htab *t);
/* hcount, hkey, hkeyl, hstuff
@@ -113,7 +113,7 @@ void hdestroy(/*_ htab *t _*/);
TRUE if the item exists, FALSE if it does not.
If the item exists, moves the current position to that item.
*/
-int hfind(/*_ htab *t, ub1 *key, ub4 keyl _*/);
+int hfind(htab *t, Uint8 *key, Uint32 keyl);
/* hadd - add a new item to the hash table
@@ -126,7 +126,7 @@ int hfind(/*_ htab *t, ub1 *key, ub4 keyl _*/);
RETURNS:
FALSE if the operation fails (because that key is already there).
*/
-int hadd(/*_ htab *t, ub1 *key, ub4 keyl, void *stuff _*/);
+int hadd(htab *t, ub1 *key, ub4 keyl, void *stuff);
/* hdel - delete the item at the current position
@@ -145,7 +145,7 @@ int hadd(/*_ htab *t, ub1 *key, ub4 keyl, void *stuff _*/);
hdel(tab);
}
*/
-int hdel(/* htab *t */);
+int hdel(htab *t);
/* hfirst - move position to the first item in the table
@@ -155,7 +155,7 @@ int hdel(/* htab *t */);
FALSE if there is no current item (meaning the table is empty)
NOTE:
*/
-int hfirst(/*_ htab *t _*/);
+int hfirst(htab *t);
/* hnext - move position to the next item in the table
@@ -185,7 +185,7 @@ int hfirst(/*_ htab *t _*/);
NOTE:
This is private to hashtab; do not use it externally.
*/
-int hnbucket(/*_ htab *t _*/);
+int hnbucket(htab *t);
/* hstat - print statistics about the hash table
@@ -204,7 +204,7 @@ int hnbucket(/*_ htab *t _*/);
have n items. That is, .3678 0, .3678 1, .1839 2, ...
Also expect "existing" to be about 2.
*/
-void hstat(/*_ htab *t _*/);
+void hstat(htab *t);
#ifdef __cplusplus
}