| 183 | } |
| 184 | |
| 185 | char *redisProtocolToLuaType_Status(lua_State *lua, char *reply) { |
| 186 | char *p = strchr(reply+1,'\r'); |
| 187 | |
| 188 | lua_newtable(lua); |
| 189 | lua_pushstring(lua,"ok"); |
| 190 | lua_pushlstring(lua,reply+1,p-reply-1); |
| 191 | lua_settable(lua,-3); |
| 192 | return p+2; |
| 193 | } |
| 194 | |
| 195 | char *redisProtocolToLuaType_Error(lua_State *lua, char *reply) { |
| 196 | char *p = strchr(reply+1,'\r'); |
no test coverage detected