projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reworked hasing with "query"
[rrq/rrqmisc.git]
/
vector
/
stringitem.c
diff --git
a/vector/stringitem.c
b/vector/stringitem.c
index ce10e7cb8c260876a620a4869a96cc35ecf39e54..db400cebc8f33c54b5a126277dd7971f17446a2a 100644
(file)
--- a/
vector/stringitem.c
+++ b/
vector/stringitem.c
@@
-11,7
+11,7
@@
* vector placement is made at the first empty or hole slot following
* the hashcode index.
*/
* vector placement is made at the first empty or hole slot following
* the hashcode index.
*/
-static unsigned long stringitem_hashcode(
itemkeyfun
*this,void *key) {
+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 ) );
}
@@
-19,7
+19,7
@@
static unsigned long stringitem_hashcode(itemkeyfun *this,void *key) {
* This callback function determines whether an item has a
* given key or not.
*/
* This callback function determines whether an item has a
* given key or not.
*/
-static int stringitem_haskey(
itemkeyfun
*this,void *item,void *key) {
+static int stringitem_haskey(
void
*this,void *item,void *key) {
return strcmp( item, key ) == 0;
}
return strcmp( item, key ) == 0;
}
@@
-27,7
+27,7
@@
static int stringitem_haskey(itemkeyfun *this,void *item,void *key) {
* This callback function returns the key of an item by considering
* the arity and schema.
*/
* This callback function returns the key of an item by considering
* the arity and schema.
*/
-static void *stringitem_itemkey(
itemkeyfun
*this,void *item) {
+static void *stringitem_itemkey(
void
*this,void *item) {
return item;
}
return item;
}
@@
-35,7
+35,7
@@
static void *stringitem_itemkey(itemkeyfun *this,void *item) {
* This callback function handles a key obtained from the itemkey
* callback function to reclaim temporary allocation.
*/
* This callback function handles a key obtained from the itemkey
* callback function to reclaim temporary allocation.
*/
-static void stringitem_releasekey(
itemkeyfun
*this,void *key) {
+static void stringitem_releasekey(
void
*this,void *key) {
}
itemkeyfun stringitem = {
}
itemkeyfun stringitem = {