aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-10-27 03:36:57 +0000
committerAlan Modra <amodra@gmail.com>2005-10-27 03:36:57 +0000
commitd00967c705a7d4139f55d8fbbd4dd5560eba9cd2 (patch)
tree4a59ae2eaf9bdb3fafb0d3aefadbbd1a793f058d /bfd/libbfd.h
parentb677b8c0b935ebe9c4145fad3fabc9f1f753b830 (diff)
downloadgdb-d00967c705a7d4139f55d8fbbd4dd5560eba9cd2.zip
gdb-d00967c705a7d4139f55d8fbbd4dd5560eba9cd2.tar.gz
gdb-d00967c705a7d4139f55d8fbbd4dd5560eba9cd2.tar.bz2
* cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
(bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise. * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r--bfd/libbfd.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 91f6f8b..ff1fde7 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -657,11 +657,6 @@ extern void _bfd_abort
extern file_ptr real_ftell (FILE *file);
extern int real_fseek (FILE *file, file_ptr offset, int whence);
-FILE * bfd_cache_lookup_worker
- (bfd *);
-
-extern bfd *bfd_last_cache;
-
/* List of supported target vectors, and the default vector (if
bfd_default_vector[0] is NULL, there is no default). */
extern const bfd_target * const *bfd_target_vector;
@@ -767,21 +762,12 @@ struct _bfd_window_internal {
unsigned mapped : 1; /* 1 = mmap, 0 = malloc */
};
/* Extracted from cache.c. */
-#define BFD_CACHE_MAX_OPEN 10
-extern bfd *bfd_last_cache;
-
-#define bfd_cache_lookup(x) \
- ((x) == bfd_last_cache ? \
- (FILE *) (bfd_last_cache->iostream): \
- bfd_cache_lookup_worker (x))
bfd_boolean bfd_cache_init (bfd *abfd);
bfd_boolean bfd_cache_close (bfd *abfd);
FILE* bfd_open_file (bfd *abfd);
-FILE *bfd_cache_lookup_worker (bfd *abfd);
-
/* Extracted from reloc.c. */
#ifdef _BFD_MAKE_TABLE_bfd_reloc_code_real