| 1135 | } |
| 1136 | |
| 1137 | const char *RedisProtocolToLuaTypeStatus(lua_State *lua, const char *reply) { |
| 1138 | const char *p = strchr(reply + 1, '\r'); |
| 1139 | |
| 1140 | lua_newtable(lua); |
| 1141 | lua_pushstring(lua, "ok"); |
| 1142 | lua_pushlstring(lua, reply + 1, p - reply - 1); |
| 1143 | lua_settable(lua, -3); |
| 1144 | return p + 2; |
| 1145 | } |
| 1146 | |
| 1147 | const char *RedisProtocolToLuaTypeError(lua_State *lua, const char *reply) { |
| 1148 | const char *p = strchr(reply + 1, '\r'); |
no outgoing calls
no test coverage detected