aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
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/command.h
parent6e157172af6003a98be673ce19ea9d5386bd184b (diff)
downloadfsf-binutils-gdb-9773a94b7ac61e63820cdefb2394b8f263492994.zip
fsf-binutils-gdb-9773a94b7ac61e63820cdefb2394b8f263492994.tar.gz
fsf-binutils-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/command.h')
-rw-r--r--gdb/command.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/command.h b/gdb/command.h
index e869482..afc84e4 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -124,12 +124,14 @@ extern struct cmd_list_element *add_abbrev_prefix_cmd (char *,
/* Set the commands corresponding callback. */
+typedef void cmd_cfunc_ftype (char *args, int from_tty);
extern void set_cmd_cfunc (struct cmd_list_element *cmd,
- void (*cfunc) (char *args, int from_tty));
+ cmd_cfunc_ftype *cfunc);
+typedef void cmd_sfunc_ftype (char *args, int from_tty,
+ struct cmd_list_element *c);
extern void set_cmd_sfunc (struct cmd_list_element *cmd,
- void (*sfunc) (char *args, int from_tty,
- struct cmd_list_element * c));
+ cmd_sfunc_ftype *sfunc);
extern void set_cmd_completer (struct cmd_list_element *cmd,
char **(*completer) (char *text, char *word));