Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
831a7f32
Commit
831a7f32
authored
Mar 15, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged fix (change PREFIX macro to MOD_NAME_PREFIX)
parent
2a1ae51f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
19 deletions
+19
-19
trunk/src/BTrees/BTreeItemsTemplate.c
trunk/src/BTrees/BTreeItemsTemplate.c
+1
-1
trunk/src/BTrees/BTreeModuleTemplate.c
trunk/src/BTrees/BTreeModuleTemplate.c
+8
-8
trunk/src/BTrees/BTreeTemplate.c
trunk/src/BTrees/BTreeTemplate.c
+1
-1
trunk/src/BTrees/BucketTemplate.c
trunk/src/BTrees/BucketTemplate.c
+2
-2
trunk/src/BTrees/IIBTree.c
trunk/src/BTrees/IIBTree.c
+1
-1
trunk/src/BTrees/IOBTree.c
trunk/src/BTrees/IOBTree.c
+1
-1
trunk/src/BTrees/OIBTree.c
trunk/src/BTrees/OIBTree.c
+1
-1
trunk/src/BTrees/OOBTree.c
trunk/src/BTrees/OOBTree.c
+1
-1
trunk/src/BTrees/SetTemplate.c
trunk/src/BTrees/SetTemplate.c
+2
-2
trunk/src/BTrees/TreeSetTemplate.c
trunk/src/BTrees/TreeSetTemplate.c
+1
-1
No files found.
trunk/src/BTrees/BTreeItemsTemplate.c
View file @
831a7f32
...
...
@@ -452,7 +452,7 @@ static PyNumberMethods BTreeItems_as_number_for_nonzero = {
static
PyTypeObject
BTreeItemsType
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
PREFIX
"BTreeItems"
,
/*tp_name*/
MOD_NAME_
PREFIX
"BTreeItems"
,
/*tp_name*/
sizeof
(
BTreeItems
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/* methods */
...
...
trunk/src/BTrees/BTreeModuleTemplate.c
View file @
831a7f32
...
...
@@ -85,7 +85,7 @@
static
char
BTree_module_documentation
[]
=
""
"
\n
$Id: BTreeModuleTemplate.c,v 1.
5 2001/03/15 13:16:22 jim
Exp $"
"
\n
$Id: BTreeModuleTemplate.c,v 1.
6 2001/03/15 17:33:07 brian
Exp $"
;
#ifdef PERSISTENT
...
...
@@ -379,7 +379,7 @@ INITMODULE ()
#endif
/* Create the module and add the functions */
m
=
Py_InitModule4
(
PREFIX
"BTree"
,
module_methods
,
m
=
Py_InitModule4
(
MOD_NAME_
PREFIX
"BTree"
,
module_methods
,
BTree_module_documentation
,
(
PyObject
*
)
NULL
,
PYTHON_API_VERSION
);
...
...
@@ -387,14 +387,14 @@ INITMODULE ()
d
=
PyModule_GetDict
(
m
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromString
(
"$Revision: 1.
5
$"
));
PyString_FromString
(
"$Revision: 1.
6
$"
));
PyExtensionClass_Export
(
d
,
PREFIX
"Bucket"
,
BucketType
);
PyExtensionClass_Export
(
d
,
PREFIX
"BTree"
,
BTreeType
);
PyExtensionClass_Export
(
d
,
PREFIX
"Set"
,
SetType
);
PyExtensionClass_Export
(
d
,
PREFIX
"TreeSet"
,
TreeSetType
);
PyExtensionClass_Export
(
d
,
MOD_NAME_
PREFIX
"Bucket"
,
BucketType
);
PyExtensionClass_Export
(
d
,
MOD_NAME_
PREFIX
"BTree"
,
BTreeType
);
PyExtensionClass_Export
(
d
,
MOD_NAME_
PREFIX
"Set"
,
SetType
);
PyExtensionClass_Export
(
d
,
MOD_NAME_
PREFIX
"TreeSet"
,
TreeSetType
);
/* Check for errors */
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module "
PREFIX
"BTree"
);
Py_FatalError
(
"can't initialize module "
MOD_NAME_
PREFIX
"BTree"
);
}
trunk/src/BTrees/BTreeTemplate.c
View file @
831a7f32
...
...
@@ -1304,7 +1304,7 @@ static PyNumberMethods BTree_as_number_for_nonzero = {
static
PyExtensionClass
BTreeType
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
PREFIX
"BTree"
,
/*tp_name*/
MOD_NAME_
PREFIX
"BTree"
,
/*tp_name*/
sizeof
(
BTree
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/************* methods ********************/
...
...
trunk/src/BTrees/BucketTemplate.c
View file @
831a7f32
...
...
@@ -1175,7 +1175,7 @@ bucket_repr(Bucket *self)
static
PyObject
*
format
;
PyObject
*
r
,
*
t
;
UNLESS
(
format
)
UNLESS
(
format
=
PyString_FromString
(
PREFIX
"Bucket(%s)"
))
UNLESS
(
format
)
UNLESS
(
format
=
PyString_FromString
(
MOD_NAME_
PREFIX
"Bucket(%s)"
))
return
NULL
;
UNLESS
(
t
=
PyTuple_New
(
1
))
return
NULL
;
UNLESS
(
r
=
bucket_items
(
self
,
NULL
))
goto
err
;
...
...
@@ -1191,7 +1191,7 @@ err:
static
PyExtensionClass
BucketType
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
PREFIX
"Bucket"
,
/*tp_name*/
MOD_NAME_
PREFIX
"Bucket"
,
/*tp_name*/
sizeof
(
Bucket
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/*********** methods ***********************/
...
...
trunk/src/BTrees/IIBTree.c
View file @
831a7f32
...
...
@@ -2,7 +2,7 @@
#define PERSISTENT
#define PREFIX "II"
#define
MOD_NAME_
PREFIX "II"
#define INITMODULE initIIBTree
#define DEFAULT_MAX_BUCKET_SIZE 120
#define DEFAULT_MAX_BTREE_SIZE 500
...
...
trunk/src/BTrees/IOBTree.c
View file @
831a7f32
#define PERSISTENT
#define PREFIX "IO"
#define
MOD_NAME_
PREFIX "IO"
#define DEFAULT_MAX_BUCKET_SIZE 60
#define DEFAULT_MAX_BTREE_SIZE 500
#define INITMODULE initIOBTree
...
...
trunk/src/BTrees/OIBTree.c
View file @
831a7f32
#define PERSISTENT
#define PREFIX "OI"
#define
MOD_NAME_
PREFIX "OI"
#define INITMODULE initOIBTree
#define DEFAULT_MAX_BUCKET_SIZE 60
#define DEFAULT_MAX_BTREE_SIZE 250
...
...
trunk/src/BTrees/OOBTree.c
View file @
831a7f32
#define PERSISTENT
#define PREFIX "OO"
#define
MOD_NAME_
PREFIX "OO"
#define INITMODULE initOOBTree
#define DEFAULT_MAX_BUCKET_SIZE 30
#define DEFAULT_MAX_BTREE_SIZE 250
...
...
trunk/src/BTrees/SetTemplate.c
View file @
831a7f32
...
...
@@ -250,7 +250,7 @@ set_repr(Bucket *self)
static
PyObject
*
format
;
PyObject
*
r
,
*
t
;
UNLESS
(
format
)
UNLESS
(
format
=
PyString_FromString
(
PREFIX
"Set(%s)"
))
UNLESS
(
format
)
UNLESS
(
format
=
PyString_FromString
(
MOD_NAME_
PREFIX
"Set(%s)"
))
return
NULL
;
UNLESS
(
t
=
PyTuple_New
(
1
))
return
NULL
;
UNLESS
(
r
=
bucket_keys
(
self
,
NULL
))
goto
err
;
...
...
@@ -306,7 +306,7 @@ static PySequenceMethods set_as_sequence = {
static
PyExtensionClass
SetType
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
PREFIX
"Set"
,
/*tp_name*/
MOD_NAME_
PREFIX
"Set"
,
/*tp_name*/
sizeof
(
Bucket
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/*********** methods ***********************/
...
...
trunk/src/BTrees/TreeSetTemplate.c
View file @
831a7f32
...
...
@@ -194,7 +194,7 @@ static struct PyMethodDef TreeSet_methods[] = {
static
PyExtensionClass
TreeSetType
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
PREFIX
"TreeSet"
,
/*tp_name*/
MOD_NAME_
PREFIX
"TreeSet"
,
/*tp_name*/
sizeof
(
BTree
),
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/************* 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