summaryrefslogtreecommitdiff
path: root/Build/source/utils/m-tx/mtx-0.60d-PATCHES/patch-02-malloc
blob: 071cdd5f833e81a13dda05b1600f618f16179f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ur mtx-0.60d.orig/cfuncs.c mtx-0.60d/cfuncs.c
--- mtx-0.60d.orig/cfuncs.c	2012-04-05 13:05:08.000000000 +0200
+++ mtx-0.60d/cfuncs.c	2012-10-04 13:27:57.000000000 +0200
@@ -18,6 +18,8 @@
   if (x==EOF) return 1;
   ungetc(x,infile); return 0;
   }
+void *__MallocTemp__;
+int _OutMem(void) { fprintf(stderr,"Out of memory\n"); exit(-2); return -2; }
 void PASCAL_MAIN (int npars, char ** pars)
 { P_argc = npars; P_argv = pars; }
 
diff -ur mtx-0.60d.orig/multfile.c mtx-0.60d/multfile.c
--- mtx-0.60d.orig/multfile.c	2012-04-05 14:47:20.000000000 +0200
+++ mtx-0.60d/multfile.c	2012-10-04 11:56:59.000000000 +0200
@@ -60,7 +60,7 @@
     printf("===! Ignoring recursive include of file %s\n", filename);
     return;
   }
-  newnode = malloc(sizeof(filenode));
+  newnode = Malloc(sizeof(filenode));
   newnode->actualfile = NULL;
   strcpy(newnode->name, filename);
   newnode->prev = current;