* 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;
}
* 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;
}
* 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;
}
* 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 = {
* 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 ) );
}
* 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;
}
* 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;
}
* 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 = {
* vector placement is made at the first empty or hole slot following
* the hashcode index.
*/
-static unsigned long tupleitem_hashcode(itemkeyfun *this,void *key) {
+static unsigned long tupleitem_hashcode(void *this,void *key) {
tupleschema *def = (tupleschema *) this;
tuple *kp = (tuple*) key;
int i = 0;
* This callback function determines whether an item has a
* given key or not.
*/
-static int tupleitem_haskey(itemkeyfun *this,void *item,void *key) {
+static int tupleitem_haskey(void *this,void *item,void *key) {
tupleschema *def = (tupleschema *) this;
tuple *kp = (tuple*) key;
tuple *tp = (tuple*) item;
* This callback function returns the key of an item by considering
* the arity and mask.
*/
-static void *tupleitem_itemkey(itemkeyfun *this,void *item) {
+static void *tupleitem_itemkey(void *this,void *item) {
tupleschema *def = (tupleschema *) this;
tuple *tp = (tuple*) item;
int i, j;
* This callback function handles a key obtained from the itemkey
* callback function to reclaim temporary allocation.
*/
-static void tupleitem_releasekey(itemkeyfun *this,void *key) {
+static void tupleitem_releasekey(void *this,void *key) {
tupleschema *def = (tupleschema *) this;
tuple *kp = (tuple*) key;
int i,j;