projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
further camelcase fixing
[rrq/rrqmisc.git]
/
vector
/
stringitem.c
diff --git
a/vector/stringitem.c
b/vector/stringitem.c
index d53576dd540f62ff6832af3b265de6271339af94..ee8f2cba74695f39f16faf47eb8aaa4facd3d9cf 100644
(file)
--- a/
vector/stringitem.c
+++ b/
vector/stringitem.c
@@
-1,18
+1,18
@@
#include <string.h>
#include <stringitem.h>
#include <string.h>
#include <stringitem.h>
-#include <
hashv
ector.h>
+#include <
HashV
ector.h>
/**
* This callback function returns the hashcode of a key. The hashcode
/**
* This callback function returns the hashcode of a key. The hashcode
- * is used for indexing into the backing
v
ector for finding the an
+ * is used for indexing into the backing
V
ector 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
* 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
- *
v
ector placement is made at the first empty or hole slot following
+ *
V
ector placement is made at the first empty or hole slot following
* the hashcode index.
*/
static unsigned long stringitem_hashcode(void *this,void *key) {
* the hashcode index.
*/
static unsigned long stringitem_hashcode(void *this,void *key) {
- return
hashv
ector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
+ return
HashV
ector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
}
/**
}
/**
@@
-49,7
+49,7
@@
static int stringitem_tostring(void *this,void *item,char *buffer,int limit) {
return snprintf( buffer, limit, "(null)" );
}
return snprintf( buffer, limit, "(null)" );
}
-
itemkeyf
un stringitem = {
+
ItemKeyF
un stringitem = {
.hashcode = stringitem_hashcode,
.haskey = stringitem_haskey,
.itemkey = stringitem_itemkey,
.hashcode = stringitem_hashcode,
.haskey = stringitem_haskey,
.itemkey = stringitem_itemkey,