X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2Fintegeritem.c;h=221fb7095fce341e6fba8d974edf4c1f08d96f04;hb=6fcd4ffc18696dbf4c11be32837a2035ea5ee92f;hp=ae4db929ae95c4bd358ac516e111864641bb38fe;hpb=62e848c28a7083828fd47cbd8a29fbc875cf3ecb;p=rrq%2Frrqmisc.git diff --git a/vector/integeritem.c b/vector/integeritem.c index ae4db92..221fb70 100644 --- a/vector/integeritem.c +++ b/vector/integeritem.c @@ -2,11 +2,11 @@ /** * This callback function returns the hashcode of a key. The hashcode - * is used for indexing into the backing vector for finding the an + * is used for indexing into the backing Vector 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 - * vector placement is made at the first empty or hole slot following + * Vector placement is made at the first empty or hole slot following * the hashcode index. */ static unsigned long integeritem_hashcode(void *this,void *key) { @@ -44,7 +44,7 @@ static int integeritem_tostring(void *this,void *item,char *buffer,int limit) { return snprintf( buffer, limit, "%lld", (long long) item ); } -itemkeyfun integeritem = { +ItemKeyFun integeritem = { .hashcode = integeritem_hashcode, .haskey = integeritem_haskey, .itemkey = integeritem_itemkey,