public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] remove duplicate decls of source_script, cd_command
@ 2010-04-06 16:53 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2010-04-06 16:53 UTC (permalink / raw)
  To: gdb-patches

Hi.

source_script and cd_command are declared in both top.h
and cli/cli-cmds.h.  Since they're defined in cli/cli-cmds.c
I've applied this patch.

2010-04-06  Doug Evans  <dje@google.com>

	* top.h (source_script, cd_command): Delete.
	* main.c: #include "cli/cli-cmds.h"

Index: main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.81
diff -u -p -r1.81 main.c
--- main.c	8 Mar 2010 19:20:38 -0000	1.81
+++ main.c	6 Apr 2010 16:47:23 -0000
@@ -39,8 +39,8 @@
 
 #include "interps.h"
 #include "main.h"
-
 #include "source.h"
+#include "cli/cli-cmds.h"
 
 /* If nonzero, display time usage both at startup and for each command.  */
 
Index: top.h
===================================================================
RCS file: /cvs/src/src/gdb/top.h,v
retrieving revision 1.20
diff -u -p -r1.20 top.h
--- top.h	1 Jan 2010 07:31:42 -0000	1.20
+++ top.h	6 Apr 2010 16:47:23 -0000
@@ -35,8 +35,6 @@ extern char gdbinit[];
 
 extern void print_gdb_version (struct ui_file *);
 
-extern void source_script (char *, int);
-extern void cd_command (char *, int);
 extern void read_command_file (FILE *);
 extern void init_history (void);
 extern void command_loop (void);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-06 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-06 16:53 [commit] remove duplicate decls of source_script, cd_command Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).