diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:41:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:41:20 +0000 |
commit | 136395f954eb858db4d208bb9807f4fdb4eac8f8 (patch) | |
tree | df4f3b3054a5d4e7698334feeb220716a0b4caef /gdb/command.h | |
parent | e02f3d0d618dd79d0a72216b421f4fb9d91db72c (diff) | |
download | gdb-136395f954eb858db4d208bb9807f4fdb4eac8f8.tar.gz |
* 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.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/command.h b/gdb/command.h index c18e2dd842a..eba3a5b9571 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -149,9 +149,9 @@ typedef void cmd_sfunc_ftype (char *args, int from_tty, extern void set_cmd_sfunc (struct cmd_list_element *cmd, cmd_sfunc_ftype *sfunc); -extern void set_cmd_completer (struct cmd_list_element *, - char **(*completer) (struct cmd_list_element *, - char *, char *)); +typedef char **completer_ftype (struct cmd_list_element *, char *, char *); + +extern void set_cmd_completer (struct cmd_list_element *, completer_ftype *); /* HACK: cagney/2002-02-23: Code, mostly in tracepoints.c, grubs around in cmd objects to test the value of the commands sfunc(). */ |