Re: [RFA 01/67] Add add_cmd function overloads

Pedro Alves
2017-09-21T10:25:11Z

On 09/21/2017 06:09 AM, Tom Tromey wrote:
> @@ -140,6 +141,15 @@ extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> const char *,
> struct cmd_list_element **);
>
> +extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> + const char *,
> + struct cmd_list_element **);
> +
> +extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> + cmd_const_cfunc_ftype *fun,
> + const char *,
> + struct cmd_list_element **);
> +

Can you please add some comments describing the difference between the
overloads? Here and in other cases.

Thanks,
Pedro Alves