summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-02-23 03:49:41 +0000
committerBen Elliston <bje@au.ibm.com>2005-02-23 03:49:41 +0000
commita7bc44d175c110c075894ece4dd412b9dcf3fd2d (patch)
treeaef4ef1661d0a4b83be7ebe37854f923e8191a4c
parent528c716710be560b68c82d16ce849d801ffa0183 (diff)
downloadbinutils-redhat-a7bc44d175c110c075894ece4dd412b9dcf3fd2d.tar.gz
* opncls.c (bfd_zalloc): Document this function.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/opncls.c13
2 files changed, 16 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2d95ec25ec..c0d85082b0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-23 Ben Elliston <bje@au.ibm.com>
+
+ * opncls.c (bfd_zalloc): Document this function.
+
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
diff --git a/bfd/opncls.c b/bfd/opncls.c
index ffbf65d55f..091c3168bf 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -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)
{