diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-12-13 17:06:26 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-12-13 17:13:35 +0100 |
commit | 708cce4f6b3b5d37df12460d4fa3dca84646cf8b (patch) | |
tree | 31ba3e389394d8e5c4b77aef2bd58e432b050c0b /ext/ODBM_File | |
parent | ceab7011c2af9d86bd7743d6c1b7c37540fe14f1 (diff) | |
download | perl-708cce4f6b3b5d37df12460d4fa3dca84646cf8b.tar.gz |
Eliminate the fifth argument from GDBM_File::TIEHASH.
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.
Diffstat (limited to 'ext/ODBM_File')
-rw-r--r-- | ext/ODBM_File/typemap | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/ODBM_File/typemap b/ext/ODBM_File/typemap index 2612dfda14..8aed61c8c5 100644 --- a/ext/ODBM_File/typemap +++ b/ext/ODBM_File/typemap @@ -12,7 +12,6 @@ SDBM_File T_PTROBJ ODBM_File T_PTROBJ DB_File T_PTROBJ DBZ_File T_PTROBJ -FATALFUNC T_OPAQUEPTR INPUT T_DATUM_K |