[ANNOUNCE] Inline-C2XS-0.05
am 04.11.2006 13:41:11 von SisyphusHi,
For anyone interested, Inline-C2XS-0.05 has just hit the CPAN shelves.
If you have an Inline::C or Inline::CPP script that contains a heap of
fantastic C functions (don't we all ?), and you would like to make those
functions available via a perl extension (module), then Inline::C2XS will
write the requisite XS file for you.
It's (currently) still up to you to create the README file, the MANIFEST
file, the CHANGES file, the .pm file, the Makefile.PL, etc and the test
suite. But Inline::C2XS will write that XS file for you.
It does so by making use of the Inline::C and Parse::RecDescent parsing and
xs-writing capabilities - so, naturally, Inline::C and Parse::RecDescent are
pre-requisites.
Version 0.05 differs from 0.04 only in that the same functionality regarding
Inline::CPP scripts becomes available (with the added expense that
Inline::CPP is now also a pre-requisite). That is, if it's Inline::CPP code,
then you'll be calling the newly added Inline::C2XS::cpp2xs() function
instead of Inline::C2XS::c2xs().
Of course, if you're perfectly comfortable with writing XS files, then this
module probably has nothing to offer.
There's nothing very cute about the way that Inline::C2XS goes about the
task - just look at the code in C2XS.pm and you'll see what I mean. But I
believe it should provide good reliability and mileage - given that all of
the clever stuff is really being done by Inline::C/Inline::CPP and
Parse::RecDescent.
Cheers,
Rob
--
To reply by email send to optusnet.com.au instead of nomail.afraid.org