diff options
author | DJ Delorie <dj@delorie.com> | 2005-03-27 05:28:42 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-03-27 05:28:42 +0000 |
commit | 0feff437d51b3a776c711b152cacdd81205d8285 (patch) | |
tree | 513163b5b7eb01fa7fa71fc3efb89484e7f5a22e /libiberty/calloc.c | |
parent | 26674bb0864b4b28d9a0f40b0e5b6af0f5e31af1 (diff) | |
download | gdb-0feff437d51b3a776c711b152cacdd81205d8285.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/calloc.c')
-rw-r--r-- | libiberty/calloc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libiberty/calloc.c b/libiberty/calloc.c index 50736823077..f4bd27b1cd2 100644 --- a/libiberty/calloc.c +++ b/libiberty/calloc.c @@ -13,19 +13,14 @@ Uses @code{malloc} to allocate storage for @var{nelem} objects of */ #include "ansidecl.h" -#ifdef ANSI_PROTOTYPES #include <stddef.h> -#else -#define size_t unsigned long -#endif /* For systems with larger pointers than ints, this must be declared. */ -PTR malloc PARAMS ((size_t)); -void bzero PARAMS ((PTR, size_t)); +PTR malloc (size_t); +void bzero (PTR, size_t); PTR -calloc (nelem, elsize) - size_t nelem, elsize; +calloc (size_t nelem, size_t elsize) { register PTR ptr; |