Lines Matching refs:command_table
1036 Jim_ParseSubCmd(Jim_Interp *interp, const jim_subcmd_type *command_table, int argc, Jim_Obj *const …
21570 static void bad_subcmd(Jim_Interp *interp, const jim_subcmd_type * command_table, const char *type, in bad_subcmd() argument
21574 subcmd, subcmd_cmd_list(interp, command_table, ", ")); in bad_subcmd()
21577 static void show_cmd_usage(Jim_Interp *interp, const jim_subcmd_type * command_table, int argc, in show_cmd_usage() argument
21581 argv[0], subcmd_cmd_list(interp, command_table, ", ")); in show_cmd_usage()
21610 const jim_subcmd_type *Jim_ParseSubCmd(Jim_Interp *interp, const jim_subcmd_type * command_table, in Jim_ParseSubCmd() argument
21631 if (cmd->internalRep.ptrIntValue.ptr == command_table) { in Jim_ParseSubCmd()
21632 ct = command_table + cmd->internalRep.ptrIntValue.int1; in Jim_ParseSubCmd()
21641 show_cmd_usage(interp, command_table, argc, argv); in Jim_ParseSubCmd()
21652 Jim_SetResult(interp, subcmd_cmd_list(interp, command_table, " ")); in Jim_ParseSubCmd()
21658 for (ct = command_table; ct->cmd; ct++) { in Jim_ParseSubCmd()
21668 show_cmd_usage(interp, command_table, argc, argv); in Jim_ParseSubCmd()
21671 bad_subcmd(interp, command_table, "ambiguous", argv[0], argv[1 + help]); in Jim_ParseSubCmd()
21688 show_cmd_usage(interp, command_table, argc, argv); in Jim_ParseSubCmd()
21691 bad_subcmd(interp, command_table, "unknown", argv[0], argv[1 + help]); in Jim_ParseSubCmd()
21705 cmd->internalRep.ptrIntValue.ptr = (void *)command_table; in Jim_ParseSubCmd()
21706 cmd->internalRep.ptrIntValue.int1 = ct - command_table; in Jim_ParseSubCmd()