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.
+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.
+
2017-11-07 Tom Tromey <tom@tromey.com>
* stack.c (select_frame_command): Constify.
c->function.cfunc (args, from_tty);
}
-void
+static void
set_cmd_cfunc (struct cmd_list_element *cmd, cmd_cfunc_ftype *cfunc)
{
if (cfunc == NULL)
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)
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,