This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
threads is no longer customized, as of commit c0ff91434b
[perl5.git] / ext / GDBM_File / GDBM_File.pm
index fe87dd0..a06fa13 100644 (file)
@@ -22,15 +22,17 @@ interface.
 
 =head1 AVAILABILITY
 
-Gdbm is available from any GNU archive.  The master site is
-C<prep.ai.mit.edu>, but your are strongly urged to use one of the many
-mirrors.   You can obtain a list of mirror sites by issuing the
-command        C<finger fsf@prep.ai.mit.edu>.
+gdbm is available from any GNU archive.  The master site is
+C<ftp.gnu.org>, but you are strongly urged to use one of the many
+mirrors.  You can obtain a list of mirror sites from
+http://www.gnu.org/order/ftp.html.
 
 =head1 BUGS
 
 The available functions and the gdbm/perl interface need to be documented.
 
+The GDBM error number and error message interface needs to be added.
+
 =head1 SEE ALSO
 
 L<perl(1)>, L<DB_File(3)>, L<perldbmfilter>. 
@@ -40,48 +42,35 @@ L<perl(1)>, L<DB_File(3)>, L<perldbmfilter>.
 package GDBM_File;
 
 use strict;
-our($VERSION, @ISA, @EXPORT, $AUTOLOAD);
+use warnings;
+our($VERSION, @ISA, @EXPORT);
 
 require Carp;
 require Tie::Hash;
 require Exporter;
-use AutoLoader;
-use XSLoader ();
+require XSLoader;
 @ISA = qw(Tie::Hash Exporter);
 @EXPORT = qw(
        GDBM_CACHESIZE
+       GDBM_CENTFREE
+       GDBM_COALESCEBLKS
        GDBM_FAST
+       GDBM_FASTMODE
        GDBM_INSERT
        GDBM_NEWDB
+       GDBM_NOLOCK
+       GDBM_OPENMASK
        GDBM_READER
        GDBM_REPLACE
+       GDBM_SYNC
+       GDBM_SYNCMODE
        GDBM_WRCREAT
        GDBM_WRITER
 );
 
-$VERSION = "1.04";
-
-sub AUTOLOAD {
-    my($constname);
-    ($constname = $AUTOLOAD) =~ s/.*:://;
-    my $val = constant($constname, @_ ? $_[0] : 0);
-    if ($! != 0) {
-       if ($! =~ /Invalid/ || $!{EINVAL}) {
-           $AutoLoader::AUTOLOAD = $AUTOLOAD;
-           goto &AutoLoader::AUTOLOAD;
-       }
-       else {
-           Carp::croak("Your vendor has not defined GDBM_File macro $constname, used");
-       }
-    }
-    eval "sub $AUTOLOAD { $val }";
-    goto &$AUTOLOAD;
-}
-
-XSLoader::load 'GDBM_File', $VERSION;
-
-# Preloaded methods go here.  Autoload methods go after __END__, and are
-# processed by the autosplit program.
+# This module isn't dual life, so no need for dev version numbers.
+$VERSION = '1.15';
+
+XSLoader::load();
 
 1;
-__END__