[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/src - indexsupport.c:1.1.2.2
Andreas Jung
andreas@digicool.com
Thu, 14 Feb 2002 19:09:38 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/src
In directory cvs.zope.org:/tmp/cvs-serv28948/src
Modified Files:
Tag: ajung-textindexng-branch
indexsupport.c
Log Message:
renamed vars for better understanding
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/src/indexsupport.c 1.1.2.1 => 1.1.2.2 ===
stopwordfilter(PyObject *modinfo, PyObject *args)
{
- PyObject *ref, *words, *list;
+ PyObject *stopwords, *words, *list;
int i;
list = PyList_New(0);
- if (! (PyArg_ParseTuple(args,"OO",&words,&ref)))
+ if (! (PyArg_ParseTuple(args,"OO",&words,&stopwords)))
return NULL;
for (i=PyList_Size(words)-1; i>=0; i--) {
@@ -30,9 +30,8 @@
item = PyList_GetItem(words,i);
- w = PyDict_GetItem(ref,item);
+ w = PyDict_GetItem(stopwords, item);
if (! w) PyList_Append(list,item);
-
}
Py_DECREF(words);