Commit 36392dd8 authored by antirez's avatar antirez
Browse files

Lua debugger: added comment about helper functions.

parent 3a04cb05
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment