[win32] ansify prototype for my_safemalloc(), avoid warnings
Gurusamy Sarathy [Mon, 9 Feb 1998 00:30:35 +0000 (00:30 +0000)]
p4raw-id: //depot/win32/perl@489

sv.c

diff --git a/sv.c b/sv.c
index b0d81f3..9de271b 100644 (file)
--- 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);