summaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
committerBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
commit7db0d81daa3dd1e32b84100156cbec023e6dee13 (patch)
treec5ca577f110a186734fee5f50997a69cd2930617 /bfd/libbfd-in.h
parent391c0dc766b62b9ed112c1d8d365d8321770c452 (diff)
downloadbinutils-redhat-7db0d81daa3dd1e32b84100156cbec023e6dee13.tar.gz
* archive.c: Include hashtab.h.
(struct ar_cache): Rename `arelt' to `arbfd' and remove `next'. (_bfd_look_for_bfd_in_cache): Reimplement using htab_find. (hash_file_ptr): New function. (eq_file_ptr): Likewise. (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table. * libbfd-in.h: Include hashtab.h. (struct artdata): Change `cache' member type to htab_t. * libbfd.h: Rebuild.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 396ece3adc..cc65a56301 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -23,6 +23,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#include "hashtab.h"
+
/* Align an address upward to a boundary, expressed as a number of bytes.
E.g. align to an 8-byte boundary with argument of 8. Take care never
to wrap around if the address is within boundary-1 of the end of the
@@ -57,7 +59,7 @@ struct bfd_in_memory
struct artdata {
file_ptr first_file_filepos;
/* Speed up searching the armap */
- struct ar_cache *cache;
+ htab_t cache;
bfd *archive_head; /* Only interesting in output routines */
carsym *symdefs; /* the symdef entries */
symindex symdef_count; /* how many there are */