aboutsummaryrefslogtreecommitdiff
path: root/bfd/format.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-01-25 13:25:26 +0000
committerDavid MacKenzie <djm@cygnus>1994-01-25 13:25:26 +0000
commitf4bd7a8f0ebcc8d4c6c289ddfc085c1c00c1a497 (patch)
treec02524f3627fbb0582617c73ce68b89157699282 /bfd/format.c
parent2ba6182bbc59b54926cfb2c462888ddad74e30bf (diff)
downloadgdb-f4bd7a8f0ebcc8d4c6c289ddfc085c1c00c1a497.zip
gdb-f4bd7a8f0ebcc8d4c6c289ddfc085c1c00c1a497.tar.gz
gdb-f4bd7a8f0ebcc8d4c6c289ddfc085c1c00c1a497.tar.bz2
* opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
"_bfd_" to function names. * archive.c (_bfd_create_empty_archive_element_shell), libbfd-in.h: Change callers. * libbfd.c (bfd_zmalloc): Renamed from zalloc. * libbfd.c (bfd_add_to_string_table), trad-core.c (trad_unix_core_file_p), targets.c (bfd_target_list), ptrace-core.c (ptrace_unix_core_file_p), opncls.c (new_bfd), libbfd-in.h, ieee.c (ieee_make_empty_symbol), elf32-hppa.c (hppa_elf_stub_branch_reloc), (hppa_elf_stub_reloc): Change callers. * libbfd.h: Regenerated. * archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name. (_bfd_get_elt_at_filepos), coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h: Change callers. * format.c (bfd_check_format_matches), libbfd-in.h, targets.c, elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector and default_vector to bfd_default_vector. * libbfd.h: Regenerated.
Diffstat (limited to 'bfd/format.c')
-rw-r--r--bfd/format.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/format.c b/bfd/format.c
index ad7bc81..fc7945a 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -1,5 +1,5 @@
/* Generic BFD support for file formats.
- Copyright (C) 1990-1991 Free Software Foundation, Inc.
+ Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -45,7 +45,7 @@ SECTION
#include "libbfd.h"
/* IMPORT from targets.c. */
-extern CONST size_t bfd_default_vector_entries;
+extern CONST size_t _bfd_target_vector_entries;
/*
FUNCTION
@@ -142,7 +142,7 @@ bfd_check_format_matches (abfd, format, matching)
{
*matching = matching_vector =
bfd_xmalloc_by_size_t (sizeof (char *) *
- (bfd_default_vector_entries + 1));
+ (_bfd_target_vector_entries + 1));
matching_vector[0] = NULL;
}
right_targ = 0;
@@ -165,7 +165,7 @@ bfd_check_format_matches (abfd, format, matching)
}
}
- for (target = target_vector; *target != NULL; target++) {
+ for (target = bfd_target_vector; *target != NULL; target++) {
bfd_target *temp;
abfd->xvec = *target; /* Change BFD's target temporarily */
@@ -186,7 +186,7 @@ bfd_check_format_matches (abfd, format, matching)
/* If this is the default target, accept it, even if other targets
might match. People who want those other targets have to set
the GNUTARGET variable. */
- if (temp == default_vector[0])
+ if (temp == bfd_default_vector[0])
{
match_count = 1;
if (matching)