From c3e8c140a39edfc1a8e94991c2bcc1afb33202e0 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Wed, 23 Feb 2005 03:49:41 +0000 Subject: [PATCH] * opncls.c (bfd_zalloc): Document this function. --- bfd/ChangeLog | 4 ++++ bfd/opncls.c | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2d95ec2..c0d8508 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-02-23 Ben Elliston + + * opncls.c (bfd_zalloc): Document this function. + 2005-02-21 H.J. Lu * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with diff --git a/bfd/opncls.c b/bfd/opncls.c index ffbf65d..091c316 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -820,7 +820,6 @@ DESCRIPTION <> 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 <> and return a pointer to it. +*/ + void * bfd_zalloc (bfd *abfd, bfd_size_type size) { -- 2.7.4