Eliminate arg from bfd_xmalloc_by_size_t macro, allowing
undoing of obstack parts of last change.
This commit is contained in:
parent
0ee3427297
commit
6a5439a91f
4 changed files with 5 additions and 7 deletions
|
@ -5,8 +5,6 @@ Fri Feb 4 17:28:32 1994 David J. Mackenzie (djm@thepub.cygnus.com)
|
||||||
* libbfd-in.h: Define them as macros calling xmalloc and declare
|
* libbfd-in.h: Define them as macros calling xmalloc and declare
|
||||||
xmalloc.
|
xmalloc.
|
||||||
* libbfd.h: Rebuilt.
|
* libbfd.h: Rebuilt.
|
||||||
* ecofflink.c hash.c ieee.c opncls.c (obstack_chunk_alloc): Define
|
|
||||||
to be xmalloc, not bfd_xmalloc_by_size_t.
|
|
||||||
|
|
||||||
Thu Feb 3 16:49:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Thu Feb 3 16:49:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ static boolean ecoff_write_symhdr PARAMS ((bfd *, struct ecoff_debug_info *,
|
||||||
file_ptr where));
|
file_ptr where));
|
||||||
|
|
||||||
/* Obstack allocation and deallocation routines. */
|
/* Obstack allocation and deallocation routines. */
|
||||||
#define obstack_chunk_alloc xmalloc
|
#define obstack_chunk_alloc bfd_xmalloc_by_size_t
|
||||||
#define obstack_chunk_free free
|
#define obstack_chunk_free free
|
||||||
|
|
||||||
/* The minimum amount of data to allocate. */
|
/* The minimum amount of data to allocate. */
|
||||||
|
|
|
@ -82,8 +82,8 @@ char *bfd_zmalloc PARAMS ((bfd_size_type size));
|
||||||
extern PTR xmalloc PARAMS ((size_t));
|
extern PTR xmalloc PARAMS ((size_t));
|
||||||
/* SIZE is bfd_size_type. */
|
/* SIZE is bfd_size_type. */
|
||||||
#define bfd_xmalloc(size) xmalloc ((size_t) size)
|
#define bfd_xmalloc(size) xmalloc ((size_t) size)
|
||||||
/* SIZE is size_t. */
|
/* Defined without an argument so its address can be used. */
|
||||||
#define bfd_xmalloc_by_size_t(size) xmalloc (size)
|
#define bfd_xmalloc_by_size_t xmalloc
|
||||||
|
|
||||||
/* These routines allocate and free things on the BFD's obstack. Note
|
/* These routines allocate and free things on the BFD's obstack. Note
|
||||||
that realloc can never occur in place. */
|
that realloc can never occur in place. */
|
||||||
|
|
|
@ -82,8 +82,8 @@ char *bfd_zmalloc PARAMS ((bfd_size_type size));
|
||||||
extern PTR xmalloc PARAMS ((size_t));
|
extern PTR xmalloc PARAMS ((size_t));
|
||||||
/* SIZE is bfd_size_type. */
|
/* SIZE is bfd_size_type. */
|
||||||
#define bfd_xmalloc(size) xmalloc ((size_t) size)
|
#define bfd_xmalloc(size) xmalloc ((size_t) size)
|
||||||
/* SIZE is size_t. */
|
/* Defined without an argument so its address can be used. */
|
||||||
#define bfd_xmalloc_by_size_t(size) xmalloc (size)
|
#define bfd_xmalloc_by_size_t xmalloc
|
||||||
|
|
||||||
/* These routines allocate and free things on the BFD's obstack. Note
|
/* These routines allocate and free things on the BFD's obstack. Note
|
||||||
that realloc can never occur in place. */
|
that realloc can never occur in place. */
|
||||||
|
|
Loading…
Reference in a new issue