cmdnames
static const char *cmdnames[] = {
if (cmd >= ARRAY_SIZE(cmdnames))
return cmdnames[cmd];
static void pretty_print_string_list(struct cmdnames *cmds, int longest)
void add_cmdname(struct cmdnames *cmds, const char *name, size_t len)
static void list_commands_in_dir(struct cmdnames *cmds,
struct cmdnames *main_cmds,
struct cmdnames *other_cmds)
void list_commands(const char *title, struct cmdnames *main_cmds,
struct cmdnames *other_cmds)
int is_in_cmdlist(struct cmdnames *c, const char *s)
void clean_cmdnames(struct cmdnames *cmds)
void uniq(struct cmdnames *cmds)
void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
struct cmdnames *main_cmds,
struct cmdnames *other_cmds);
void add_cmdname(struct cmdnames *cmds, const char *name, size_t len);
void clean_cmdnames(struct cmdnames *cmds);
void uniq(struct cmdnames *cmds);
void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
int is_in_cmdlist(struct cmdnames *c, const char *s);
void list_commands(const char *title, struct cmdnames *main_cmds,
struct cmdnames *other_cmds);
static struct cmdnames main_cmds, other_cmds;
struct cmdnames;
const char *help_unknown_cmd(const char *cmd, struct cmdnames *main_cmds);
struct cmdnames main_cmds = {};
struct cmdnames cmds1 = {};
struct cmdnames cmds2 = {};
struct cmdnames cmds = {};
struct cmdnames cmds1 = {};
struct cmdnames cmds2 = {};
struct cmdnames cmds = {};
static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old)
const char *help_unknown_cmd(const char *cmd, struct cmdnames *main_cmds)
struct cmdnames other_cmds;