Lines Matching defs:commands
41 static struct command *commands = NULL;
66 free(commands[num_commands].arg);
68 free(commands);
157 if ((c = realloc(commands, sizeof(*c) * (num_commands + 1))) == NULL) {
162 commands = c;
163 commands[num_commands].mode = new_mode;
164 commands[num_commands].arg = NULL;
172 commands[num_commands - 1].arg = s;
298 "build or reload should not be used with other commands\n");
320 if (commands && commands[num_commands - 1].mode == INSTALL_M) {
322 } else if (commands && commands[num_commands - 1].mode == REMOVE_M) {
324 } else if (commands && commands[num_commands - 1].mode == EXTRACT_M) {
408 enum client_modes mode = commands[i].mode;
409 char *mode_arg = commands[i].arg;