This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] help_all tweek.
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [PATCH] help_all tweek.
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 21 Apr 2000 15:20:04 +1000
- Organization: Cygnus Solutions
FYI,
I've tweeked the following. There was an extern VS static problem.
enjoy,
Andrew
Fri Apr 21 14:37:40 2000 Andrew Cagney <cagney@b1.cygnus.com>
* command.h (help_all): Delete declaration.
* command.c (help_all): Add declaration. Convert function
argument list to ISO-C.
Index: command.c
===================================================================
RCS file: /cvs/src/src/gdb/command.c,v
retrieving revision 1.6
diff -p -r1.6 command.c
*** command.c 2000/04/20 23:51:01 1.6
--- command.c 2000/04/21 05:14:34
*************** static struct cmd_list_element *find_cmd
*** 57,62 ****
--- 57,64 ----
static void apropos_cmd_helper (struct ui_file *, struct cmd_list_element *,
struct re_pattern_buffer *, char *);
+ static void help_all (struct ui_file *stream);
+
void apropos_command (char *, int);
void _initialize_command PARAMS ((void));
*************** Command name abbreviations are allowed i
*** 609,616 ****
}
static void
! help_all (stream)
! struct ui_file *stream;
{
struct cmd_list_element *c;
extern struct cmd_list_element *cmdlist;
--- 611,617 ----
}
static void
! help_all (struct ui_file *stream)
{
struct cmd_list_element *c;
extern struct cmd_list_element *cmdlist;
Index: command.h
===================================================================
RCS file: /cvs/src/src/gdb/command.h,v
retrieving revision 1.5
diff -p -r1.5 command.h
*** command.h 2000/04/20 23:51:01 1.5
--- command.h 2000/04/21 05:14:34
*************** extern void help_list (struct cmd_list_e
*** 284,291 ****
extern void help_cmd_list (struct cmd_list_element *, enum command_class,
char *, int, struct ui_file *);
- extern void help_all (struct ui_file *);
-
extern struct cmd_list_element *
add_set_cmd PARAMS ((char *, enum command_class, var_types, char *, char *,
struct cmd_list_element **));
--- 284,289 ----