* breakpoint.c (add_catch_command): Use completer_ftype.
* breakpoint.h: Include command.h. (add_catch_command): Use completer_ftype. * cli/cli-decode.c (set_cmd_completer): Use completer_ftype. * cli/cli-decode.h (struct cmd_list_element) <completer>: Use completer_ftype. * command.h (completer_ftype): New typedef. (set_cmd_completer): Use it. * python/py-cmd.c (struct cmdpy_completer) <completer>: Use completer_ftype.
This commit is contained in:
parent
1a43faafe7
commit
625e8578d7
7 changed files with 22 additions and 13 deletions
|
@ -119,9 +119,7 @@ cmd_type (struct cmd_list_element *cmd)
|
|||
}
|
||||
|
||||
void
|
||||
set_cmd_completer (struct cmd_list_element *cmd,
|
||||
char **(*completer) (struct cmd_list_element *self,
|
||||
char *text, char *word))
|
||||
set_cmd_completer (struct cmd_list_element *cmd, completer_ftype *completer)
|
||||
{
|
||||
cmd->completer = completer; /* Ok. */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue