aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-15 19:54:26 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-15 19:54:26 +0000
commit9773a94b7ac61e63820cdefb2394b8f263492994 (patch)
treee45701bcbd39c1d773636ae9c3132c063c749edf /gdb/cli/cli-decode.c
parent6e157172af6003a98be673ce19ea9d5386bd184b (diff)
downloadgdb-9773a94b7ac61e63820cdefb2394b8f263492994.zip
gdb-9773a94b7ac61e63820cdefb2394b8f263492994.tar.gz
gdb-9773a94b7ac61e63820cdefb2394b8f263492994.tar.bz2
* cli/cli-decode.c (set_cmd_cfunc): Update.
(set_cmd_sfunc): Update. * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare. (set_cmd_sfunc, set_cmd_cfunc): Update. * cli/cli-decode.h: Update.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 16be5e8..77e893f 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -53,8 +53,7 @@ do_cfunc (struct cmd_list_element *c, char *args, int from_tty)
}
void
-set_cmd_cfunc (struct cmd_list_element *cmd,
- void (*cfunc) (char *args, int from_tty))
+set_cmd_cfunc (struct cmd_list_element *cmd, cmd_cfunc_ftype *cfunc)
{
if (cfunc == NULL)
cmd->func = NULL;
@@ -70,9 +69,7 @@ do_sfunc (struct cmd_list_element *c, char *args, int from_tty)
}
void
-set_cmd_sfunc (struct cmd_list_element *cmd,
- void (*sfunc) (char *args, int from_tty,
- struct cmd_list_element * c))
+set_cmd_sfunc (struct cmd_list_element *cmd, cmd_sfunc_ftype *sfunc)
{
if (sfunc == NULL)
cmd->func = NULL;