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
/
integeritem.c
diff --git
a/vector/integeritem.c
b/vector/integeritem.c
index 0ad2302807ed3c046bd449bef3fa37bce6575dce..6e6ac04659966c73c62a07410a722603f592e623 100644
(file)
--- a/
vector/integeritem.c
+++ b/
vector/integeritem.c
@@
-9,7
+9,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 integeritem_hashcode(
itemkeyfun
*this,void *key) {
+static unsigned long integeritem_hashcode(
void
*this,void *key) {
return (unsigned long) key;
}
return (unsigned long) key;
}
@@
-17,7
+17,7
@@
static unsigned long integeritem_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 integeritem_haskey(
itemkeyfun
*this,void *item,void *key) {
+static int integeritem_haskey(
void
*this,void *item,void *key) {
return item == key;
}
return item == key;
}
@@
-25,7
+25,7
@@
static int integeritem_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 *integeritem_itemkey(
itemkeyfun
*this,void *item) {
+static void *integeritem_itemkey(
void
*this,void *item) {
return item;
}
return item;
}
@@
-33,7
+33,7
@@
static void *integeritem_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 integeritem_releasekey(
itemkeyfun
*this,void *key) {
+static void integeritem_releasekey(
void
*this,void *key) {
}
itemkeyfun integeritem = {
}
itemkeyfun integeritem = {