symtab.c: forward decl cleanup
authorDoug Evans <xdje42@gmail.com>
Sun, 26 Oct 2014 05:22:47 +0000 (22:22 -0700)
committerDoug Evans <xdje42@gmail.com>
Sun, 26 Oct 2014 05:22:47 +0000 (22:22 -0700)
gdb/ChangeLog:

* symtab.c (types_info): Delete forward decl.
(functions_info, variables_info, sources_info): Ditto.
(_initialize_symtab): Rewrite forward decl to use
initialize_file_ftype.

gdb/ChangeLog
gdb/symtab.c

index 6d10648174e52b980158e6d6398463554de8e373..1ff55a67284a0eff59fd4ce7452459e88e15bc7c 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2014-10-25  Doug Evans  <xdje42@gmail.com>
 
        * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
index 2423b0929286b0371f8d36a3fc8a490530ec66dc..266cc941c05748e9ca83b77a6c5cefa5035b00b2 100644 (file)
 
 #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".  */