summaryrefslogtreecommitdiffstats
path: root/Modules/bsddbmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* add open function to bsddb185 module so the file format sniffing can beSkip Montanaro2003-05-061-0/+2
| | | | restricted to the whichdb module
* Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.Martin v. Löwis2002-11-191-2/+2
|
* Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." linkMark Hammond2002-07-231-1/+1
| | | | | command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
* staticforward bites the dust.Jeremy Hylton2002-07-171-1/+1
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-231-3/+3
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTupleNeal Norwitz2002-03-311-14/+10
| | | | Please review for correctness.
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-251-30/+20
|
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-12/+12
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* Don't raise MemoryError in keys() when the database is empty.Guido van Rossum2001-03-221-1/+1
| | | | This fixes SF bug #410146 (python 2.1b shelve is broken).
* Gustavo Niemeyer <niemeyer@conectiva.com>:Fred Drake2001-02-271-73/+134
| | | | | | | | | | Fixed recno support (keys are integers rather than strings). Work around DB bug that cause stdin to be closed by rnopen() when the DB file needed to exist but did not (no longer segfaults). This closes SF tracker patch #403445. Also wrapped some long lines and added whitespace around operators -- FLD.
* Wrap a bunch of long lines.Fred Drake2001-02-191-13/+23
|
* [Patch #102827] Fix for PR#119558, avoiding core dumps by checking forAndrew M. Kuchling2000-12-151-7/+16
| | | | malloc() returning NULL
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Skip Montanaro <skip@mojam.com>:Fred Drake2000-08-311-1/+4
| | | | | | | | | | | Update the build structures to automatically detect the presence of BSD db, including the proper name of the header file to include. Has all the expected niceties associated with yet-more-configure-options. ;) This checkin includes changes for non-generated files only; subsequent checkin will catch those. This is part of SourceForge patch #101272.
* ANSIfy some more forward declarations.Thomas Wouters2000-07-241-1/+1
|
* ANSI-fication, not really tested, but should (hopefully) compilePeter Schneider-Kamp2000-07-101-87/+24
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Add a comment about needing to change a #include if using a version ofFred Drake2000-06-301-0/+1
| | | | | Berkeley DB 2.0 or newer; most Linux distros will include a more recent version than 1.85.
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-4/+4
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-3/+3
| | | | PyArg_ParseTuple() format string arguments as possible.
* Added comment with web location of bsddb windows port.Guido van Rossum1999-09-201-1/+4
|
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-211-9/+9
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-011-1/+1
|
* Make new gcc -Wall happyGuido van Rossum1998-04-101-3/+3
|
* Threading speedup patches by Christopher Lindblad <cjl@infoseek.com>.Guido van Rossum1998-04-091-22/+148
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-3/+3
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* Patches by AMK to check that the db is still open.Guido van Rossum1997-07-171-0/+20
|
* Already renamed. Indented.Roger E. Masse1997-01-161-471/+513
|
* Fix bad format char in error msg (%s should be %d).Guido van Rossum1996-12-051-3/+1
| | | | Keep gcc -Wall happy.
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Force O_BINARY in flags if defined, for e.g. Microsoft platforms.Guido van Rossum1996-09-111-1/+10
|
* Dynamically initialize ob_type field, for Windows DLLGuido van Rossum1996-09-111-1/+2
|
* Converted to new style names by Skip MontanaroGuido van Rossum1996-07-241-130/+129
|
* Be more careful about default args.Guido van Rossum1996-05-231-16/+25
|
* Initial revisionGuido van Rossum1995-08-301-0/+667