ext/SDBM_File/sdbm/sdbm.h SDBM kit
ext/SDBM_File/sdbm/tune.h SDBM kit
ext/SDBM_File/sdbm/util.c SDBM kit
+ext/SDBM_File/t/constants.t See if SDBM_File constants work
ext/SDBM_File/t/sdbm.t See if SDBM_File works
ext/SDBM_File/typemap SDBM extension interface types
ext/Sys-Hostname/Hostname.pm Sys::Hostname extension Perl module
require XSLoader;
our @ISA = qw(Tie::Hash);
-our $VERSION = "1.10";
+our $VERSION = "1.11";
+
+our @EXPORT_OK = qw(PAGFEXT DIRFEXT PAIRMAX);
+use Exporter "import";
XSLoader::load();
SDBM_File::filter_store_value = store_value
CODE:
DBM_setFilter(db->filter[ix], code);
+
+BOOT:
+ {
+ HV *stash = gv_stashpvs("SDBM_File", 1);
+ newCONSTSUB(stash, "PAGFEXT", newSVpvs(PAGFEXT));
+ newCONSTSUB(stash, "DIRFEXT", newSVpvs(DIRFEXT));
+ newCONSTSUB(stash, "PAIRMAX", newSVuv(PAIRMAX));
+ }
--- /dev/null
+#!./perl
+use strict;
+use Test::More tests => 4;
+
+use SDBM_File;
+
+# has always been .pag
+is(SDBM_File::PAGFEXT, ".pag", "PAGFEXT");
+
+# depends on the platform
+like(SDBM_File::DIRFEXT, qr/^\.(?:sdbm_)?dir$/, "DIRFEXT");
+
+is(SDBM_File::PAIRMAX, 1008, "PAIRMAX");
+
+ok(eval { SDBM_File->import(qw(PAIRMAX PAGFEXT DIRFEXT)); 1 }, "exportable");
+