Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7441e658
Commit
7441e658
authored
Nov 03, 2003
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* SF patch 835100 - C++ // comments are not allowed. Use /* */
parent
ceac90ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Modules/_bsddb.c
Modules/_bsddb.c
+8
-8
No files found.
Modules/_bsddb.c
View file @
7441e658
...
...
@@ -1560,11 +1560,11 @@ DB_join(DBObject* self, PyObject* args)
free
(
cursors
);
RETURN_IF_ERR
();
/
/
FIXME: this is a buggy interface. The returned cursor
//
contains internal references to the passed in cursors
//
but does not hold python references to them or prevent
//
them from being closed prematurely. This can cause
// python to crash when things are done in the wrong order.
/
*
FIXME: this is a buggy interface. The returned cursor
contains internal references to the passed in cursors
but does not hold python references to them or prevent
them from being closed prematurely. This can cause
python to crash when things are done in the wrong order. */
return
(
PyObject
*
)
newDBCursorObject
(
dbc
,
self
);
}
...
...
@@ -2946,7 +2946,7 @@ _DBC_get_set_both(DBCursorObject* self, PyObject* keyobj, PyObject* dataobj,
DBT
key
,
data
;
PyObject
*
retval
;
/
/ the caller did this: CHECK_CURSOR_NOT_CLOSED(self);
/
* the caller did this: CHECK_CURSOR_NOT_CLOSED(self); */
if
(
!
make_key_dbt
(
self
->
mydb
,
keyobj
,
&
key
,
NULL
))
return
NULL
;
if
(
!
make_dbt
(
dataobj
,
&
data
))
...
...
@@ -2994,7 +2994,7 @@ DBC_get_both(DBCursorObject* self, PyObject* args)
if
(
!
PyArg_ParseTuple
(
args
,
"OO|i:get_both"
,
&
keyobj
,
&
dataobj
,
&
flags
))
return
NULL
;
/
/ if the cursor is closed, self->mydb may be invalid
/
* if the cursor is closed, self->mydb may be invalid */
CHECK_CURSOR_NOT_CLOSED
(
self
);
return
_DBC_get_set_both
(
self
,
keyobj
,
dataobj
,
flags
,
...
...
@@ -3043,7 +3043,7 @@ DBC_set_both(DBCursorObject* self, PyObject* args)
if
(
!
PyArg_ParseTuple
(
args
,
"OO|i:set_both"
,
&
keyobj
,
&
dataobj
,
&
flags
))
return
NULL
;
/
/ if the cursor is closed, self->mydb may be invalid
/
* if the cursor is closed, self->mydb may be invalid */
CHECK_CURSOR_NOT_CLOSED
(
self
);
return
_DBC_get_set_both
(
self
,
keyobj
,
dataobj
,
flags
,
...
...
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