summaryrefslogtreecommitdiff
path: root/libiberty/xmalloc.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-07 21:53:31 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-07 21:53:31 +0000
commita3a8a3df15ba3bfeaad5a3fa695b1736c2a33fd1 (patch)
tree12540ed2bdf09e822d8d7262f4f4319edd0771c7 /libiberty/xmalloc.c
parent9bccb7a35c3537745d3a9d597764aa8f78032bb9 (diff)
downloadgcc-a3a8a3df15ba3bfeaad5a3fa695b1736c2a33fd1.tar.gz
* alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c, strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c, xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix spelling. Give names to function arguments in documentation. Use (void) prototypes in documentation. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46068 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r--libiberty/xmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c
index 3fc23a91c7a..bf0cf2d6ed4 100644
--- a/libiberty/xmalloc.c
+++ b/libiberty/xmalloc.c
@@ -29,13 +29,13 @@ a program to contain @code{#define malloc xmalloc} in its source.
@end deftypefn
-@deftypefn Replacement void* xrealloc (void*, size_t)
+@deftypefn Replacement void* xrealloc (void *@var{ptr}, size_t @var{size})
Reallocate memory without fail. This routine functions like @code{realloc},
but will behave the same as @code{xmalloc} if memory cannot be found.
@end deftypefn
-@deftypefn Replacement void* xcalloc (size_t, size_t)
+@deftypefn Replacement void* xcalloc (size_t @var{nelem}, size_t @var{elsize})
Allocate memory without fail, and set it to zero. This routine functions
like @code{calloc}, but will behave the same as @code{xmalloc} if memory