1 #include <integeritem.h>
3 unsigned long integeritem_hashcode(itemkeyfun *this,void *key) {
4 return (unsigned long) key;
8 * This callback function determines whether an item has a
11 int integeritem_haskey(itemkeyfun *this,void *item,void *key) {
16 * This callback function returns the key of an item by considering
17 * the arity and schema.
19 void *integeritem_itemkey(itemkeyfun *this,void *item) {
24 * This callback function handles a key obtained from the itemkey
25 * callback function to reclaim temporary allocation.
27 void integeritem_releasekey(itemkeyfun *this,void *key) {
30 itemkeyfun integeritem = {
31 .hashcode = integeritem_hashcode,
32 .haskey = integeritem_haskey,
33 .itemkey = integeritem_itemkey,
34 .releasekey = integeritem_releasekey