* libbfd.c (bfd_malloc, bfd_realloc): New functions.
authorIan Lance Taylor <ian@airs.com>
Fri, 1 Dec 1995 19:48:10 +0000 (19:48 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 1 Dec 1995 19:48:10 +0000 (19:48 +0000)
commit58142f101dd3256f4741f60a6b25672d79b91371
treee7ca6dd97a327093be2076160bebd1baaf20d8a4
parent2eec871057c921ceb38fb0b7f3cd78e84b700808
* libbfd.c (bfd_malloc, bfd_realloc): New functions.
(bfd_zmalloc): Return PTR, not char *.  Take size_t, not
bfd_size_type.
* libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
(bfd_zmalloc): Change declaration.
* libbfd.h: Rebuild.
* Many files: Use bfd_malloc and bfd_realloc rather than malloc
and realloc.  Don't set bfd_error_no_memory if they fail.
22 files changed:
bfd/ChangeLog
bfd/aoutx.h
bfd/bout.c
bfd/coff-alpha.c
bfd/coff-i960.c
bfd/coff-mips.c
bfd/coff-ppc.c
bfd/coff-sh.c
bfd/coffgen.c
bfd/ecoff.c
bfd/ecofflink.c
bfd/elf.c
bfd/elfcode.h
bfd/elfcore.h
bfd/elflink.h
bfd/i386lynx.c
bfd/ieee.c
bfd/peicode.h
bfd/som.c
bfd/srec.c
bfd/sunos.c
bfd/xcofflink.c