public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3388e4d
)
Made acceptable for our ANSI C compiler
author
ceriel
<none@none>
Mon, 2 Dec 1991 13:55:09 +0000
(13:55 +0000)
committer
ceriel
<none@none>
Mon, 2 Dec 1991 13:55:09 +0000
(13:55 +0000)
lang/basic/src/bem.h
patch
|
blob
|
history
lang/basic/src/util.c
patch
|
blob
|
history
diff --git
a/lang/basic/src/bem.h
b/lang/basic/src/bem.h
index
1ee7b45
..
653b765
100644
(file)
--- 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 <stdlib.h>
+#else
extern char *malloc();
+#endif
diff --git
a/lang/basic/src/util.c
b/lang/basic/src/util.c
index
8f59c3c
..
05254da
100644
(file)
--- 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") ;