summaryrefslogtreecommitdiff
path: root/ext/NDBM_File
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate the fifth argument from GDBM_File::TIEHASH.Nicholas Clark2012-12-131-1/+0
| | | | | | | | | | | | | | | This was intended to provide control of the callback used by gdbm* functions in case of fatal errors (such as filesystem problems), but did not work (and could never have worked). No code on CPAN even attempted to use it. The callback is now always the previous default, croak. This eliminates the only used of 'FATALFUNC' in the *DBM modules' type files, so remove it from all of them. It also eliminates a cast from a data pointer to a function pointer, which is not legal C, and rightly upsets pedantic ANSI C compilers. The fact that there was exactly cast, and only in one direction, gives a clue as to how likely this was ever to work.
* Add GNU/Hurd hints for NDBM_FilePino Toscano2011-11-041-0/+1
| | | | | | | | | | | | | | | currently, there are few tests failing because of a broken NDBM module; using the same hints as used on Linux (given that apparently the cause is the same) makes the following tests pass: t/op/dbm.t cpan/autodie/t/dbmopen.t cpan/Memoize/t/errors.t cpan/Memoize/t/tie_ndbm.t ext/NDBM_File/t/ndbm.t lib/AnyDBM_File.t Dominic Hargreaves adds: Note that the original git commit log [what you see above] lists some tests which aren't affected in blead.
* More version bumps in view of recent PERL_NO_GE_CONTEXT commitsFather Chrysostomos2011-03-191-1/+1
|
* Add PERL_NO_GET_CONTEXT to NDBM_FileNicholas Clark2011-03-191-0/+2
| | | | | For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
* bump version of many modulesZefram2010-12-191-1/+1
| | | | | Core-only modules that have changed from v5.13.7, and dual-life modules that have changed from v5.13.7 and didn't show up in earlier passes.
* Move common code from ext/[GONS]DBM_File/t/[gons]dbm.t to t/lib/dbmt_common.plNicholas Clark2010-12-161-491/+2
| | | | This eliminates 1445 lines, ie almost 500 lines duplicated fourfold.
* Converge ext/[GNOS]DBM_File/t/[gnos]dbm.t by parameterising the class name.Nicholas Clark2010-12-161-22/+28
|
* Converge ext/[GNOS]DBM_File/t/[gnos]dbm.t further.Nicholas Clark2010-12-161-8/+7
| | | | | | | | | Including Cross propagating some fixes: grep in void context warning (f84167b37281b9fd c57cf257e9e58200), but improve it by avoiding void context entirely, by actually testing the results :-) "cleaner close on tests, take 2", d1e4d418969ad3c5
* Converge ext/[GNOS]DBM_File/t/[gnos]dbm.t by using the same filename.Nicholas Clark2010-12-161-27/+35
| | | | | | | | | Choose the 1 dot form used by sdbm.t, to keep VMS happy. Also, propagate into ndbm.t the part of the test for 20001013.009 that cbc5248d01a71061 missed. Move the exist tests from f4b9d8806d76b352 earlier in sdbm.t, to increase consistency - the alternative attempts to have 2 DBM files open simultaneously, which ODBM_File doesn't support. (Implied TODO: add an explicit test for this to the other 3.)
* Convert ext/NDBM_File/t/ndbm.t to Test::More.Nicholas Clark2010-12-151-95/+89
|
* Remove redundant use strict,warnings,?DBM_File from ext/?DBM_File/t/?dbm.t.Nicholas Clark2010-12-151-18/+0
|
* Bump NDBM_File’s versionFather Chrysostomos2010-10-271-1/+1
|
* In [GNO]DBM_File.xs, store the 4 filter functions as 1 array in the struct.Nicholas Clark2010-10-212-42/+22
| | | | | | Previously they were 1 distinct members. Using an array allows the use of a in *_DESTROY, and merging of the 4 XS functions filter_{fetch,store}_{key,value} into 1 body with ALIASes.
* Convert [GNOS]DBM_File::TIEHASH to safecalloc() from safemalloc() then Zero().Nicholas Clark2010-10-211-2/+1
|
* [GNO]DBM_File must free any filter CVs in DESTROY.Nicholas Clark2010-10-211-0/+8
| | | | | | They have been leaking these since DBM filters were first added in 1999 by 9fe6733ac5627edd. DB_File and SDBM_File have always correctly freed their filters.
* Convert modules in ext/ to pass minimal arguments to XSLoader::load().Nicholas Clark2010-10-141-3/+3
|
* Make extensions in ext run their tests from the extension's own directory.Nicholas Clark2009-08-281-2/+0
| | | | | | | | | | | Inspired by, and in parts borrows from, Schwern's branch on github, but takes a slightly different approach in places. Not quite perfect yet - ext/File-Glob still runs from t, at least one FIXME needs fixing, and the changes to dual-life modules' tests need to be filtered back upstream, and possibly modified to suit their respective authors. But it works.
* bump versions of non-dual-life modules thatDavid Mitchell2009-07-031-1/+1
| | | | | * differ between 5.10.0 and maint-5.10, or * differ between 5.8.9 and maint-5.10
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Remove now-redundant references to MAN3PODS in core modules' Makefile.PLs.Nicholas Clark2009-03-261-1/+0
|
* NDBM just isn't meant to be used with C++. So thisMarcus Holland-Moritz2008-11-061-3/+9
| | | | | | change makes the intro of NDBM_File.xs even uglier, but hopefully it also makes tests pass now. p4raw-id: //depot/perl@34757
* Add prototype detection for NDBM header filesMarcus Holland-Moritz2008-11-062-11/+12
| | | | | Message-ID: <20081103224011.26c223b3@r2d2> p4raw-id: //depot/perl@34756
* Re: [perl #50180] NDBM_File fails to build Andy Dougherty2008-05-171-0/+6
| | | | | Message-ID: <Pine.LNX.4.64.0805131224130.9728@fractal.phys.lafayette.edu> p4raw-id: //depot/perl@33845
* Exterminate PL_na! Exterminate! Exterminate! Exterminate!Nicholas Clark2007-12-221-5/+9
| | | p4raw-id: //depot/perl@32704
* do $file; won't propagate errors from die, as do is an implicit eval.Nicholas Clark2007-01-082-2/+2
| | | | | So need to propagate errors with $@. p4raw-id: //depot/perl@29723
* RE: g++ compile and make test 100%Robin Barker2006-10-111-5/+5
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226120A65@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@28997
* Fix typo in NDBM_File.xs and bump up the version number.Steve Peters2006-10-112-2/+2
| | | p4raw-id: //depot/perl@28996
* Make g++ happy when compiling NDBM_File on a system thatSteve Peters2006-10-092-0/+23
| | | | | | is likely using the GDBM compatibility headers that g++ (and other C++ implementations) cannot handle. p4raw-id: //depot/perl@28976
* Bump $VERSION in many modules that have changed.Nicholas Clark2006-01-121-1/+1
| | | p4raw-id: //depot/perl@26804
* Typos in *.p[lm]Piotr Fusik2005-08-021-1/+1
| | | | | | From: "Piotr Fusik" <pfusik@op.pl> Message-ID: <001401c595bd$dccb5d80$0bd34dd5@piec> p4raw-id: //depot/perl@25261
* Missing tie() call in NDBM_File SYNOPSISMatt Sergeant2005-07-151-4/+7
| | | | | Message-Id: <28baf339c3b78cc40017066b9dc7cffb@sergeant.org> p4raw-id: //depot/perl@25145
* [perl #33998] [PATCH] Support for GNU/kFreeBSD Robert Millan2005-01-312-0/+2
| | | | | | From: "rmh@debian.org (via RT)" <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-33998-106860.15.2609323921089@perl.org> p4raw-id: //depot/perl@23909
* Re: [PATCH] [perl #29612] ndbm failure in make testAlexey Tourbin2004-06-021-1/+3
| | | | | Message-ID: <20040521222222.GJ2030@solemn.turbinal.org> p4raw-id: //depot/perl@22892
* PATCH: *DB*_File Paul Marquess2003-12-271-2/+2
| | | | | | From: "Paul Marquess" <Paul.Marquess@btinternet.com> Message-ID: <AIEAJICLCBDNAAOLLOKLIEAOPGAA.Paul.Marquess@btinternet.com> p4raw-id: //depot/perl@21981
* XS contents changes versus VERSION non-changes.Jarkko Hietaniemi2003-08-141-1/+1
| | | p4raw-id: //depot/perl@20704
* maintperl & bleadperl for Cygwin: include libgdbm_compat & libcygipc in ↵Gerrit P. Haase2003-08-081-1/+1
| | | | | | | | searchlist From: "Gerrit P. Haase" <gp@familiehaase.de> Message-ID: <1621817486657.20030808134451@familiehaase.de> p4raw-id: //depot/perl@20563
* No more ext/*/*.t, move them all to ext/*/t.Jarkko Hietaniemi2003-07-281-0/+0
| | | p4raw-id: //depot/perl@20269
* Incorporate fix from JHI at:Abhijit Menon-Sen2002-08-231-4/+0
| | | | | http://rt.perl.org/rt2/Ticket/Display.html?id=16708 p4raw-id: //depot/perl@17761
* Fix DBM filtersPaul Marquess2002-08-223-48/+53
| | | | | | From: "Paul Marquess" <Paul.Marquess@btinternet.com> Message-ID: <AIEAJICLCBDNAAOLLOKLAEHCFEAA.Paul.Marquess@btinternet.com> p4raw-id: //depot/perl@17750
* Fix for FETCH/NEXTKEY problem in all *DB*_File modulesPaul Marquess2001-10-222-2/+45
| | | | | Message-ID: <AIEAJICLCBDNAAOLLOKLAEOMDCAA.paul.marquess@openwave.com> p4raw-id: //depot/perl@12564
* Integrate change #11388 from macperl (the *.t parts needed hand massage).Jarkko Hietaniemi2001-07-211-2/+2
| | | | | | | | | p4raw-link: @11388 on //depot/maint-5.6/macperl: fa1e76071cf9cd14bdc552967af2da831117260a p4raw-id: //depot/perl@11432 p4raw-branched: from //depot/maint-5.6/macperl@11423 'branch in' macos/MacPerlTests.cmd (@11243..) p4raw-branched: from //depot/maint-5.6/macperl@11388 'branch in' macos/xsubpp.patch (@11243..)
* Re: [PATCH perlsnap] '-' !~ /\w/Philip Newton2001-07-021-1/+1
| | | | | (no Message-Id) p4raw-id: //depot/perl@11108
* In some Linux distributions the libndbm is brokenJarkko Hietaniemi2001-06-271-0/+6
| | | | | | | (no null key support), therefore link with libgdbm (if available), since it has a working ndbm emulation, from Jonathan Stowe. p4raw-id: //depot/perl@10984
* The Grand Trek: move the *.t files from t/ to lib/ and ext/.Jarkko Hietaniemi2001-06-181-0/+420
| | | | | | | | | | | | | | | | | | | | | | | | No doubt I made some mistakes like missed some files or misnamed some files. The naming rules were more or less: (1) if the module is from CPAN, follows its ways, be it t/*.t or test.pl. (2) otherwise if there are multiple tests for a module put them in a t/ (3) otherwise if there's only one test put it in Module.t (4) helper files go to module/ (locale, strict, warnings) (5) use longer filenames now that we can (but e.g. the compat-0.6.t and the Text::Balanced test files still were renamed to be more civil against the 8.3 people) installperl was updated appropriately not to install the *.t files or the help files from under lib. TODO: some helper files still remain under t/ that could follow their 'masters'. UPDATE: On second thoughts, why should they. They can continue to live under t/lib, and in fact the locale/strict/warnings helpers that were moved could be moved back. This way the amount of non-installable stuff under lib/ stays smaller. p4raw-id: //depot/perl@10676
* -Wall cleanup continues.Jarkko Hietaniemi2001-06-021-1/+1
| | | p4raw-id: //depot/perl@10392
* more pod patchesMichael Stevens2001-03-161-3/+3
| | | | | Message-ID: <20010315212518.A18870@firedrake.org> p4raw-id: //depot/perl@9176
* strict-w-proof the ?DBM_File, from Paul Marquess.Jarkko Hietaniemi2001-02-201-5/+2
| | | p4raw-id: //depot/perl@8848
* DB3 NDBM/ODBM emulation tweaks from Stanislav Brabec <utx@penguin.cz>.Jarkko Hietaniemi2001-01-041-0/+5
| | | p4raw-id: //depot/perl@8320
* RE: [ID 20001013.009] DB_File issues warning when setting element to undefPaul Marquess2000-12-102-3/+9
| | | | | Message-ID: <002001c061ff$b3aba820$a20a140a@bfs.phone.com> p4raw-id: //depot/perl@8068
* Document the NDBM_File and ODBM_File as SDBM_FileJarkko Hietaniemi2000-08-181-6/+84
| | | | | was documented in #6417. p4raw-id: //depot/perl@6701