[Python-checkins] python/dist/src/Modules _bsddb.c,1.2,1.3
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Mon, 30 Dec 2002 12:53:54 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv779
Modified Files:
_bsddb.c
Log Message:
Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now at
version 4.1.1 and works with up to BerkeleyDB 4.1.25.
Index: _bsddb.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_bsddb.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _bsddb.c 23 Nov 2002 11:26:07 -0000 1.2
--- _bsddb.c 30 Dec 2002 20:53:52 -0000 1.3
***************
*** 36,40 ****
/*
* Handwritten code to wrap version 3.x of the Berkeley DB library,
! * written to replace a SWIG-generated file.
*
* This module was started by Andrew Kuchling to remove the dependency
--- 36,41 ----
/*
* Handwritten code to wrap version 3.x of the Berkeley DB library,
! * written to replace a SWIG-generated file. It has since been updated
! * to compile with BerkeleyDB versions 3.2 through 4.1.
[...996 lines suppressed...]
/* All the rest of the exceptions derive only from DBError */
! #define MAKE_EX(name) name = PyErr_NewException("bsddb._db." #name, DBError, NULL); \
PyDict_SetItemString(d, #name, name)
***************
*** 4247,4254 ****
if (PyErr_Occurred()) {
PyErr_Print();
! Py_FatalError("can't initialize module _db");
}
}
-
-
-
--- 4509,4513 ----
if (PyErr_Occurred()) {
PyErr_Print();
! Py_FatalError("can't initialize module _bsddb");
}
}