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
2fb67efd
Commit
2fb67efd
authored
Nov 13, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some bad return values.
parent
6938649b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
src/ZODB/BTree.c
src/ZODB/BTree.c
+8
-5
src/ZODB/intSet.c
src/ZODB/intSet.c
+6
-3
No files found.
src/ZODB/BTree.c
View file @
2fb67efd
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
static
char
BTree_module_documentation
[]
=
static
char
BTree_module_documentation
[]
=
""
""
"
\n
$Id: BTree.c,v 1.
9 1997/11/13 20:38:35
jim Exp $"
"
\n
$Id: BTree.c,v 1.
10 1997/11/13 20:45:51
jim Exp $"
;
;
#define PERSISTENT
#define PERSISTENT
...
@@ -944,7 +944,7 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
...
@@ -944,7 +944,7 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
iv
=
PyInt_AsLong
(
value
);
iv
=
PyInt_AsLong
(
value
);
#endif
#endif
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
UNLESS
(
self
->
data
)
if
(
BTree_init
(
self
)
<
0
)
goto
err
;
UNLESS
(
self
->
data
)
if
(
BTree_init
(
self
)
<
0
)
goto
err
;
...
@@ -1594,7 +1594,7 @@ static int
...
@@ -1594,7 +1594,7 @@ static int
Bucket_length
(
Bucket
*
self
)
Bucket_length
(
Bucket
*
self
)
{
{
int
r
;
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
len
;
r
=
self
->
len
;
PER_ALLOW_DEACTIVATION
(
self
);
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
return
r
;
...
@@ -1610,7 +1610,7 @@ static int
...
@@ -1610,7 +1610,7 @@ static int
BTree_length
(
BTree
*
self
)
BTree_length
(
BTree
*
self
)
{
{
int
r
;
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
count
;
r
=
self
->
count
;
PER_ALLOW_DEACTIVATION
(
self
);
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
return
r
;
...
@@ -1720,7 +1720,7 @@ initBTree()
...
@@ -1720,7 +1720,7 @@ initBTree()
#endif
#endif
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
9
$"
;
char
*
rev
=
"$Revision: 1.
10
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
return
;
...
@@ -1782,6 +1782,9 @@ initBTree()
...
@@ -1782,6 +1782,9 @@ initBTree()
Revision Log:
Revision Log:
$Log: BTree.c,v $
$Log: BTree.c,v $
Revision 1.10 1997/11/13 20:45:51 jim
Fixed some bad return values.
Revision 1.9 1997/11/13 20:38:35 jim
Revision 1.9 1997/11/13 20:38:35 jim
added dcprotect
added dcprotect
...
...
src/ZODB/intSet.c
View file @
2fb67efd
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
static
char
intSet_module_documentation
[]
=
static
char
intSet_module_documentation
[]
=
""
""
"
\n
$Id: intSet.c,v 1.
4 1997/11/13 20:38:39
jim Exp $"
"
\n
$Id: intSet.c,v 1.
5 1997/11/13 20:47:13
jim Exp $"
;
;
#include <limits.h>
#include <limits.h>
...
@@ -122,7 +122,7 @@ intSet_modify(intSet *self, INTSET_DATA_TYPE ikey, int add)
...
@@ -122,7 +122,7 @@ intSet_modify(intSet *self, INTSET_DATA_TYPE ikey, int add)
int
min
,
max
,
i
,
l
;
int
min
,
max
,
i
,
l
;
INTSET_DATA_TYPE
*
data
,
k
;
INTSET_DATA_TYPE
*
data
,
k
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
data
=
self
->
data
;
data
=
self
->
data
;
...
@@ -527,7 +527,7 @@ void
...
@@ -527,7 +527,7 @@ void
initintSet
()
initintSet
()
{
{
PyObject
*
m
,
*
d
;
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
UNLESS
(
ExtensionClassImported
)
return
;
...
@@ -568,6 +568,9 @@ initintSet()
...
@@ -568,6 +568,9 @@ initintSet()
Revision Log:
Revision Log:
$Log: intSet.c,v $
$Log: intSet.c,v $
Revision 1.5 1997/11/13 20:47:13 jim
Fixed some bad return values.
Revision 1.4 1997/11/13 20:38:39 jim
Revision 1.4 1997/11/13 20:38:39 jim
added dcprotect
added dcprotect
...
...
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