develooper Front page | perl.perl5.porters | Postings from November 2001

RE: [PATCH h2xs] Use of static data in XS modules

Thread Previous | Thread Next
From:
Paul Marquess
Date:
November 5, 2001 15:19
Subject:
RE: [PATCH h2xs] Use of static data in XS modules
Message ID:
AIEAJICLCBDNAAOLLOKLKEBPDEAA.Paul_Marquess@Yahoo.co.uk
From: Jarkko Hietaniemi [mailto:jhi@iki.fi]

> On Tue, Oct 30, 2001 at 04:50:16PM +0000, Tim Bunce wrote:
> > On Tue, Oct 30, 2001 at 04:13:01PM -0000, Paul Marquess wrote:
> > >
> > > Have we reached the stage where we need to seriously consider
> including
> > > Devel::PPPort in the core (with a parallel existence on CPAN)?
> >
> > I think so.
>
> Fine with me, too.  (The name "ppport.h" is also less likely to
> cause conflicts, me like.)

How does this sound for a plan?

  1. Devel::PPPort

     Port Devel::PPPort into the core. The biggest change needed here is to
get
     Devel::PPPort to install itself, and for it to provide an interface to
     allow h2xs to get a ppport.h file.

  2. h2xs

     Get h2xs to add an "#include ppport.h" in the .xs file and use
     Devel::PPPort to generate the ppport.h file.

  3. Bells & Whistles

     h2xs could write a section in Makefile.PL to (optionally) check if
     Devel::PPPort is installed. If it is installed and it is newer than the
     version than was used to create the ppport.h file included with the
module
     it is building, it could automatically upgrade the ppport.h file.

     Devel::PPPort could be given the intelligence to check for newer
versions
     of itself on CPAN.

I don't mind doing 1 & 2 above, at least, but I'd prefer to have Kenneth's
approval to modify his module first. Does anyone know if he is still active
in the Perl world?

Paul


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Thread Previous | Thread Next


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