From 7465ded7ef94aa2210f412e43225f6b2a48d0101 Mon Sep 17 00:00:00 2001 From: Wade Brainerd Date: Mon, 26 May 2008 07:27:03 +0000 Subject: Turn off case sensitivity in searches. Also fix paths in SWIG module. --- (limited to 'woip') 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; } -- cgit v0.9.1