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
nexedi
ZODB
Commits
b7c0e6bf
Commit
b7c0e6bf
authored
Apr 01, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some missing returns in some, fortunately, infrequently (if
ever) accessed logic).
parent
63899d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/BTrees/BTreeModuleTemplate.c
src/BTrees/BTreeModuleTemplate.c
+5
-3
No files found.
src/BTrees/BTreeModuleTemplate.c
View file @
b7c0e6bf
...
...
@@ -253,6 +253,7 @@ firstBucketOffset(Bucket **bucket, int *offset)
UNLESS
(
PER_USE
(
*
bucket
))
return
-
1
;
*
offset
=
0
;
}
return
1
;
}
static
int
...
...
@@ -270,6 +271,7 @@ lastBucketOffset(Bucket **bucket, int *offset, Bucket *firstbucket, int i)
UNLESS
(
PER_USE
(
*
bucket
))
return
-
1
;
*
offset
=
(
*
bucket
)
->
len
-
1
;
}
return
1
;
}
static
void
*
...
...
@@ -279,7 +281,7 @@ PyMalloc(size_t sz)
ASSERT
(
sz
>
0
,
"non-positive size malloc"
,
NULL
);
if
(
r
=
malloc
(
sz
))
return
r
;
if
(
(
r
=
malloc
(
sz
)
))
return
r
;
PyErr_NoMemory
();
return
NULL
;
...
...
@@ -338,7 +340,7 @@ static char BTree_module_documentation[] =
"
\n
"
MASTER_ID
BTREEITEMSTEMPLATE_C
"$Id: BTreeModuleTemplate.c,v 1.
8 2001/03/27 16:37:42
jim Exp $
\n
"
"$Id: BTreeModuleTemplate.c,v 1.
9 2001/04/01 20:25:24
jim Exp $
\n
"
BTREETEMPLATE_C
BUCKETTEMPLATE_C
KEYMACROS_H
...
...
@@ -407,7 +409,7 @@ INITMODULE ()
d
=
PyModule_GetDict
(
m
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromString
(
"$Revision: 1.
8
$"
));
PyString_FromString
(
"$Revision: 1.
9
$"
));
PyExtensionClass_Export
(
d
,
MOD_NAME_PREFIX
"Bucket"
,
BucketType
);
PyExtensionClass_Export
(
d
,
MOD_NAME_PREFIX
"BTree"
,
BTreeType
);
...
...
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