diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/command.c | 44 |
2 files changed, 17 insertions, 32 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4bafc70..d06101d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-08-07 Kevin Buettner <kevinb@redhat.com> + + * command.c (add_cmd, add_abbrev_cmd, add_prefix_cmd, + add_abbrev_prefix_cmd): Protoize. + 2000-08-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com> * objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss diff --git a/gdb/command.c b/gdb/command.c index aff3191..56fb85e 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -81,12 +81,8 @@ void _initialize_command (void); of *LIST). */ struct cmd_list_element * -add_cmd (name, class, fun, doc, list) - char *name; - enum command_class class; - void (*fun) (char *, int); - char *doc; - struct cmd_list_element **list; +add_cmd (char *name, enum command_class class, void (*fun) (char *, int), + char *doc, struct cmd_list_element **list) { register struct cmd_list_element *c = (struct cmd_list_element *) xmalloc (sizeof (struct cmd_list_element)); @@ -163,12 +159,8 @@ deprecate_cmd (struct cmd_list_element *cmd, char *replacement) #if 0 /* Currently unused */ struct cmd_list_element * -add_abbrev_cmd (name, class, fun, doc, list) - char *name; - enum command_class class; - void (*fun) (char *, int); - char *doc; - struct cmd_list_element **list; +add_abbrev_cmd (char *name, enum command_class class, void (*fun) (char *, int), + char *doc, struct cmd_list_element **list) { register struct cmd_list_element *c = add_cmd (name, class, fun, doc, list); @@ -212,16 +204,10 @@ add_alias_cmd (char *name, char *oldname, enum command_class class, of the variable containing that list. */ struct cmd_list_element * -add_prefix_cmd (name, class, fun, doc, prefixlist, prefixname, - allow_unknown, list) - char *name; - enum command_class class; - void (*fun) (char *, int); - char *doc; - struct cmd_list_element **prefixlist; - char *prefixname; - int allow_unknown; - struct cmd_list_element **list; +add_prefix_cmd (char *name, enum command_class class, void (*fun) (char *, int), + char *doc, struct cmd_list_element **prefixlist, + char *prefixname, int allow_unknown, + struct cmd_list_element **list) { register struct cmd_list_element *c = add_cmd (name, class, fun, doc, list); c->prefixlist = prefixlist; @@ -233,16 +219,10 @@ add_prefix_cmd (name, class, fun, doc, prefixlist, prefixname, /* Like add_prefix_cmd but sets the abbrev_flag on the new command. */ struct cmd_list_element * -add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname, - allow_unknown, list) - char *name; - enum command_class class; - void (*fun) (char *, int); - char *doc; - struct cmd_list_element **prefixlist; - char *prefixname; - int allow_unknown; - struct cmd_list_element **list; +add_abbrev_prefix_cmd (char *name, enum command_class class, + void (*fun) (char *, int), char *doc, + struct cmd_list_element **prefixlist, char *prefixname, + int allow_unknown, struct cmd_list_element **list) { register struct cmd_list_element *c = add_cmd (name, class, fun, doc, list); c->prefixlist = prefixlist; |