summaryrefslogtreecommitdiffstats
path: root/Modules/gdbmmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-10/+10
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-10/+10
|
* The contains function raised a gcc warning. The new code is copied straight ↵Christian Heimes2008-02-261-5/+12
| | | | from py3k.
* Issue 2168. gdbm and dbm needs to be iterable; this fixes aFacundo Batista2008-02-251-2/+29
| | | | failure in the shelve module. Thanks Thomas Herve.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-1/+1
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-3/+2
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Make use of METH_O and METH_NOARGS where possible.Georg Brandl2006-05-291-21/+10
| | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
* Fix gcc (4.0.x) warning about use of uninitialized variable.Thomas Wouters2006-03-011-0/+1
|
* Merge ssize_t branch.Martin v. Löwis2006-02-151-2/+2
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* [Bug #982806] The default argument for opening GDBM files is bogus. Patch ↵Andrew M. Kuchling2004-07-071-1/+1
| | | | #984672 by James Lamanna
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-021-1/+1
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* 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.
* Patch #568124: Add doc string macros.Martin v. Löwis2002-06-131-30/+30
|
* 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.
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-1/+2
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* Patch in bug report #477700: Fix memory leaks in gdbm & curses.Martin v. Löwis2001-11-111-3/+4
|
* SF patch 404928: Support for next Cygwin gcc (2.95.2-8)Tim Peters2001-02-281-1/+1
|
* Add support for gdbm2 open flags ('s' and 'u'). Add module constantNeil Schemenauer2000-12-171-12/+54
| | | | | open_flags which contains the flags supported by gdbm. Closes patch #102802.
* 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.
* ANSIfy some more forward declarations.Thomas Wouters2000-07-241-1/+1
|
* ANSI-fy the sources.Fred Drake2000-07-081-313/+287
| | | | | | Convert to using PyArg_ParseTuple() as appropriate to allow method names in error messages. Re-indent to four-space indentation.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-2/+2
| | | | | | | | | | 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-1/+1
| | | | PyArg_ParseTuple() format string arguments as possible.
* Protect against core dumps in gdbm: don't allow access by key once theFred Drake2000-02-071-2/+8
| | | | | | database is closed. Raise gdbm.error instead. Bug report #198 submitted by Barry Haddow <bhaddow@orbism.com>.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* No need for (char *) cast from gdbm_strerror().Guido van Rossum1998-10-031-5/+3
|
* Win32 port. Patches by Milton L. Hankins.Guido van Rossum1998-10-031-1/+7
|
* Don't allow unescaped newlines in doc strings.Guido van Rossum1998-04-131-2/+1
|
* Doc strings added by Mitch Chapman.Guido van Rossum1998-03-031-19/+107
| | | | Also got rid of some inconsistent change log comments near the top.
* 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
|
* As per GvR recomendation, added support for a 'sync' attribute for theRoger E. Masse1997-03-251-0/+18
| | | | GDBM module.
* Renamed in a grand-ee-ous way!Roger E. Masse1996-12-171-171/+176
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Rewritten keys() and has_key() to avoid memory leaks.Guido van Rossum1996-07-211-11/+17
|
* support fast mode for gdmbGuido van Rossum1996-01-261-9/+16
|
* fix leaks in keys(); fix bug in close()Guido van Rossum1995-08-281-4/+11
|
* normalized flag arg and made flag, mode default args; minor cosmeticsGuido van Rossum1995-07-071-9/+27
|
* added firstkey(), nextkey(), reorganize() methodsGuido van Rossum1995-03-161-0/+64
|
* plugged some memory leaks (Steve Clift)Guido van Rossum1995-03-141-9/+16
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Free was called with a struct as argument instead of a field from theSjoerd Mullender1994-10-131-2/+2
| | | | struct.
* * Modules/{Setup.in, gdbmmodule.c}, Doc/{lib,libgdbm}.tex: addedGuido van Rossum1994-08-081-0/+279
Anthony Baxter's gdbm module (derived from Jack's dbm module)