* 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.
Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
+ * 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.
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)
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)
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;