Made acceptable for our ANSI C compiler
authorceriel <none@none>
Mon, 2 Dec 1991 13:55:09 +0000 (13:55 +0000)
committerceriel <none@none>
Mon, 2 Dec 1991 13:55:09 +0000 (13:55 +0000)
lang/basic/src/bem.h
lang/basic/src/util.c

index 1ee7b45..653b765 100644 (file)
@@ -36,7 +36,9 @@
 #define CHANNEL                0
 #define THRESHOLD      40              /* for splitting blocks */
 
+#ifndef __STDC__
 #define void           int             /* Some C compilers don't know void */
+#endif
 
 extern int     BEMINTSIZE, BEMPTRSIZE, BEMFLTSIZE;
 extern char    *program;               /* name of source program */
@@ -73,4 +75,8 @@ extern char *salloc();
 extern char *sprint();
 extern char *strcpy();
 extern char *strcat();
+#if __STDC__
+#include <stdlib.h>
+#else
 extern char *malloc();
+#endif
index 8f59c3c..05254da 100644 (file)
@@ -86,7 +86,6 @@ char *salloc(length)
 unsigned length;
 {              
        char *s,*c;
-       extern char *malloc() ;
 
        s=c=malloc(length);
        if ( !s ) fatal("Out of memory") ;