This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
I'm committing the following as obvious, however are bfd_alloc and bfd_zalloc really internal functions? They _do_ appear in libbfd.h.
Index: opncls.c
===================================================================
RCS file: /cvs/src/src/bfd/opncls.c,v
retrieving revision 1.28
diff -u -p -r1.28 opncls.c
--- opncls.c 20 Feb 2005 14:59:07 -0000 1.28
+++ opncls.c 23 Feb 2005 03:48:35 -0000
@@ -820,7 +820,6 @@ DESCRIPTION
<<abfd>> and return a pointer to it.
*/-
void *
bfd_alloc (bfd *abfd, bfd_size_type size)
{
@@ -838,6 +837,18 @@ bfd_alloc (bfd *abfd, bfd_size_type size
return ret;
}+/*
+INTERNAL_FUNCTION
+ bfd_zalloc
+
+SYNOPSIS
+ void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
+
+DESCRIPTION
+ Allocate a block of @var{wanted} bytes of zeroed memory
+ attached to <<abfd>> and return a pointer to it.
+*/
+
void *
bfd_zalloc (bfd *abfd, bfd_size_type size)
{
Attachment:
signature.asc
Description: OpenPGP digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |