summaryrefslogtreecommitdiff
path: root/chinese/dictd/files/patch-index.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-06-20 23:40:39 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-06-20 23:40:39 +0000
commitbbdac6a84127ded2282a0a89b53a0f930cf920d8 (patch)
treedb982286edeebb39e5e3f349e4076643cabfb3f5 /chinese/dictd/files/patch-index.c
parent- Update to 1.40 (diff)
Remove expired ports, plus the three ports that depended on them.
Notes
Notes: svn path=/head/; revision=111893
Diffstat (limited to 'chinese/dictd/files/patch-index.c')
-rw-r--r--chinese/dictd/files/patch-index.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/chinese/dictd/files/patch-index.c b/chinese/dictd/files/patch-index.c
deleted file mode 100644
index b240e2010d78..000000000000
--- a/chinese/dictd/files/patch-index.c
+++ /dev/null
@@ -1,49 +0,0 @@
---- index.c.orig Mon Mar 10 01:06:16 2003
-+++ index.c Mon Oct 27 22:10:18 2003
-@@ -103,6 +103,12 @@
-
- for (; *src; ++src) {
- c = * (const unsigned char *) src;
-+ if((c & 0x80) && *(src+1)) {
-+ *dest++ = c;
-+ *dest++ = *(src+1);
-+ src++;
-+ continue;
-+ }
-
- if (isspace( c )) {
- *dest++ = ' ';
-@@ -184,7 +190,7 @@
-
- charcount = 0;
- for (i = 0; i <= UCHAR_MAX; i++){
-- if (islower (i) || (utf8_mode && i >= 0xC0))
-+ if (islower (i) || (utf8_mode && i >= 0xC0) || (i>=0x80))
- chartab [charcount++] = i;
- }
-
-@@ -293,6 +299,15 @@
-
- /* FIXME. Optimize this inner loop. */
- while (*word && start < end && *start != '\t') {
-+ if ((*start & 0x80) && start+1<end && start[1]!='\t') {
-+ if(start[0]!=word[0])
-+ return ((unsigned)word[0]<(unsigned)start[0])?-2:1;
-+ if(start[1]!=word[1])
-+ return ((unsigned)word[1]<(unsigned)start[1])?-2:1;
-+ word+=2;
-+ start+=2;
-+ continue;
-+ }
- if (!dbindex -> isspacealnum[* (const unsigned char *) start]) {
- ++start;
- continue;
-@@ -340,6 +355,8 @@
- *start != '\t' &&
- !dbindex -> isspacealnum[* (const unsigned char *) start])
- {
-+ if((*start & 0x80) && start[1]!='\t')
-+ break;
- ++start;
- }
-