projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some examples.
[u/mdw/putty]
/
tree234.c
diff --git
a/tree234.c
b/tree234.c
index
fafb370
..
7830aeb
100644
(file)
--- a/
tree234.c
+++ b/
tree234.c
@@
-6,10
+6,12
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include "puttymem.h"
+
#include "tree234.h"
#include "tree234.h"
-#define mknew(typ) ( (typ *) malloc (sizeof (typ)) )
-#define sfree free
+#define mknew(typ) ( (typ *)
s
malloc (sizeof (typ)) )
+/* #define sfree free */
#ifdef TEST
#define LOG(x) (printf x)
#ifdef TEST
#define LOG(x) (printf x)
@@
-819,8
+821,8
@@
void addtest(void *elem) {
if (arraysize < arraylen+1) {
arraysize = arraylen+1+256;
if (arraysize < arraylen+1) {
arraysize = arraylen+1+256;
- array = (array == NULL ? malloc(arraysize*sizeof(*array)) :
- realloc(array, arraysize*sizeof(*array)));
+ array = (array == NULL ?
s
malloc(arraysize*sizeof(*array)) :
+
s
realloc(array, arraysize*sizeof(*array)));
}
i = 0;
}
i = 0;