Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c811bb38
Commit
c811bb38
authored
Apr 16, 2010
by
Pieter Noordhuis
Browse files
drop inline directive
parent
feb8d7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
c811bb38
...
@@ -6155,7 +6155,7 @@ static int hashDelete(robj *o, robj *key) {
...
@@ -6155,7 +6155,7 @@ static int hashDelete(robj *o, robj *key) {
}
}
/* Return the number of elements in a hash. */
/* Return the number of elements in a hash. */
static
inline
unsigned long hashLength(robj *o) {
static unsigned long hashLength(robj *o) {
return (o->encoding == REDIS_ENCODING_ZIPMAP) ?
return (o->encoding == REDIS_ENCODING_ZIPMAP) ?
zipmapLen((unsigned char*)o->ptr) : dictSize((dict*)o->ptr);
zipmapLen((unsigned char*)o->ptr) : dictSize((dict*)o->ptr);
}
}
...
@@ -6193,7 +6193,7 @@ static void hashReleaseIterator(hashIterator *hi) {
...
@@ -6193,7 +6193,7 @@ static void hashReleaseIterator(hashIterator *hi) {
/* Move to the next entry in the hash. Return REDIS_OK when the next entry
/* Move to the next entry in the hash. Return REDIS_OK when the next entry
* could be found and REDIS_ERR when the iterator reaches the end. */
* could be found and REDIS_ERR when the iterator reaches the end. */
static
inline
int hashNext(hashIterator *hi) {
static int hashNext(hashIterator *hi) {
if (hi->encoding == REDIS_ENCODING_ZIPMAP) {
if (hi->encoding == REDIS_ENCODING_ZIPMAP) {
if ((hi->zi = zipmapNext(hi->zi, &hi->zk, &hi->zklen,
if ((hi->zi = zipmapNext(hi->zi, &hi->zk, &hi->zklen,
&hi->zv, &hi->zvlen)) == NULL) return REDIS_ERR;
&hi->zv, &hi->zvlen)) == NULL) return REDIS_ERR;
...
@@ -6206,7 +6206,7 @@ static inline int hashNext(hashIterator *hi) {
...
@@ -6206,7 +6206,7 @@ static inline int hashNext(hashIterator *hi) {
/* Get key or value object at current iteration position.
/* Get key or value object at current iteration position.
* See comments at hashGet for a discussion on the refcount for
* See comments at hashGet for a discussion on the refcount for
* keys and values retrieved from zipmaps. */
* keys and values retrieved from zipmaps. */
static
inline
robj *hashCurrent(hashIterator *hi, int what) {
static robj *hashCurrent(hashIterator *hi, int what) {
robj *o;
robj *o;
if (hi->encoding == REDIS_ENCODING_ZIPMAP) {
if (hi->encoding == REDIS_ENCODING_ZIPMAP) {
if (what & REDIS_HASH_KEY) {
if (what & REDIS_HASH_KEY) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment