[Zope-Checkins] CVS: Zope2 - Splitter.c:1.3
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 1 Jun 2001 12:01:33 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src
In directory serenade:/tmp/cvs-serv28492/src
Modified Files:
Splitter.c
Log Message:
-made gcc happy - no more warnings
-german "scharfes s" was not handled properly
--- Updated File Splitter.c in package Zope2 --
--- Splitter.c 2001/05/30 15:57:34 1.2
+++ Splitter.c 2001/06/01 16:01:32 1.3
@@ -90,10 +90,9 @@
#define UNLESS_ASSIGN(V,E) ASSIGN(V,E) UNLESS(V)
#define UPPERCASE "ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝ"
-#define LOWERCASE "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöùúûüý"
-#define DIGITSETC "0123456789-ßµ"
+#define LOWERCASE "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöùúûüýß"
+#define DIGITSETC "0123456789-µ"
-static PyObject *next_word();
static unsigned char letdig[256];
static unsigned char trtolower[256];
@@ -107,6 +106,8 @@
int index;
} Splitter;
+static PyObject *next_word(Splitter *,char **,char **);
+
//-------------------------------------------------------
@@ -126,10 +127,10 @@
return isspace(c);
}
-static void initSplitterTrtabs()
+static void initSplitterTrtabs(void)
{
int i;
- static initialized=0;
+ static int initialized=0;
if (initialized) return;
initialized=1;
@@ -146,7 +147,7 @@
}
for (i=0;i<sizeof(DIGITSETC);i++)
{
- letdig[DIGITSETC[i]]=1;
+ letdig[(int)DIGITSETC[i]]=1;
}
}
//-------------------------------------------------------
@@ -537,7 +538,7 @@
void
-initSplitter()
+initSplitter(void)
{
PyObject *m, *d;
char *rev="$Revision$";