Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
864c77a7
Commit
864c77a7
authored
Sep 13, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged casts to (unsigned char) for FreeBSD/x86 from 2.2 branch
parent
a04bd229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/SearchIndex/Splitter.c
lib/python/SearchIndex/Splitter.c
+4
-4
No files found.
lib/python/SearchIndex/Splitter.c
View file @
864c77a7
...
...
@@ -178,7 +178,7 @@ check_synstop(Splitter *self, PyObject *word)
/*************************************************************
Test whether a word has any letters. *
*/
for
(;
--
len
>=
0
&&
!
isalpha
(
cword
[
len
]);
);
for
(;
--
len
>=
0
&&
!
isalpha
(
(
unsigned
char
)
cword
[
len
]);
);
if
(
len
<
0
)
{
Py_INCREF
(
Py_None
);
...
...
@@ -234,7 +234,7 @@ next_word(Splitter *self, char **startpos, char **endpos)
c
=
tolower
(
*
here
);
/* Check to see if this character is part of a word */
if
(
isalnum
(
c
)
||
c
==
'/'
)
if
(
isalnum
(
(
unsigned
char
)
c
)
||
c
==
'/'
)
{
/* Found a word character */
if
(
startpos
&&
i
==
0
)
*
startpos
=
here
;
if
(
i
++
<
MAX_WORD
)
*
b
++
=
c
;
...
...
@@ -480,7 +480,7 @@ static char Splitter_module_documentation[] =
"
\n
"
"for use in an inverted index
\n
"
"
\n
"
"$Id: Splitter.c,v 1.1
2 1999/03/10 00:15:36 klm
Exp $
\n
"
"$Id: Splitter.c,v 1.1
3 2000/09/13 14:54:15 brian
Exp $
\n
"
;
...
...
@@ -488,7 +488,7 @@ void
initSplitter
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
2
$"
;
char
*
rev
=
"$Revision: 1.1
3
$"
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Splitter"
,
Splitter_module_methods
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment