Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/woip
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2008-05-26 07:27:03 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2008-05-26 07:27:03 (GMT)
commit7465ded7ef94aa2210f412e43225f6b2a48d0101 (patch)
treec24865657161c9f6478236cdc6acd9ffc4fbac13 /woip
parentddc1453e0546ba35e094f72f058e447e34d177e6 (diff)
Turn off case sensitivity in searches.
Also fix paths in SWIG module.
Diffstat (limited to 'woip')
-rw-r--r--woip/py/setup.py12
-rw-r--r--woip/py/wp.i4
2 files changed, 8 insertions, 8 deletions
diff --git a/woip/py/setup.py b/woip/py/setup.py
index 5430977..0e679e7 100644
--- a/woip/py/setup.py
+++ b/woip/py/setup.py
@@ -18,17 +18,17 @@ from distutils.core import setup, Extension
wp_sources = [
'wp.i',
- '../../c/bzipreader.c',
- '../../c/wp.c',
- '../../c/lsearcher.c',
- '../../c/safe.c',
- '../../c/blocks.c'
+ '../c/bzipreader.c',
+ '../c/wp.c',
+ '../c/lsearcher.c',
+ '../c/safe.c',
+ '../c/blocks.c'
]
wp_module = Extension(
'_wp',
sources=wp_sources,
- include_dirs=['../../c'],
+ include_dirs=['../c'],
define_macros=[('DEBUG', 1)],
libraries=['bz2'])
diff --git a/woip/py/wp.i b/woip/py/wp.i
index 432811e..d2080df 100644
--- a/woip/py/wp.i
+++ b/woip/py/wp.i
@@ -26,7 +26,7 @@
%module wp
%{
-#include "../../c/wp.h"
+#include "../c/wp.h"
#define MAXRES 40
#define MAXSTR 1024
@@ -103,7 +103,7 @@ int wp_article_exists(char *name) {
__exact_match = name;
__got_match = 0;
debug("wp_article_exists(%s)", name);
- search(&d.index, name, __handle_exact_match, NULL, true, true);
+ search(&d.index, name, __handle_exact_match, NULL, false, true);
return __got_match;
}