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
40f3ff21
Commit
40f3ff21
authored
Nov 18, 2011
by
antirez
Browse files
Merge remote-tracking branch 'origin/unstable' into unstable
parents
0b14e441
794e6ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zipmap.c
View file @
40f3ff21
...
@@ -298,7 +298,7 @@ unsigned char *zipmapDel(unsigned char *zm, unsigned char *key, unsigned int kle
...
@@ -298,7 +298,7 @@ unsigned char *zipmapDel(unsigned char *zm, unsigned char *key, unsigned int kle
return
zm
;
return
zm
;
}
}
/* Call
it
before
to
iterat
e
trough
t
elements via zipmapNext() */
/* Call before iterat
ing
t
h
rough elements via zipmapNext() */
unsigned
char
*
zipmapRewind
(
unsigned
char
*
zm
)
{
unsigned
char
*
zipmapRewind
(
unsigned
char
*
zm
)
{
return
zm
+
1
;
return
zm
+
1
;
}
}
...
@@ -452,7 +452,7 @@ int main(void) {
...
@@ -452,7 +452,7 @@ int main(void) {
vlen
,
vlen
,
value
);
vlen
,
vlen
,
value
);
}
}
}
}
printf
(
"
\n
Iterate trough
t
elements:
\n
"
);
printf
(
"
\n
Iterate t
h
rough elements:
\n
"
);
{
{
unsigned
char
*
i
=
zipmapRewind
(
zm
);
unsigned
char
*
i
=
zipmapRewind
(
zm
);
unsigned
char
*
key
,
*
value
;
unsigned
char
*
key
,
*
value
;
...
...
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