Helper function for addReplyCommand() to output flags. */
| 5432 | |
| 5433 | /* Helper function for addReplyCommand() to output flags. */ |
| 5434 | int addReplyCommandFlag(client *c, struct redisCommand *cmd, int f, const char *reply) { |
| 5435 | if (cmd->flags & f) { |
| 5436 | addReplyStatus(c, reply); |
| 5437 | return 1; |
| 5438 | } |
| 5439 | return 0; |
| 5440 | } |
| 5441 | |
| 5442 | /* Output the representation of a Redis command. Used by the COMMAND command. */ |
| 5443 | void addReplyCommand(client *c, struct redisCommand *cmd) { |
no test coverage detected