mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 02:35:00 +08:00
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.
This commit is contained in:
@ -106,7 +106,7 @@ do_cfunc (struct cmd_list_element *c, char *args, int from_tty)
|
||||
c->function.cfunc (args, from_tty);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
set_cmd_cfunc (struct cmd_list_element *cmd, cmd_cfunc_ftype *cfunc)
|
||||
{
|
||||
if (cfunc == NULL)
|
||||
@ -122,7 +122,7 @@ do_const_cfunc (struct cmd_list_element *c, char *args, int from_tty)
|
||||
c->function.const_cfunc (args, from_tty);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
set_cmd_cfunc (struct cmd_list_element *cmd, cmd_const_cfunc_ftype *cfunc)
|
||||
{
|
||||
if (cfunc == NULL)
|
||||
|
Reference in New Issue
Block a user