Lines Matching refs:cmds
40 mandoc_template(SL_cmd *cmds, in mandoc_template() argument
70 for(c = cmds; c->name; ++c) { in mandoc_template()
83 for(c = cmds; c->name; ++c) { in mandoc_template()
109 sl_match (SL_cmd *cmds, char *cmd, int exactp) in sl_match() argument
114 for (c = cmds; c->name; ++c) { in sl_match()
132 sl_help (SL_cmd *cmds, int argc, char **argv) in sl_help() argument
137 mandoc_template(cmds, NULL); in sl_help()
143 for (c = cmds; c->name; ++c) { in sl_help()
157 c = sl_match (cmds, argv[1], 0); in sl_help()
203 sl_command(SL_cmd *cmds, int argc, char **argv) in sl_command() argument
206 c = sl_match (cmds, argv[0], 0); in sl_command()
308 sl_command_loop(SL_cmd *cmds, const char *prompt, void **data) in sl_command_loop() argument
328 ret = sl_command(cmds, argc, argv); in sl_command_loop()
340 sl_loop(SL_cmd *cmds, const char *prompt) in sl_loop() argument
344 while((ret = sl_command_loop(cmds, prompt, &data)) >= 0) in sl_loop()
362 sl_slc_help (SL_cmd *cmds, int argc, char **argv) in sl_slc_help() argument
365 sl_help(cmds, 1, argv - 1 /* XXX */); in sl_slc_help()
367 SL_cmd *c = sl_match (cmds, argv[0], 0); in sl_slc_help()