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
ce218e5c
Commit
ce218e5c
authored
Dec 31, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs related to deleting items.
parent
0918020e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
src/ZODB/BTree.c
src/ZODB/BTree.c
+14
-21
No files found.
src/ZODB/BTree.c
View file @
ce218e5c
...
...
@@ -11,7 +11,7 @@
static
char
BTree_module_documentation
[]
=
""
"
\n
$Id: BTree.c,v 1.1
1 1997/12/12 23:43:05
jim Exp $"
"
\n
$Id: BTree.c,v 1.1
2 1997/12/31 17:18:04
jim Exp $"
;
#define PERSISTENT
...
...
@@ -643,13 +643,16 @@ _bucket_set(Bucket *self, PyObject *key, PyObject *v)
#endif
#ifdef INTVAL
UNLESS
(
!
v
||
PyInt_Check
(
v
)
)
if
(
v
)
{
PyErr_SetString
(
PyExc_TypeError
,
"Bucket __getitem__ expected integer key"
);
return
-
1
;
UNLESS
(
PyInt_Check
(
v
))
{
PyErr_SetString
(
PyExc_TypeError
,
"Bucket __getitem__ expected integer key"
);
return
-
1
;
}
iv
=
PyInt_AsLong
(
v
);
}
iv
=
PyInt_AsLong
(
v
);
#endif
PER_USE_OR_RETURN
(
self
,
-
1
);
...
...
@@ -920,9 +923,6 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
#ifdef INTKEY
int
ikey
;
#endif
#ifdef INTVAL
int
iv
;
#endif
#ifdef INTKEY
UNLESS
(
PyInt_Check
(
key
))
...
...
@@ -934,16 +934,6 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
ikey
=
PyInt_AsLong
(
key
);
#endif
#ifdef INTVAL
UNLESS
(
!
value
||
PyInt_Check
(
value
))
{
PyErr_SetString
(
PyExc_TypeError
,
"Bucket __getitem__ expected integer key"
);
return
-
1
;
}
iv
=
PyInt_AsLong
(
value
);
#endif
PER_USE_OR_RETURN
(
self
,
-
1
);
UNLESS
(
self
->
data
)
if
(
BTree_init
(
self
)
<
0
)
goto
err
;
...
...
@@ -981,7 +971,7 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
{
d
->
count
--
;
self
->
count
--
;
if
(
!
d
->
count
)
if
(
!
d
->
count
&&
self
->
len
>
1
)
{
self
->
len
--
;
Py_DECREF
(
d
->
value
);
...
...
@@ -1722,7 +1712,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
1
$"
;
char
*
rev
=
"$Revision: 1.1
2
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1784,6 +1774,9 @@ initBTree()
Revision Log:
$Log: BTree.c,v $
Revision 1.12 1997/12/31 17:18:04 jim
Fixed bugs related to deleting items.
Revision 1.11 1997/12/12 23:43:05 jim
Added basicnew support.
...
...
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