Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
63fad51c
Commit
63fad51c
authored
Nov 13, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some bad return values.
parent
b279f61c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
16 deletions
+28
-16
lib/Components/BTree/BTree.c
lib/Components/BTree/BTree.c
+8
-5
lib/Components/BTree/intSet.c
lib/Components/BTree/intSet.c
+6
-3
lib/python/SearchIndex/BTree.c
lib/python/SearchIndex/BTree.c
+8
-5
lib/python/SearchIndex/intSet.c
lib/python/SearchIndex/intSet.c
+6
-3
No files found.
lib/Components/BTree/BTree.c
View file @
63fad51c
...
...
@@ -11,7 +11,7 @@
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
...
...
@@ -944,7 +944,7 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
iv
=
PyInt_AsLong
(
value
);
#endif
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
UNLESS
(
self
->
data
)
if
(
BTree_init
(
self
)
<
0
)
goto
err
;
...
...
@@ -1594,7 +1594,7 @@ static int
Bucket_length
(
Bucket
*
self
)
{
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
len
;
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
...
...
@@ -1610,7 +1610,7 @@ static int
BTree_length
(
BTree
*
self
)
{
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
count
;
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
...
...
@@ -1720,7 +1720,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
9
$"
;
char
*
rev
=
"$Revision: 1.
10
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1782,6 +1782,9 @@ initBTree()
Revision Log:
$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
added dcprotect
...
...
lib/Components/BTree/intSet.c
View file @
63fad51c
...
...
@@ -10,7 +10,7 @@
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>
...
...
@@ -122,7 +122,7 @@ intSet_modify(intSet *self, INTSET_DATA_TYPE ikey, int add)
int
min
,
max
,
i
,
l
;
INTSET_DATA_TYPE
*
data
,
k
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
data
=
self
->
data
;
...
...
@@ -527,7 +527,7 @@ void
initintSet
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -568,6 +568,9 @@ initintSet()
Revision Log:
$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
added dcprotect
...
...
lib/python/SearchIndex/BTree.c
View file @
63fad51c
...
...
@@ -11,7 +11,7 @@
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
...
...
@@ -944,7 +944,7 @@ _BTree_set(BTree *self, PyObject *key, PyObject *value)
iv
=
PyInt_AsLong
(
value
);
#endif
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
UNLESS
(
self
->
data
)
if
(
BTree_init
(
self
)
<
0
)
goto
err
;
...
...
@@ -1594,7 +1594,7 @@ static int
Bucket_length
(
Bucket
*
self
)
{
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
len
;
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
...
...
@@ -1610,7 +1610,7 @@ static int
BTree_length
(
BTree
*
self
)
{
int
r
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
r
=
self
->
count
;
PER_ALLOW_DEACTIVATION
(
self
);
return
r
;
...
...
@@ -1720,7 +1720,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
9
$"
;
char
*
rev
=
"$Revision: 1.
10
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1782,6 +1782,9 @@ initBTree()
Revision Log:
$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
added dcprotect
...
...
lib/python/SearchIndex/intSet.c
View file @
63fad51c
...
...
@@ -10,7 +10,7 @@
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>
...
...
@@ -122,7 +122,7 @@ intSet_modify(intSet *self, INTSET_DATA_TYPE ikey, int add)
int
min
,
max
,
i
,
l
;
INTSET_DATA_TYPE
*
data
,
k
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
-
1
);
data
=
self
->
data
;
...
...
@@ -527,7 +527,7 @@ void
initintSet
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -568,6 +568,9 @@ initintSet()
Revision Log:
$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
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