mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* 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.
This commit is contained in:
parent
6e157172af
commit
9773a94b7a
@ -1,3 +1,11 @@
|
||||
2002-06-15 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2002-06-15 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
|
||||
|
@ -53,8 +53,7 @@ do_cfunc (struct cmd_list_element *c, char *args, int from_tty)
|
||||
}
|
||||
|
||||
void
|
||||
set_cmd_cfunc (struct cmd_list_element *cmd,
|
||||
void (*cfunc) (char *args, int from_tty))
|
||||
set_cmd_cfunc (struct cmd_list_element *cmd, cmd_cfunc_ftype *cfunc)
|
||||
{
|
||||
if (cfunc == NULL)
|
||||
cmd->func = NULL;
|
||||
@ -70,9 +69,7 @@ do_sfunc (struct cmd_list_element *c, char *args, int from_tty)
|
||||
}
|
||||
|
||||
void
|
||||
set_cmd_sfunc (struct cmd_list_element *cmd,
|
||||
void (*sfunc) (char *args, int from_tty,
|
||||
struct cmd_list_element * c))
|
||||
set_cmd_sfunc (struct cmd_list_element *cmd, cmd_sfunc_ftype *sfunc)
|
||||
{
|
||||
if (sfunc == NULL)
|
||||
cmd->func = NULL;
|
||||
|
@ -69,12 +69,11 @@ struct cmd_list_element
|
||||
to one of the below. */
|
||||
union
|
||||
{
|
||||
/* If type is not_set_cmd, call it like this: */
|
||||
void (*cfunc) (char *args, int from_tty);
|
||||
|
||||
/* If type is set_cmd or show_cmd, first set the variables, and
|
||||
then call this. */
|
||||
void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
|
||||
/* If type is not_set_cmd, call it like this: */
|
||||
cmd_cfunc_ftype *cfunc;
|
||||
/* If type is set_cmd or show_cmd, first set the variables,
|
||||
and then call this: */
|
||||
cmd_sfunc_ftype *sfunc;
|
||||
}
|
||||
function;
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user