+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:
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;
/* 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);
}
/* 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);
}
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);
}