aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-31 05:49:55 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-31 05:49:55 +0000
commit10689f25cd4c3fc7bae2211eb7cc6324326b9519 (patch)
tree30803db559e799a33503a68d05c8ae9f047876e0 /gdb
parent749499cbc4bbd424e9724cd1ded6fd8db340f1ad (diff)
downloadgdb-10689f25cd4c3fc7bae2211eb7cc6324326b9519.zip
gdb-10689f25cd4c3fc7bae2211eb7cc6324326b9519.tar.gz
gdb-10689f25cd4c3fc7bae2211eb7cc6324326b9519.tar.bz2
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/top.c24
-rw-r--r--gdb/ui-out.c5
3 files changed, 16 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3109ba8..4cbd596 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2000-10-30 Kevin Buettner <kevinb@redhat.com>
+ * top.c (simplified_command_loop, add_info, add_com,
+ help_command): Protoize.
+ * ui-out.c (gdb_query): Protoize.
+
+2000-10-30 Kevin Buettner <kevinb@redhat.com>
+
Changes based on analysis from Peter Schauer:
* solist.h (struct so_list): Remove field lmend.
(struct target_so_ops): Remove field lm_addr. Add field
diff --git a/gdb/top.c b/gdb/top.c
index 813a5ba4..c921407 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1643,9 +1643,8 @@ command_loop (void)
such things as displaying time and space usage. If the user asks
for those, they won't work. */
void
-simplified_command_loop (read_input_func, execute_command_func)
- char *(*read_input_func) (char *);
- void (*execute_command_func) (char *, int);
+simplified_command_loop (char *(*read_input_func) (char *),
+ void (*execute_command_func) (char *, int))
{
struct cleanup *old_chain;
char *command;
@@ -2871,10 +2870,7 @@ make_cleanup_free_command_lines (struct command_line **arg)
/* Add an element to the list of info subcommands. */
struct cmd_list_element *
-add_info (name, fun, doc)
- char *name;
- void (*fun) (char *, int);
- char *doc;
+add_info (char *name, void (*fun) (char *, int), char *doc)
{
return add_cmd (name, no_class, fun, doc, &infolist);
}
@@ -2935,11 +2931,8 @@ show_command (char *arg, int from_tty)
/* Add an element to the list of commands. */
struct cmd_list_element *
-add_com (name, class, fun, doc)
- char *name;
- enum command_class class;
- void (*fun) (char *, int);
- char *doc;
+add_com (char *name, enum command_class class, void (*fun) (char *, int),
+ char *doc)
{
return add_cmd (name, class, fun, doc, &cmdlist);
}
@@ -2959,11 +2952,12 @@ error_no_arg (char *why)
error ("Argument required (%s).", why);
}
+/* Provide documentation on command or list given by COMMAND. FROM_TTY
+ is ignored. */
+
/* ARGSUSED */
static void
-help_command (command, from_tty)
- char *command;
- int from_tty; /* Ignored */
+help_command (char *command, int from_tty)
{
help_cmd (command, gdb_stdout);
}
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index cf56a0d..a95831d 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -542,10 +542,7 @@ gdb_error (ui_out * uiout, int severity, char *format,...)
}
void
-gdb_query (uiout, qflags, qprompt)
- struct ui_out *uiout;
- int flags;
- char *qprompt;
+gdb_query (struct ui_out *uiout, int qflags, char *qprompt)
{
}
#endif