projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix vararg usae; use static callbacks
[rrq/rrqmisc.git]
/
vector
/
hashvector.h
diff --git
a/vector/hashvector.h
b/vector/hashvector.h
index d0f9e12f23114f0ec5aecac85c289e9641d49c85..1c3f387443bda77cd212479d3dc56a74c50532d5 100644
(file)
--- a/
vector/hashvector.h
+++ b/
vector/hashvector.h
@@
-77,7
+77,7
@@
typedef struct {
*
* \related hashvector
*/
*
* \related hashvector
*/
-int hashvector_find(hashvector *hv,void *key,void **x);
+
extern
int hashvector_find(hashvector *hv,void *key,void **x);
/**
* Add the given item into the hashvector, growing the hashvector as
/**
* Add the given item into the hashvector, growing the hashvector as
@@
-89,7
+89,7
@@
int hashvector_find(hashvector *hv,void *key,void **x);
*
* \related hashvector
*/
*
* \related hashvector
*/
-int hashvector_add(hashvector *hv,void *item);
+
extern
int hashvector_add(hashvector *hv,void *item);
/**
* Delete the given item, and shrink the hashvector so that its size
/**
* Delete the given item, and shrink the hashvector so that its size
@@
-100,7
+100,7
@@
int hashvector_add(hashvector *hv,void *item);
*
* \related hashvector
*/
*
* \related hashvector
*/
-int hashvector_delete(hashvector *hv,void *item);
+
extern
int hashvector_delete(hashvector *hv,void *item);
/**
* Copy content items into a vector, which must be empty. The
/**
* Copy content items into a vector, which must be empty. The
@@
-111,7
+111,7
@@
int hashvector_delete(hashvector *hv,void *item);
*
* \related hashvector
*/
*
* \related hashvector
*/
-int hashvector_contents(hashvector *hv,vector *pv);
+
extern
int hashvector_contents(hashvector *hv,vector *pv);
/**
* This is a utility function to compute and return a hashcode for a
/**
* This is a utility function to compute and return a hashcode for a
@@
-119,6
+119,11
@@
int hashvector_contents(hashvector *hv,vector *pv);
*
* \related hashvector
*/
*
* \related hashvector
*/
-unsigned long hashvector_hashcode(unsigned char *key,unsigned long n);
+extern unsigned long hashvector_hashcode(unsigned char *key,unsigned long n);
+
+/**
+ * Create a hashvector for of given variant for given itemkeyfun*
+ */
+extern hashvector *hashvector_create(int variant,itemkeyfun *type);
#endif
#endif