* dbxread.c, coffread.c: static-ize functions that were
authorJohn Gilmore <gnu@cygnus>
Fri, 4 Oct 1991 06:46:30 +0000 (06:46 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 4 Oct 1991 06:46:30 +0000 (06:46 +0000)
gratuitiously external.  (From Fred Fish.)

gdb/ChangeLog
gdb/coffread.c
gdb/dbxread.c

index ac296d1..6d0711d 100644 (file)
@@ -1,5 +1,8 @@
 Thu Oct  3 09:33:26 1991  John Gilmore  (gnu at cygnus.com)
 
+       * dbxread.c, coffread.c:  static-ize functions that were
+       gratuitiously external.  (From Fred Fish.)
+
        * c-exp.y:  sym->class to SYMBOL_CLASS (sym).
 
        * dbxread.c (dbx_lookup_type):  Keep doubling size of typevector
index b37ef06..37c5af3 100644 (file)
@@ -627,7 +627,7 @@ struct coff_symfile_info {
 
 static int text_bfd_scnum;
 
-void
+static void
 coff_symfile_init (sf)
      struct sym_fns *sf;
 {
@@ -728,7 +728,7 @@ static bfd *symfile_bfd;
    shared libraries or add_file!  */
 
 /* ARGSUSED */
-void
+static void
 coff_symfile_read (sf, addr, mainline)
      struct sym_fns *sf;
      CORE_ADDR addr;
@@ -822,7 +822,7 @@ coff_symfile_read (sf, addr, mainline)
   select_source_symtab (0);    /* FIXME, this might be too slow, see dbxread */
 }
 
-void
+static void
 coff_new_init ()
 {
   /* There seems to be nothing to do except free_all_symtabs and set
index c201f43..b41a1ca 100644 (file)
@@ -491,7 +491,7 @@ static int header_file_prev_index;
 /* Free up old header file tables, and allocate new ones.
    We're reading a new symbol file now.  */
 
-void
+static void
 free_and_init_header_files ()
 {
   register int i;
@@ -1233,7 +1233,7 @@ pop_subfile ()
   return name;
 }
 \f
-void
+static void
 record_misc_function (name, address, type)
      char *name;
      CORE_ADDR address;
@@ -1271,7 +1271,7 @@ static bfd *symfile_bfd;
    MAINLINE is true if we are reading the main symbol
    table (as opposed to a shared lib or dynamically loaded file).  */
 
-void
+static void
 dbx_symfile_read (sf, addr, mainline)
      struct sym_fns *sf;
      CORE_ADDR addr;
@@ -1338,7 +1338,7 @@ dbx_symfile_read (sf, addr, mainline)
    symbol file is specified (not just adding some symbols from another
    file, e.g. a shared library).  */
 
-void
+static void
 dbx_new_init ()
 {
   /* Empty the hash table of global syms looking for values.  */
@@ -1373,7 +1373,7 @@ dbx_new_init ()
    be called unless this is an a.out (or very similar) file. 
    FIXME, there should be a cleaner peephole into the BFD environment here.  */
 
-void
+static void
 dbx_symfile_init (sf)
   struct sym_fns *sf;
 {
@@ -1562,7 +1562,7 @@ add_bincl_to_list (pst, name, instance)
    bincl in the list.  Return the partial symtab associated
    with that header_file_location.  */
 
-struct partial_symtab *
+static struct partial_symtab *
 find_corresponding_bincl_psymtab (name, instance)
      char *name;
      int instance;