]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libiberty/calloc.c
Imported gcc-4.4.3
[msp430-gcc.git] / libiberty / calloc.c
index b342f6c1b3b54633cb53822cbd9e57368a54df75..f4bd27b1cd2a460c89c1e5ba2e3e94190db98c85 100644 (file)
@@ -13,20 +13,14 @@ Uses @code{malloc} to allocate storage for @var{nelem} objects of
 */
  
 #include "ansidecl.h"
-#include "libiberty.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));
+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;