Made acceptable for our ANSI C compiler
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user