From: ceriel Date: Mon, 2 Dec 1991 13:55:09 +0000 (+0000) Subject: Made acceptable for our ANSI C compiler X-Git-Tag: release-5-5~581 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f61ddc49262e0e72530e93007cf9243caf0c0be7;p=ack.git Made acceptable for our ANSI C compiler --- diff --git a/lang/basic/src/bem.h b/lang/basic/src/bem.h index 1ee7b457e..653b765a9 100644 --- a/lang/basic/src/bem.h +++ b/lang/basic/src/bem.h @@ -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 +#else extern char *malloc(); +#endif diff --git a/lang/basic/src/util.c b/lang/basic/src/util.c index 8f59c3c37..05254da1a 100644 --- a/lang/basic/src/util.c +++ b/lang/basic/src/util.c @@ -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") ;