Made acceptable for our ANSI C compiler

This commit is contained in:
ceriel
1991-12-03 11:03:58 +00:00
parent 9e2361fc8f
commit a93813c1f6
10 changed files with 18 additions and 17 deletions

View File

@@ -53,7 +53,13 @@ extern char *iname; /* stdin */
typedef char byte;
typedef char * string;
extern char *malloc(),*myalloc();
extern char *myalloc();
#if __STDC__
#include <stdlib.h>
#else
extern char *malloc();
#endif
#include <cg_pattern.h>

View File

@@ -17,7 +17,7 @@ extern char *sprintf();
char * myalloc(n) {
register char *p;
p= (char*) malloc((unsigned)n);
p= malloc((unsigned)n);
if (p==0) {
yyerror("Out of core");
exit(1);