Made acceptable for our ANSI C compiler
This commit is contained in:
parent
3388e4deb6
commit
f61ddc4926
|
@ -36,7 +36,9 @@
|
||||||
#define CHANNEL 0
|
#define CHANNEL 0
|
||||||
#define THRESHOLD 40 /* for splitting blocks */
|
#define THRESHOLD 40 /* for splitting blocks */
|
||||||
|
|
||||||
|
#ifndef __STDC__
|
||||||
#define void int /* Some C compilers don't know void */
|
#define void int /* Some C compilers don't know void */
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int BEMINTSIZE, BEMPTRSIZE, BEMFLTSIZE;
|
extern int BEMINTSIZE, BEMPTRSIZE, BEMFLTSIZE;
|
||||||
extern char *program; /* name of source program */
|
extern char *program; /* name of source program */
|
||||||
|
@ -73,4 +75,8 @@ extern char *salloc();
|
||||||
extern char *sprint();
|
extern char *sprint();
|
||||||
extern char *strcpy();
|
extern char *strcpy();
|
||||||
extern char *strcat();
|
extern char *strcat();
|
||||||
|
#if __STDC__
|
||||||
|
#include <stdlib.h>
|
||||||
|
#else
|
||||||
extern char *malloc();
|
extern char *malloc();
|
||||||
|
#endif
|
||||||
|
|
|
@ -86,7 +86,6 @@ char *salloc(length)
|
||||||
unsigned length;
|
unsigned length;
|
||||||
{
|
{
|
||||||
char *s,*c;
|
char *s,*c;
|
||||||
extern char *malloc() ;
|
|
||||||
|
|
||||||
s=c=malloc(length);
|
s=c=malloc(length);
|
||||||
if ( !s ) fatal("Out of memory") ;
|
if ( !s ) fatal("Out of memory") ;
|
||||||
|
|
Loading…
Reference in a new issue