|
From: <dwa...@us...> - 2007-05-19 07:25:39
|
Revision: 9146
http://zaf.svn.sourceforge.net/zaf/?rev=9146&view=rev
Author: dwaynebailey
Date: 2007-05-19 00:25:40 -0700 (Sat, 19 May 2007)
Log Message:
-----------
Upgrade the hun{un}munch.{c,h} to v1.1.5
Modified Paths:
--------------
trunk/dict/utils/hunmunch.c
trunk/dict/utils/hununmunch.c
trunk/dict/utils/hununmunch.h
Modified: trunk/dict/utils/hunmunch.c
===================================================================
--- trunk/dict/utils/hunmunch.c 2007-05-19 06:09:41 UTC (rev 9145)
+++ trunk/dict/utils/hunmunch.c 2007-05-19 07:25:40 UTC (rev 9146)
@@ -11,8 +11,8 @@
#ifdef __linux__
#include <error.h>
#include <errno.h>
+#include <sys/mman.h>
#endif
-#include <sys/mman.h>
#include "hunmunch.h"
Modified: trunk/dict/utils/hununmunch.c
===================================================================
--- trunk/dict/utils/hununmunch.c 2007-05-19 06:09:41 UTC (rev 9145)
+++ trunk/dict/utils/hununmunch.c 2007-05-19 07:25:40 UTC (rev 9146)
@@ -13,8 +13,8 @@
#ifdef __linux__
#include <error.h>
#include <errno.h>
+#include <sys/mman.h>
#endif
-#include <sys/mman.h>
#include "hununmunch.h"
@@ -386,7 +386,7 @@
if ((len > aent->stripl) && (len >= aent->numconds) &&
((aent->stripl == 0) ||
- (strcmp(aent->strip, word + len - aent->stripl - 1) == 0))) {
+ (strcmp(aent->strip, word + len - aent->stripl) == 0))) {
cp = (unsigned char *) (word + len);
for (cond = aent->numconds; --cond >= 0; ) {
if ((aent->conds[*--cp] & (1 << cond)) == 0) break;
Modified: trunk/dict/utils/hununmunch.h
===================================================================
--- trunk/dict/utils/hununmunch.h 2007-05-19 06:09:41 UTC (rev 9145)
+++ trunk/dict/utils/hununmunch.h 2007-05-19 07:25:40 UTC (rev 9146)
@@ -4,7 +4,7 @@
#define MAX_WD_LEN 200
#define MAX_PREFIXES 256
#define MAX_SUFFIXES 256
-#define MAX_WORDS 5000
+#define MAX_WORDS 500000
#define ROTATE_LEN 5
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|