* cli/cli-decode.c (cmd_type): New function.

* command.h (cmd_type): Declare.
* infrun.c (set_schedlock_func): Call function cmd_type.
* kod.c (kod_set_os): Call cmd_type.
* cris-tdep.c (cris_version_update): Use function cmd_type.
(cris_mode_update, cris_abi_update): Ditto.
This commit is contained in:
Andrew Cagney
2002-03-18 02:26:32 +00:00
parent 4dae1ae748
commit 1868c04eba
6 changed files with 74 additions and 11 deletions

View File

@@ -86,6 +86,12 @@ cmd_cfunc_eq (struct cmd_list_element *cmd,
return cmd->func == do_cfunc && cmd->function.cfunc == cfunc;
}
enum cmd_types
cmd_type (struct cmd_list_element *cmd)
{
return cmd->type;
}
void
set_cmd_completer (struct cmd_list_element *cmd,
char **(*completer) (char *text, char *word))