From bbfd16d493505923da48863441d9feca45fd1b1a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 13 Apr 1993 17:21:03 -0400 Subject: [PATCH] (xmalloc): Don't use prototype for now. From-SVN: r4142 --- gcc/rtl.h | 5 +++-- gcc/tree.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/rtl.h b/gcc/rtl.h index b5fc058a76a..f223cf6fd72 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -644,12 +644,13 @@ extern rtx read_rtx (); /* At present, don't prototype xrealloc, since all of the callers don't cast their pointers to char *, and all of the xrealloc's don't use void * yet. */ -extern char *xrealloc PROTO((void *, unsigned)); +extern char *xmalloc PROTO((size_t)); +extern char *xrealloc PROTO((void *, size_t)); #else +extern char *xmalloc (); extern char *xrealloc (); #endif -extern char *xmalloc PROTO((unsigned)); extern char *oballoc PROTO((int)); extern char *permalloc PROTO((int)); extern void free PROTO((void *)); diff --git a/gcc/tree.h b/gcc/tree.h index a288c1da9e7..a0644f80007 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -997,15 +997,16 @@ union tree_node /* At present, don't prototype xrealloc, since all of the callers don't cast their pointers to char *, and all of the xrealloc's don't use void * yet. */ -extern char *xrealloc PROTO((void *, unsigned)); +extern char *xmalloc PROTO((size_t)); +extern char *xrealloc PROTO((void *, size_t)); #else +extern char *xmalloc (); extern char *xrealloc (); #endif extern char *oballoc PROTO((int)); extern char *permalloc PROTO((int)); extern char *savealloc PROTO((int)); -extern char *xmalloc PROTO((unsigned)); extern void free PROTO((void *)); /* Lowest level primitive for allocating a node. -- 2.30.2