summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-12-13 17:06:26 +0100
committerNicholas Clark <nick@ccl4.org>2012-12-13 17:13:35 +0100
commit708cce4f6b3b5d37df12460d4fa3dca84646cf8b (patch)
tree31ba3e389394d8e5c4b77aef2bd58e432b050c0b /ext/SDBM_File
parentceab7011c2af9d86bd7743d6c1b7c37540fe14f1 (diff)
downloadperl-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/SDBM_File')
-rw-r--r--ext/SDBM_File/typemap1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/SDBM_File/typemap b/ext/SDBM_File/typemap
index d1fc497f45..44370f21e0 100644
--- a/ext/SDBM_File/typemap
+++ b/ext/SDBM_File/typemap
@@ -11,7 +11,6 @@ SDBM_File T_PTROBJ
ODBM_File T_PTROBJ
DB_File T_PTROBJ
DBZ_File T_PTROBJ
-FATALFUNC T_OPAQUEPTR
INPUT
T_DATUM_K