From: Kevin Buettner Date: Tue, 8 Aug 2000 00:17:39 +0000 (+0000) Subject: Protoize. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af1c1752c49aa2699ef9b360ad6b5b9c862021d5;p=binutils-gdb.git Protoize. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4bafc70828c..d06101d89eb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-08-07 Kevin Buettner + + * command.c (add_cmd, add_abbrev_cmd, add_prefix_cmd, + add_abbrev_prefix_cmd): Protoize. + 2000-08-07 Elena Zannoni * objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss diff --git a/gdb/command.c b/gdb/command.c index aff3191569a..56fb85ea463 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;