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
aeaa807b
Commit
aeaa807b
authored
Nov 03, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed stupid bug in has_key methods.
parent
9e4dd112
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
lib/Components/BTree/BTree.c
lib/Components/BTree/BTree.c
+13
-4
lib/python/SearchIndex/BTree.c
lib/python/SearchIndex/BTree.c
+13
-4
No files found.
lib/Components/BTree/BTree.c
View file @
aeaa807b
...
...
@@ -11,7 +11,7 @@
static
char
BTree_module_documentation
[]
=
""
"
\n
$Id: BTree.c,v 1.
7 1997/10/30 20:58:4
3 jim Exp $"
"
\n
$Id: BTree.c,v 1.
8 1997/11/03 15:17:5
3 jim Exp $"
;
#define PERSISTENT
...
...
@@ -1360,8 +1360,11 @@ err:
}
static
PyObject
*
bucket_has_key
(
Bucket
*
self
,
PyObject
*
key
)
bucket_has_key
(
Bucket
*
self
,
PyObject
*
args
)
{
PyObject
*
key
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O"
,
&
key
))
return
NULL
;
return
_bucket_get
(
self
,
key
,
1
);
}
...
...
@@ -1523,8 +1526,11 @@ BTree_items(BTree *self, PyObject *args)
}
static
PyObject
*
BTree_has_key
(
BTree
*
self
,
PyObject
*
key
)
BTree_has_key
(
BTree
*
self
,
PyObject
*
args
)
{
PyObject
*
key
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O"
,
&
key
))
return
NULL
;
return
_BTree_get
(
self
,
key
,
1
);
}
...
...
@@ -1714,7 +1720,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1774,6 +1780,9 @@ initBTree()
Revision Log:
$Log: BTree.c,v $
Revision 1.8 1997/11/03 15:17:53 jim
Fixed stupid bug in has_key methods.
Revision 1.7 1997/10/30 20:58:43 jim
Upped bucket sizes.
...
...
lib/python/SearchIndex/BTree.c
View file @
aeaa807b
...
...
@@ -11,7 +11,7 @@
static
char
BTree_module_documentation
[]
=
""
"
\n
$Id: BTree.c,v 1.
7 1997/10/30 20:58:4
3 jim Exp $"
"
\n
$Id: BTree.c,v 1.
8 1997/11/03 15:17:5
3 jim Exp $"
;
#define PERSISTENT
...
...
@@ -1360,8 +1360,11 @@ err:
}
static
PyObject
*
bucket_has_key
(
Bucket
*
self
,
PyObject
*
key
)
bucket_has_key
(
Bucket
*
self
,
PyObject
*
args
)
{
PyObject
*
key
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O"
,
&
key
))
return
NULL
;
return
_bucket_get
(
self
,
key
,
1
);
}
...
...
@@ -1523,8 +1526,11 @@ BTree_items(BTree *self, PyObject *args)
}
static
PyObject
*
BTree_has_key
(
BTree
*
self
,
PyObject
*
key
)
BTree_has_key
(
BTree
*
self
,
PyObject
*
args
)
{
PyObject
*
key
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O"
,
&
key
))
return
NULL
;
return
_BTree_get
(
self
,
key
,
1
);
}
...
...
@@ -1714,7 +1720,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
7
$"
;
char
*
rev
=
"$Revision: 1.
8
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1774,6 +1780,9 @@ initBTree()
Revision Log:
$Log: BTree.c,v $
Revision 1.8 1997/11/03 15:17:53 jim
Fixed stupid bug in has_key methods.
Revision 1.7 1997/10/30 20:58:43 jim
Upped bucket sizes.
...
...
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