develooper Front page | perl.perl5.porters | Postings from August 2003

XSLoader as CPAN module for the taking

Michael G Schwern
August 29, 2003 22:45
XSLoader as CPAN module for the taking
Message ID:
I've extracted XSLoader from bleadperl and repackaged it as a CPAN module.

Its been backported to 5.004_05 (could work on Perls older than that, 5.4.5
is the oldest version I have) and some basic tests added.  The backporting
was very simple, just duplicating a little utility function that was added
to DynaLoader in 5.6.0.

I also fixed load() so it dies gracefully when given no arguments as well
as pulled out a bunch of cargo-cultery from DynaLoader.

I have no desire to maintain this module, I don't even really understand it,
so I'm offering up this ready made tarball to whoever would like to maintain 
a CPAN version.  Its a very low maintenance module, only 4 changes in the 
last 3 years.

PS  The test using SDBM_File is sorta half correct.  XSLoader won't look
outside the same directory as the file which called load() so it always
falls through to DynaLoader.  Still, its better than nothing.

Michael G Schwern
Playstation?  Of course Perl runs on Playstation.
    -- Jarkko Hietaniemi Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About