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
36392dd8
Commit
36392dd8
authored
Nov 11, 2015
by
antirez
Browse files
Lua debugger: added comment about helper functions.
parent
3a04cb05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
36392dd8
...
@@ -1794,6 +1794,9 @@ char *ldbRedisProtocolToHuman(sds *o, char *reply) {
...
@@ -1794,6 +1794,9 @@ char *ldbRedisProtocolToHuman(sds *o, char *reply) {
return
p
;
return
p
;
}
}
/* The following functions are helpers for ldbRedisProtocolToHuman(), each
* take care of a given Redis return type. */
char
*
ldbRedisProtocolToHuman_Int
(
sds
*
o
,
char
*
reply
)
{
char
*
ldbRedisProtocolToHuman_Int
(
sds
*
o
,
char
*
reply
)
{
char
*
p
=
strchr
(
reply
+
1
,
'\r'
);
char
*
p
=
strchr
(
reply
+
1
,
'\r'
);
*
o
=
sdscatlen
(
*
o
,
reply
+
1
,
p
-
reply
-
1
);
*
o
=
sdscatlen
(
*
o
,
reply
+
1
,
p
-
reply
-
1
);
...
...
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