mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
bsddb module updated to version 4.6.4
This commit is contained in:
parent
bbb093751c
commit
ef9764f1a4
3 changed files with 1451 additions and 307 deletions
|
|
@ -25,6 +25,8 @@ Extension Modules
|
||||||
|
|
||||||
- Support for Windows9x has been removed from the winsound module.
|
- Support for Windows9x has been removed from the winsound module.
|
||||||
|
|
||||||
|
- bsddb module updated to version 4.6.4.
|
||||||
|
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
||||||
1660
Modules/_bsddb.c
1660
Modules/_bsddb.c
File diff suppressed because it is too large
Load diff
|
|
@ -36,7 +36,7 @@
|
||||||
/*
|
/*
|
||||||
* Handwritten code to wrap version 3.x of the Berkeley DB library,
|
* Handwritten code to wrap version 3.x of the Berkeley DB library,
|
||||||
* written to replace a SWIG-generated file. It has since been updated
|
* written to replace a SWIG-generated file. It has since been updated
|
||||||
* to compile with BerkeleyDB versions 3.2 through 4.2.
|
* to compile with Berkeley DB versions 3.2 through 4.2.
|
||||||
*
|
*
|
||||||
* This module was started by Andrew Kuchling to remove the dependency
|
* This module was started by Andrew Kuchling to remove the dependency
|
||||||
* on SWIG in a package by Gregory P. Smith who based his work on a
|
* on SWIG in a package by Gregory P. Smith who based his work on a
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
#error "eek! DBVER can't handle minor versions > 9"
|
#error "eek! DBVER can't handle minor versions > 9"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PY_BSDDB_VERSION "4.6.0"
|
#define PY_BSDDB_VERSION "4.6.5devel2"
|
||||||
|
|
||||||
/* Python object definitions */
|
/* Python object definitions */
|
||||||
|
|
||||||
|
|
@ -119,17 +119,27 @@ struct behaviourFlags {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
struct DBObject; /* Forward declaration */
|
||||||
|
struct DBCursorObject; /* Forward declaration */
|
||||||
|
struct DBTxnObject; /* Forward declaration */
|
||||||
|
struct DBSequenceObject; /* Forward declaration */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
DB_ENV* db_env;
|
DB_ENV* db_env;
|
||||||
u_int32_t flags; /* saved flags from open() */
|
u_int32_t flags; /* saved flags from open() */
|
||||||
int closed;
|
int closed;
|
||||||
struct behaviourFlags moduleFlags;
|
struct behaviourFlags moduleFlags;
|
||||||
|
#if (DBVER >= 40)
|
||||||
|
PyObject* event_notifyCallback;
|
||||||
|
#endif
|
||||||
|
struct DBObject *children_dbs;
|
||||||
|
struct DBTxnObject *children_txns;
|
||||||
PyObject *in_weakreflist; /* List of weak references */
|
PyObject *in_weakreflist; /* List of weak references */
|
||||||
} DBEnvObject;
|
} DBEnvObject;
|
||||||
|
|
||||||
|
typedef struct DBObject {
|
||||||
typedef struct {
|
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
DB* db;
|
DB* db;
|
||||||
DBEnvObject* myenvobj; /* PyObject containing the DB_ENV */
|
DBEnvObject* myenvobj; /* PyObject containing the DB_ENV */
|
||||||
|
|
@ -137,6 +147,15 @@ typedef struct {
|
||||||
u_int32_t setflags; /* saved flags from set_flags() */
|
u_int32_t setflags; /* saved flags from set_flags() */
|
||||||
int haveStat;
|
int haveStat;
|
||||||
struct behaviourFlags moduleFlags;
|
struct behaviourFlags moduleFlags;
|
||||||
|
struct DBTxnObject *txn;
|
||||||
|
struct DBCursorObject *children_cursors;
|
||||||
|
#if (DBVER >=43)
|
||||||
|
struct DBSequenceObject *children_sequences;
|
||||||
|
#endif
|
||||||
|
struct DBObject **sibling_prev_p;
|
||||||
|
struct DBObject *sibling_next;
|
||||||
|
struct DBObject **sibling_prev_p_txn;
|
||||||
|
struct DBObject *sibling_next_txn;
|
||||||
#if (DBVER >= 33)
|
#if (DBVER >= 33)
|
||||||
PyObject* associateCallback;
|
PyObject* associateCallback;
|
||||||
PyObject* btCompareCallback;
|
PyObject* btCompareCallback;
|
||||||
|
|
@ -146,18 +165,31 @@ typedef struct {
|
||||||
} DBObject;
|
} DBObject;
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DBCursorObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
DBC* dbc;
|
DBC* dbc;
|
||||||
|
struct DBCursorObject **sibling_prev_p;
|
||||||
|
struct DBCursorObject *sibling_next;
|
||||||
|
struct DBCursorObject **sibling_prev_p_txn;
|
||||||
|
struct DBCursorObject *sibling_next_txn;
|
||||||
DBObject* mydb;
|
DBObject* mydb;
|
||||||
|
struct DBTxnObject *txn;
|
||||||
PyObject *in_weakreflist; /* List of weak references */
|
PyObject *in_weakreflist; /* List of weak references */
|
||||||
} DBCursorObject;
|
} DBCursorObject;
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct DBTxnObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
DB_TXN* txn;
|
DB_TXN* txn;
|
||||||
PyObject *env;
|
DBEnvObject* env;
|
||||||
|
int flag_prepare;
|
||||||
|
struct DBTxnObject *parent_txn;
|
||||||
|
struct DBTxnObject **sibling_prev_p;
|
||||||
|
struct DBTxnObject *sibling_next;
|
||||||
|
struct DBTxnObject *children_txns;
|
||||||
|
struct DBObject *children_dbs;
|
||||||
|
struct DBSequenceObject *children_sequences;
|
||||||
|
struct DBCursorObject *children_cursors;
|
||||||
PyObject *in_weakreflist; /* List of weak references */
|
PyObject *in_weakreflist; /* List of weak references */
|
||||||
} DBTxnObject;
|
} DBTxnObject;
|
||||||
|
|
||||||
|
|
@ -170,13 +202,17 @@ typedef struct {
|
||||||
|
|
||||||
|
|
||||||
#if (DBVER >= 43)
|
#if (DBVER >= 43)
|
||||||
typedef struct {
|
typedef struct DBSequenceObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
DB_SEQUENCE* sequence;
|
DB_SEQUENCE* sequence;
|
||||||
DBObject* mydb;
|
DBObject* mydb;
|
||||||
|
struct DBTxnObject *txn;
|
||||||
|
struct DBSequenceObject **sibling_prev_p;
|
||||||
|
struct DBSequenceObject *sibling_next;
|
||||||
|
struct DBSequenceObject **sibling_prev_p_txn;
|
||||||
|
struct DBSequenceObject *sibling_next_txn;
|
||||||
PyObject *in_weakreflist; /* List of weak references */
|
PyObject *in_weakreflist; /* List of weak references */
|
||||||
} DBSequenceObject;
|
} DBSequenceObject;
|
||||||
staticforward PyTypeObject DBSequence_Type;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue