This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] symtab.c: forward decl cleanup
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 25 Oct 2014 22:24:47 -0700
- Subject: [COMMITTED PATCH] symtab.c: forward decl cleanup
- Authentication-results: sourceware.org; auth=none
Hi.
This is just a minor cleanup of symtab.c.
Committed.
2014-10-25 Doug Evans <xdje42@gmail.com>
* symtab.c (types_info): Delete forward decl.
(functions_info, variables_info, sources_info): Ditto.
(_initialize_symtab): Rewrite forward decl to use
initialize_file_ftype.
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 2423b09..266cc94 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -61,18 +61,10 @@
#include "parser-defs.h"
-/* Prototypes for local functions */
+/* Forward declarations for local functions. */
static void rbreak_command (char *, int);
-static void types_info (char *, int);
-
-static void functions_info (char *, int);
-
-static void variables_info (char *, int);
-
-static void sources_info (char *, int);
-
static int find_line_common (struct linetable *, int, int *, int);
static struct symbol *lookup_symbol_aux (const char *name,
@@ -98,9 +90,7 @@ struct symbol *lookup_symbol_aux_quick (struct objfile *objfile,
const char *name,
const domain_enum domain);
-void _initialize_symtab (void);
-
-/* */
+extern initialize_file_ftype _initialize_symtab;
/* Program space key for finding name and language of "main". */