From d665c133375efdf305833da1aceeebefc5d313d9 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Mon, 9 Feb 1998 00:30:35 +0000 Subject: [PATCH] [win32] ansify prototype for my_safemalloc(), avoid warnings p4raw-id: //depot/win32/perl@489 --- sv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sv.c b/sv.c index b0d81f3..9de271b 100644 --- a/sv.c +++ b/sv.c @@ -59,6 +59,10 @@ static void sv_mortalgrow _((void)); static void sv_unglob _((SV* sv)); static void sv_check_thinkfirst _((SV *sv)); +#ifndef PURIFY +static void *my_safemalloc(MEM_SIZE size); +#endif + typedef void (*SVFUNC) _((SV*)); #ifdef PURIFY @@ -576,8 +580,7 @@ more_xpv(void) # define my_safefree(s) free(s) #else static void* -my_safemalloc(size) - MEM_SIZE size; +my_safemalloc(MEM_SIZE size) { char *p; New(717, p, size, char); -- 2.7.4