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

XSLoader as CPAN module for the taking

From:
Michael G Schwern
Date:
August 29, 2003 22:45
Subject:
XSLoader as CPAN module for the taking
Message ID:
20030830054348.GH25970@windhund.schwern.org
I've extracted XSLoader from bleadperl and repackaged it as a CPAN module.
http://www.pobox.com/~schwern/src/XSLoader-0.02.tar.gz

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        schwern@pobox.com  http://www.pobox.com/~schwern/
Playstation?  Of course Perl runs on Playstation.
    -- Jarkko Hietaniemi



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About