#include <string.h>
#include <stringitem.h>
-#include <hashvector.h>
+#include <HashVector.h>
/**
* This callback function returns the hashcode of a key. The hashcode
- * is used for indexing into the backing vector for finding the an
+ * is used for indexing into the backing Vector for finding the an
* item via its key. The same key must map consistently to the same
* hashcode while the hashtable contains an item with that key.
* Different keys map map to the same hashcode, in which case the
- * vector placement is made at the first empty or hole slot following
+ * Vector placement is made at the first empty or hole slot following
* the hashcode index.
*/
static unsigned long stringitem_hashcode(void *this,void *key) {
- return hashvector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
+ return HashVector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
}
/**
return snprintf( buffer, limit, "(null)" );
}
-itemkeyfun stringitem = {
+ItemKeyFun stringitem = {
.hashcode = stringitem_hashcode,
.haskey = stringitem_haskey,
.itemkey = stringitem_itemkey,