develooper Front page | perl.inline | Postings from April 2012

Re: build inline program with pp

Thread Previous | Thread Next
From:
David Oswald
Date:
April 19, 2012 21:15
Subject:
Re: build inline program with pp
Message ID:
CAKTcQ94unCvBrwb1Q0cmBhdP45wXnZyMMpLYee0FAu4CJjJuJA@mail.gmail.com
On Thu, Apr 19, 2012 at 7:37 PM, Sisyphus <sisyphus1@optusnet.com.au> wrote:
>
> ----- Original Message ----- From: "Xiao Yafeng" <xyf.xiao@gmail.com>

> c2xs --m=XYZ --write_makefile_pl=1 --inc=-I/here -I/there --write_pm=1
> would equate to:
> c2xs('XYZ', 'XYZ', '.', {WRITE_MAKEFILE_PL=>1, INC=>'-I/here -I/there',
> WRITE_PM=>1});
>
> Would that be ok ? If not, let me know - I don't have any definite rules
> about this. (Error checking would be built in, of course.)

...while you're at it... (I'm sure you know what will come next):
InlineX::CPP2XS would benefit from similar treatment.

Would it make sense for the command-line version to exist within the
App:: namespace?  App::InlineX::CPP2XS, for example.

As for how it should be invoked... sane defaults, easily overridden
from the command line (my vote).

-- 

David Oswald
daoswald@gmail.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