From 703fb40d6e37c5337a23694bce1bb114b7d7516a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Dec 2013 13:41:26 +0000 Subject: Rework fuzzy check module. - Now all checks are organized to rules. - Allow to specify read_only rules to avoid problems on learning. - Use better normalizer for fuzzy module and it now returns values from 0 to 1.0 (like bayes does). - Update configuration accordingly. - Drop legacy configuration support. - Detect tanh as well and provide some reasonable (linear) fallback. --- config.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index c7e44d846..e387d5d1c 100644 --- a/config.h.in +++ b/config.h.in @@ -145,6 +145,7 @@ #cmakedefine HAVE_FLOCK 1 #cmakedefine HAVE_TANHL 1 +#cmakedefine HAVE_TANH 1 #cmakedefine HAVE_EXPL 1 #cmakedefine HAVE_EXP2L 1 -- cgit v1.2.3 From 4ce9f550f52f0656ce4ae5a8cda2caaf6b553aa7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Dec 2013 13:52:58 +0000 Subject: Fix some broken glib packages (osx in particular). --- config.h.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index e387d5d1c..bb8c0be1b 100644 --- a/config.h.in +++ b/config.h.in @@ -485,6 +485,16 @@ typedef off_t goffset; #include #endif +/* Some fixes for broken glib */ +#if defined(INT64_MAX) && INT64_MAX!= G_MAXINT64 +#undef int64_t +#define int64_t gint64 +#endif +#if defined(UINT64_MAX) && UINT64_MAX!= G_MAXUINT64 +#undef uint64_t +#define uint64_t guint64 +#endif + /* Forwarded declaration */ struct module_ctx; struct config_file; -- cgit v1.2.3 From 47a97183b957e6b16851a02a7d1b7eafe8e99b4f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Dec 2013 16:28:42 +0000 Subject: Remove workaround as it doesn't work. --- config.h.in | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index bb8c0be1b..e387d5d1c 100644 --- a/config.h.in +++ b/config.h.in @@ -485,16 +485,6 @@ typedef off_t goffset; #include #endif -/* Some fixes for broken glib */ -#if defined(INT64_MAX) && INT64_MAX!= G_MAXINT64 -#undef int64_t -#define int64_t gint64 -#endif -#if defined(UINT64_MAX) && UINT64_MAX!= G_MAXUINT64 -#undef uint64_t -#define uint64_t guint64 -#endif - /* Forwarded declaration */ struct module_ctx; struct config_file; -- cgit v1.2.3