aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/cole/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-12-27 10:10:03 +0800
committersteve <steve@FreeBSD.org>1999-12-27 10:10:03 +0800
commit4f099b2db5f5a398ae434a21968b91ae41739c95 (patch)
tree15fe41549765bbfd92d5173458427436f3e5699a /textproc/cole/files
parent81eb5eeb5b00c68c0d0f46c2961ddd6a69230b8b (diff)
downloadfreebsd-ports-gnome-4f099b2db5f5a398ae434a21968b91ae41739c95.tar.gz
freebsd-ports-gnome-4f099b2db5f5a398ae434a21968b91ae41739c95.tar.zst
freebsd-ports-gnome-4f099b2db5f5a398ae434a21968b91ae41739c95.zip
Adding cole version 2.0.1
A free C OLE library PR: 14705 (1 of 2) Submitted by: Maxim Sobolev <sobomax@altavista.net>
Diffstat (limited to 'textproc/cole/files')
-rw-r--r--textproc/cole/files/patch-aa40
1 files changed, 40 insertions, 0 deletions
diff --git a/textproc/cole/files/patch-aa b/textproc/cole/files/patch-aa
new file mode 100644
index 000000000000..d7a73dcd6a8b
--- /dev/null
+++ b/textproc/cole/files/patch-aa
@@ -0,0 +1,40 @@
+--- oledecod.c.orig Thu Nov 4 14:11:11 1999
++++ oledecod.c Thu Nov 4 14:16:20 1999
+@@ -39,7 +39,7 @@
+ #include <stdarg.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include <assert.h>
+@@ -575,10 +575,12 @@
+
+ /* reorder subtrees, if there's any */
+ if (node->dir != 0xffffffffUL)
++ {
+ if (node->dir > num_of_pps || !pps_list[node->dir].name[0])
+ return 0;
+ else if (!reorder_pps_tree (&pps_list[node->dir], level + 1))
+ return 0;
++ }
+
+ /* reorder next-link subtree, saving the most next link visited */
+ if (node->next != 0xffffffffUL)
+@@ -593,6 +595,7 @@
+
+ /* move the prev child to the next link and reorder it, if there's any */
+ if (node->previous != 0xffffffffUL)
++ {
+ if (node->previous > num_of_pps || !pps_list[node->previous].name[0])
+ return 0;
+ else
+@@ -602,6 +605,7 @@
+ if (!reorder_pps_tree (&pps_list[*last_next_link_visited], level))
+ return 0;
+ }
++ }
+
+ return 1;
+ }