Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
4ac250c3
Commit
4ac250c3
authored
Feb 16, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial cut at set operations.
parent
d581a972
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
503 additions
and
3 deletions
+503
-3
src/BTrees/BTreeTemplate.c
src/BTrees/BTreeTemplate.c
+19
-3
src/BTrees/SetOpTemplate.c
src/BTrees/SetOpTemplate.c
+484
-0
No files found.
src/BTrees/BTreeTemplate.c
View file @
4ac250c3
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
static
char
BTree_module_documentation
[]
=
static
char
BTree_module_documentation
[]
=
""
""
"
\n
$Id: BTreeTemplate.c,v 1.
5 2001/02/15 18:15:10
jim Exp $"
"
\n
$Id: BTreeTemplate.c,v 1.
6 2001/02/16 20:49:11
jim Exp $"
;
;
#include "cPersistence.h"
#include "cPersistence.h"
...
@@ -1066,7 +1066,7 @@ BTree_rangeSearch(BTree *self, PyObject *args, char type)
...
@@ -1066,7 +1066,7 @@ BTree_rangeSearch(BTree *self, PyObject *args, char type)
int
lowoffset
;
int
lowoffset
;
int
highoffset
;
int
highoffset
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"|OO"
,
&
f
,
&
l
))
return
NULL
;
UNLESS
(
!
args
||
PyArg_ParseTuple
(
args
,
"|OO"
,
&
f
,
&
l
))
return
NULL
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
NULL
);
...
@@ -1327,7 +1327,23 @@ static PyExtensionClass BTreeType = {
...
@@ -1327,7 +1327,23 @@ static PyExtensionClass BTreeType = {
#include "TreeSetTemplate.c"
#include "TreeSetTemplate.c"
#include "SetOpTemplate.c"
static
struct
PyMethodDef
module_methods
[]
=
{
static
struct
PyMethodDef
module_methods
[]
=
{
{
"union"
,
(
PyCFunction
)
union_m
,
METH_VARARGS
,
"union(o1, o2 [, w1, w2]) -- compurte the union of o1 and o2
\n
"
"
\n
w1 and w2 are weights, which are only meaningful for integer values"
},
{
"intersection"
,
(
PyCFunction
)
intersection_m
,
METH_VARARGS
,
"intersection(o1, o2 [, w1, w2]) -- "
"compurte the intersection of o1 and o2
\n
"
"
\n
w1 and w2 are weights, which are only meaningful for integer values"
},
{
"difference"
,
(
PyCFunction
)
difference_m
,
METH_VARARGS
,
"difference(o1, o2 [, w1, w2]) -- "
"compurte the difference between o1 and o2
\n
"
"
\n
w1 and w2 are weights, which are only meaningful for integer values"
},
{
NULL
,
NULL
}
/* sentinel */
{
NULL
,
NULL
}
/* sentinel */
};
};
...
@@ -1370,7 +1386,7 @@ INITMODULE ()
...
@@ -1370,7 +1386,7 @@ INITMODULE ()
d
=
PyModule_GetDict
(
m
);
d
=
PyModule_GetDict
(
m
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromString
(
"$Revision: 1.
5
$"
));
PyString_FromString
(
"$Revision: 1.
6
$"
));
PyExtensionClass_Export
(
d
,
PREFIX
"Bucket"
,
BucketType
);
PyExtensionClass_Export
(
d
,
PREFIX
"Bucket"
,
BucketType
);
PyExtensionClass_Export
(
d
,
PREFIX
"BTree"
,
BTreeType
);
PyExtensionClass_Export
(
d
,
PREFIX
"BTree"
,
BTreeType
);
...
...
src/BTrees/SetOpTemplate.c
0 → 100644
View file @
4ac250c3
This diff is collapsed.
Click to expand it.
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