summaryrefslogtreecommitdiff
blob: ea3a8eb3602e06fefa8adf691dd7f68a5d001125 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
diff -Naur dmalloc-5.4.2.orig/configure dmalloc-5.4.2/configure
--- dmalloc-5.4.2.orig/configure	2005-02-04 17:33:49.922306392 -0800
+++ dmalloc-5.4.2/configure	2005-02-04 17:59:03.332233112 -0800
@@ -5443,7 +5443,7 @@
   heap_p += size;
   return pnt;
 }
-char *calloc (int number, int size) {
+static char *calloc (int number, int size) {
   char *start, *pnt, *end;
   if (main_b) _exit(0);
   /* it should be already 0s */
@@ -5453,7 +5453,7 @@
   while (pnt < end) { *pnt++ = '\0'; }
   return start;
 }
-char *realloc (char *old_pnt, int new_size) {
+static char *realloc (char *old_pnt, int new_size) {
   char *start, *pnt, *end;
   if (main_b) _exit(0);
   start = malloc (new_size);
@@ -5717,14 +5717,14 @@
 static char heap_mem[102400], *heap_p = heap_mem;
 free (char *pnt) {
 }
-char *malloc (int size) {
+static char *malloc (int size) {
   char *pnt;
   getenv("PATH");
   pnt = heap_p;
   heap_p += size;
   return pnt;
 }
-char *calloc (int number, int size) {
+static char *calloc (int number, int size) {
   char *start, *pnt, *end;
   getenv("PATH");
   /* it should be already 0s */
@@ -5734,7 +5734,7 @@
   while (pnt < end) { *pnt++ = '\0'; }
   return start;
 }
-char *realloc (char *old_pnt, int new_size) {
+static char *realloc (char *old_pnt, int new_size) {
   char *start, *pnt, *end;
   getenv("PATH");
   start = malloc (new_size);
diff -Naur dmalloc-5.4.2.orig/configure.ac dmalloc-5.4.2/configure.ac
--- dmalloc-5.4.2.orig/configure.ac	2005-02-04 17:54:41.131093744 -0800
+++ dmalloc-5.4.2/configure.ac	2005-02-04 16:36:10.5.4.25872 -0800
@@ -330,14 +330,14 @@
 static int main_b = 0;
 static char heap_mem[102400], *heap_p = heap_mem;
 free () { if (main_b) _exit(0); }
-char *malloc (int size) {
+static char *malloc (int size) {
   char *pnt;
   if (main_b) _exit(0);
   pnt = heap_p;
   heap_p += size;
   return pnt;
 }
-char *calloc (int number, int size) {
+static char *calloc (int number, int size) {
   char *start, *pnt, *end;
   if (main_b) _exit(0);
   /* it should be already 0s */
@@ -347,7 +347,7 @@
   while (pnt < end) { *pnt++ = '\0'; }
   return start;
 }
-char *realloc (char *old_pnt, int new_size) {
+static char *realloc (char *old_pnt, int new_size) {
   char *start, *pnt, *end;
   if (main_b) _exit(0);
   start = malloc (new_size);
@@ -388,14 +388,14 @@
 static char heap_mem[102400], *heap_p = heap_mem;
 free (char *pnt) {
 }
-char *malloc (int size) {
+static char *malloc (int size) {
   char *pnt;
   getenv("PATH");
   pnt = heap_p;
   heap_p += size;
   return pnt;
 }
-char *calloc (int number, int size) {
+static char *calloc (int number, int size) {
   char *start, *pnt, *end;
   getenv("PATH");
   /* it should be already 0s */
@@ -405,7 +405,7 @@
   while (pnt < end) { *pnt++ = '\0'; }
   return start;
 }
-char *realloc (char *old_pnt, int new_size) {
+static char *realloc (char *old_pnt, int new_size) {
   char *start, *pnt, *end;
   getenv("PATH");
   start = malloc (new_size);