Helper function for addReplyCommand() to output flags. */
| 4466 | |
| 4467 | /* Helper function for addReplyCommand() to output flags. */ |
| 4468 | int addReplyCommandFlag(client *c, struct redisCommand *cmd, int f, char *reply) { |
| 4469 | if (cmd->flags & f) { |
| 4470 | addReplyStatus(c, reply); |
| 4471 | return 1; |
| 4472 | } |
| 4473 | return 0; |
| 4474 | } |
| 4475 | |
| 4476 | /* Output the representation of a Redis command. Used by the COMMAND command. */ |
| 4477 | void addReplyCommand(client *c, struct redisCommand *cmd) { |
no test coverage detected