From: Rafael Garcia-Suarez Date: Wed, 9 May 2007 07:57:50 +0000 (+0000) Subject: Add examples for h2xs -X, by Andy Armstrong X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e88439973becb3ddc3bfd26120bc77a6aacfb808;p=p5sagit%2Fp5-mst-13.2.git Add examples for h2xs -X, by Andy Armstrong p4raw-id: //depot/perl@31175 --- diff --git a/utils/h2xs.PL b/utils/h2xs.PL index d62e96e..d16634c 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -66,6 +66,9 @@ the library path determined by Configure. That path can be augmented by including arguments of the form B<-L/another/library/path> in the extra-libraries argument. +In spite of its name, I may also be used to create a skeleton pure +Perl module. See the B<-X> option. + =head1 OPTIONS =over 5 @@ -105,8 +108,8 @@ Omit the autogenerated stub POD section. =item B<-X>, B<--omit-XS> -Omit the XS portion. Used to generate templates for a module which is not -XS-based. C<-c> and C<-f> are implicitly enabled. +Omit the XS portion. Used to generate a skeleton pure Perl module. +C<-c> and C<-f> are implicitly enabled. =item B<-a>, B<--gen-accessors> @@ -306,6 +309,9 @@ also the section on L>. # Extension is ONC::RPC. h2xs -cfn ONC::RPC + # Extension is a pure Perl module with no XS code. + h2xs -X My::Module + # Extension is Lib::Foo which works at least with Perl5.005_03. # Constants are created for all #defines and enums h2xs can find # in foo.h.