From 447ea83b1f39dca257a1d18b102030104d66d565 Mon Sep 17 00:00:00 2001 From: kenner Date: Tue, 13 Apr 1993 21:21:03 +0000 Subject: [PATCH] (xmalloc): Don't use prototype for now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4142 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.0