dict.c API names modified to be more coincise and consistent.

This commit is contained in:
antirez
2011-11-08 17:07:55 +01:00
parent 71a50956b1
commit c0ba9ebe13
15 changed files with 80 additions and 81 deletions

View File

@ -55,7 +55,7 @@ int hashTypeGet(robj *o, robj *key, robj **objval, unsigned char **v,
} else {
dictEntry *de = dictFind(o->ptr,key);
if (de == NULL) return -1;
*objval = dictGetEntryVal(de);
*objval = dictGetVal(de);
}
return o->encoding;
}
@ -206,9 +206,9 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char
}
} else {
if (what & REDIS_HASH_KEY)
*objval = dictGetEntryKey(hi->de);
*objval = dictGetKey(hi->de);
else
*objval = dictGetEntryVal(hi->de);
*objval = dictGetVal(hi->de);
}
return hi->encoding;
}