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
a9bb7310
Commit
a9bb7310
authored
Aug 07, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splitter fixes to work under MacOSX
Backported from Zope-2_4-branch
parent
d4cb5f76
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
37 deletions
+15
-37
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/Setup
...luginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/Setup
+1
-1
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/__init__.py
...ndexes/TextIndex/Splitter/ISO_8859_1_Splitter/__init__.py
+1
-1
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c
...ex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c
+6
-6
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Setup
...ducts/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Setup
+1
-1
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py
...PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py
+1
-23
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/src/ZopeSplitter.c
...ndexes/TextIndex/Splitter/ZopeSplitter/src/ZopeSplitter.c
+5
-5
No files found.
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/Setup
View file @
a9bb7310
*shared*
Splitter src/
Splitter.c
ISO_8859_1_Splitter src/ISO_8859_1_
Splitter.c
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/__init__.py
View file @
a9bb7310
from
Splitter
import
Splitter
from
ISO_8859_1_Splitter
import
ISO_8859_1_Splitter
as
Splitter
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/Splitter.c
→
lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/
ISO_8859_1_
Splitter.c
View file @
a9bb7310
...
...
@@ -523,8 +523,8 @@ err:
}
static
struct
PyMethodDef
Splitter_module_methods
[]
=
{
{
"Splitter"
,
(
PyCFunction
)
get_Splitter
,
METH_VARARGS
,
"Splitter(doc[,synstop]) -- Return a word splitter"
},
{
"
ISO_8859_1_
Splitter"
,
(
PyCFunction
)
get_Splitter
,
METH_VARARGS
,
"
ISO_8859_1_
Splitter(doc[,synstop]) -- Return a word splitter"
},
{
NULL
,
NULL
}
};
...
...
@@ -533,19 +533,19 @@ static char Splitter_module_documentation[] =
"
\n
"
"for use in an inverted index
\n
"
"
\n
"
"$Id:
Splitter.c,v 1.4 2001/06/01 16:09:39 andreas
Exp $
\n
"
"$Id:
ISO_8859_1_Splitter.c,v 1.2 2001/08/07 19:40:06 andreasjung
Exp $
\n
"
;
void
initSplitter
(
void
)
init
ISO_8859_1_
Splitter
(
void
)
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
2
$"
;
/* Create the module and add the functions */
initSplitterTrtabs
();
m
=
Py_InitModule4
(
"Splitter"
,
Splitter_module_methods
,
m
=
Py_InitModule4
(
"
ISO_8859_1_
Splitter"
,
Splitter_module_methods
,
Splitter_module_documentation
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
...
...
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Setup
View file @
a9bb7310
*shared*
Splitter src/
Splitter.c
ZopeSplitter src/Zope
Splitter.c
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py
View file @
a9bb7310
from
Splitter
import
Splitter
class
ZopeSplitter
:
meta_type
=
"Splitter"
description
=
"Zope Default Splitter"
Splitter
=
Splitter
def
__init__
(
self
):
print
"__init__"
def
a
(
self
):
"""a"""
print
"initialize"
,
self
.
meta_type
pass
def
b
(
self
):
"""b"""
print
"binitialize"
,
self
.
meta_type
pass
from
ZopeSplitter
import
ZopeSplitter
as
Splitter
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/src/Splitter.c
→
lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/src/
Zope
Splitter.c
View file @
a9bb7310
...
...
@@ -468,8 +468,8 @@ err:
}
static
struct
PyMethodDef
Splitter_module_methods
[]
=
{
{
"Splitter"
,
(
PyCFunction
)
get_Splitter
,
METH_VARARGS
,
"Splitter(doc[,synstop]) -- Return a word splitter"
},
{
"
Zope
Splitter"
,
(
PyCFunction
)
get_Splitter
,
METH_VARARGS
,
"
Zope
Splitter(doc[,synstop]) -- Return a word splitter"
},
{
NULL
,
NULL
}
};
...
...
@@ -478,18 +478,18 @@ static char Splitter_module_documentation[] =
"
\n
"
"for use in an inverted index
\n
"
"
\n
"
"$Id:
Splitter.c,v 1.2 2001/05/30 15:57:35 andreas
Exp $
\n
"
"$Id:
ZopeSplitter.c,v 1.2 2001/08/07 19:40:06 andreasjung
Exp $
\n
"
;
void
initSplitter
(
void
)
init
Zope
Splitter
(
void
)
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.2 $"
;
/* Create the module and add the functions */
m
=
Py_InitModule4
(
"Splitter"
,
Splitter_module_methods
,
m
=
Py_InitModule4
(
"
Zope
Splitter"
,
Splitter_module_methods
,
Splitter_module_documentation
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
...
...
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