summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2003-11-03 21:35:31 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2003-11-03 21:35:31 (GMT)
commit7441e65821953c9c1b57c28ddc973e231e24c9cc (patch)
tree544236600d3f272949150de8c82f727b20e7a8c6
parentceac90aecb0996ddb4a97998ed60d724d936e60b (diff)
downloadcpython-7441e65821953c9c1b57c28ddc973e231e24c9cc.zip
cpython-7441e65821953c9c1b57c28ddc973e231e24c9cc.tar.gz
cpython-7441e65821953c9c1b57c28ddc973e231e24c9cc.tar.bz2
* SF patch 835100 - C++ // comments are not allowed. Use /* */
-rw-r--r--Modules/_bsddb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index fc3d335..b86cd78 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -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,