aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-10-10 18:14:10 -0600
committerTom Tromey <tom@tromey.com>2017-11-07 13:59:08 -0700
commitc2252c0dd8dcf3bb95598149aecd3158e89c31d7 (patch)
tree4c9a9143df6c76181a93ab8edb24dcf505b6e5d0 /gdb/command.h
parent1ee870c5249864d36717a08864c60d7166b6b292 (diff)
downloadgdb-c2252c0dd8dcf3bb95598149aecd3158e89c31d7.zip
gdb-c2252c0dd8dcf3bb95598149aecd3158e89c31d7.tar.gz
gdb-c2252c0dd8dcf3bb95598149aecd3158e89c31d7.tar.bz2
Make set_cmd_cfunc private
set_cmd_cfunc is only used in cli-decode.c, and I don't think there is a good reason to expose it directly. So, this patch makes it private. gdb/ChangeLog 2017-11-07 Tom Tromey <tom@tromey.com> * command.h (set_cmd_cfunc): Don't declare. * cli/cli-decode.c (set_cmd_cfunc): Now static.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/command.h b/gdb/command.h
index c7922a0..a995445 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -180,16 +180,6 @@ extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
struct cmd_list_element
**);
-/* Set the commands corresponding callback. */
-
-extern void set_cmd_cfunc (struct cmd_list_element *cmd,
- cmd_cfunc_ftype *cfunc);
-
-/* Const-correct variant of the above. */
-
-extern void set_cmd_cfunc (struct cmd_list_element *cmd,
- cmd_const_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,