From 062a1b96e049f022c42482d10bbc89a59b28a2c9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Mar 1997 17:51:20 +0000 Subject: * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove. * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. * libbfd.h: Rebuild. * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. * sunos.c (sunos_add_dynamic_symbols): Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/libbfd-in.h | 2 -- bfd/libbfd.h | 2 -- bfd/opncls.c | 21 --------------------- 4 files changed, 6 insertions(+), 25 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 63fd35e..a99e7dde 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ Mon Mar 17 11:32:53 1997 Ian Lance Taylor + * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove. + * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. + * libbfd.h: Rebuild. + * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. + * sunos.c (sunos_add_dynamic_symbols): Likewise. + * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove old version of bfd_alloc. * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index cefe914..8719fec 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -91,8 +91,6 @@ extern bfd_error_handler_type _bfd_error_handler; PTR bfd_alloc PARAMS ((bfd *abfd, size_t size)); PTR bfd_zalloc PARAMS ((bfd *abfd, size_t size)); -void bfd_alloc_grow PARAMS ((bfd *abfd, PTR thing, size_t size)); -PTR bfd_alloc_finish PARAMS ((bfd *abfd)); #define bfd_release(x,y) (void) obstack_free(&(x->memory),y) diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 60f32cb..d20b8da 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -91,8 +91,6 @@ extern bfd_error_handler_type _bfd_error_handler; PTR bfd_alloc PARAMS ((bfd *abfd, size_t size)); PTR bfd_zalloc PARAMS ((bfd *abfd, size_t size)); -void bfd_alloc_grow PARAMS ((bfd *abfd, PTR thing, size_t size)); -PTR bfd_alloc_finish PARAMS ((bfd *abfd)); #define bfd_release(x,y) (void) obstack_free(&(x->memory),y) diff --git a/bfd/opncls.c b/bfd/opncls.c index f65dbff..810df70 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -565,27 +565,6 @@ bfd_alloc (abfd, size) return ret; } -void -bfd_alloc_grow (abfd, ptr, size) - bfd *abfd; - PTR ptr; - size_t size; -{ - (void) obstack_grow(&(abfd->memory), ptr, size); -} - -PTR -bfd_alloc_finish (abfd) - bfd *abfd; -{ - PTR ret; - - ret = obstack_finish (&(abfd->memory)); - if (ret == NULL) - bfd_set_error (bfd_error_no_memory); - return ret; -} - PTR bfd_zalloc (abfd, size) bfd *abfd; -- cgit v1.1