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
b8c7cd1f
Commit
b8c7cd1f
authored
Feb 12, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed isspace problem.
parent
27764234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/SearchIndex/Splitter.c
lib/python/SearchIndex/Splitter.c
+5
-5
No files found.
lib/python/SearchIndex/Splitter.c
View file @
b8c7cd1f
...
...
@@ -130,7 +130,7 @@ static PyObject *
next_word
(
Splitter
*
self
,
char
**
startpos
,
char
**
endpos
)
{
char
wbuf
[
MAX_WORD
];
char
*
p
,
*
end
,
*
here
,
*
b
;
char
*
end
,
*
here
,
*
b
;
int
i
=
0
,
c
;
PyObject
*
pyword
,
*
res
;
...
...
@@ -143,7 +143,7 @@ next_word(Splitter *self, char **startpos, char **endpos)
if
((
i
>
0
)
&&
(
*
here
==
'-'
))
{
here
++
;
while
(
isspace
(
here
)
&&
(
here
<
end
))
here
++
;
while
(
isspace
(
*
here
)
&&
(
here
<
end
))
here
++
;
continue
;
}
...
...
@@ -396,7 +396,7 @@ static char Splitter_module_documentation[] =
"
\n
"
"for use in an inverted index
\n
"
"
\n
"
"$Id: Splitter.c,v 1.
7 1998/02/11 01:20:00
jim Exp $
\n
"
"$Id: Splitter.c,v 1.
8 1998/02/12 20:57:28
jim Exp $
\n
"
;
...
...
@@ -404,7 +404,7 @@ void
initSplitter
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Splitter"
,
Splitter_module_methods
,
...
...
@@ -416,7 +416,7 @@ initSplitter()
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromStringAndSize
(
rev
+
11
,
strlen
(
rev
+
11
)
-
2
));
#include "dcprotect.h"
#include "dcprotect.h"
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module Splitter"
);
}
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