summaryrefslogtreecommitdiff
path: root/hyphen
diff options
context:
space:
mode:
authorRené Engelhard <rene@openoffice.org>2008-01-04 19:32:41 +0000
committerRené Engelhard <rene@openoffice.org>2008-01-04 19:32:41 +0000
commit9c4f6472dd4b1642ff3ce20ec1ae0430f850c660 (patch)
tree9459fa82846cc3070982f659a175a47c785b552e /hyphen
parent3003a91d2c7f092987fdc47261d8f459721d9082 (diff)
new patch file
Diffstat (limited to 'hyphen')
-rw-r--r--hyphen/hyphen-2.3.patch39
-rw-r--r--hyphen/makefile.mk6
2 files changed, 42 insertions, 3 deletions
diff --git a/hyphen/hyphen-2.3.patch b/hyphen/hyphen-2.3.patch
new file mode 100644
index 000000000000..28d3fc596843
--- /dev/null
+++ b/hyphen/hyphen-2.3.patch
@@ -0,0 +1,39 @@
+Index: hyphen.c
+===================================================================
+RCS file: /cvs/whiteboard/lingucomponent/source/hyphenator/altlinuxhyph/libhnj/hyphen.c,v
+retrieving revision 1.8
+retrieving revision 1.8.32.1
+diff -u -u -r1.8 -r1.8.32.1
+--- hyphen.c 3 Aug 2007 12:30:49 -0000 1.8
++++ misc/build/hyphen-2.3/hyphen.c 2 Jan 2008 16:08:20 -0000 1.8.32.1
+@@ -300,7 +300,7 @@
+ } else {
+ hnj_strchomp(repl + 1);
+ replindex = 0;
+- replcut = strlen(buf);
++ replcut = (signed char) strlen(buf);
+ }
+ repl = hnj_strdup(repl + 1);
+ }
+@@ -333,10 +333,10 @@
+ if ((((unsigned char) word[pc]) >> 6) != 2) pu++;
+ if ((ps < 0) && (replindex == pu)) {
+ ps = replindex;
+- replindex = pc;
++ replindex = (signed char) pc;
+ }
+ if ((ps >= 0) && ((pu - ps) == replcut)) {
+- replcut = (pc - replindex);
++ replcut = (signed char) (pc - replindex);
+ break;
+ }
+ }
+@@ -353,7 +353,7 @@
+ dict->states[state_num].repl = repl;
+ dict->states[state_num].replindex = replindex;
+ if (!replcut) {
+- dict->states[state_num].replcut = strlen(word);
++ dict->states[state_num].replcut = (signed char) strlen(word);
+ } else {
+ dict->states[state_num].replcut = replcut;
+ }
diff --git a/hyphen/makefile.mk b/hyphen/makefile.mk
index 179b64bf61e4..3e7f45159507 100644
--- a/hyphen/makefile.mk
+++ b/hyphen/makefile.mk
@@ -4,9 +4,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.1 $
+# $Revision: 1.2 $
#
-# last change: $Author: rene $ $Date: 2007-12-02 23:48:10 $
+# last change: $Author: rene $ $Date: 2008-01-04 20:32:41 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -46,7 +46,7 @@ TARGET=hyphen
TARFILE_NAME=hyphen-2.3
-#PATCH_FILE_NAME=hunspell-1.1.12.patch
+PATCH_FILE_NAME=hyphen-2.3.patch
.IF "$(GUI)"=="UNX"
#CONFIGURE_DIR=$(BUILD_DIR)