X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlxstut.pod;h=85a8c71f3fab8cdfa846242dfc27d46736e39ded;hb=84287afe68eecc4342d7e27aac5d9df9d2412490;hp=592f2ee189aef4cc708d31593f85a8f023facf26;hpb=d9d2a7fbcc96dde1317c64fe5cf8ab5f28c2fd28;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlxstut.pod b/pod/perlxstut.pod index 592f2ee..85a8c71 100644 --- a/pod/perlxstut.pod +++ b/pod/perlxstut.pod @@ -88,7 +88,7 @@ test" is sufficient. Our first extension will be very simple. When we call the routine in the extension, it will print out a well-known message and return. -Run "h2xs -A -n Mytest". This creates a directory named Mytest, possibly under +Run C. This creates a directory named Mytest, possibly under ext/ if that directory exists in the current working directory. Several files will be created in the Mytest dir, including MANIFEST, Makefile.PL, Mytest.pm, Mytest.xs, test.pl, and Changes. @@ -271,7 +271,7 @@ contain the shared library that we will build. Once we have tested it, we can install it into its final location. Invoking the test script via "make test" did something very important. It -invoked perl with all those -I arguments so that it could find the various +invoked perl with all those C<-I> arguments so that it could find the various files that are part of the extension. It is I important that while you are still testing extensions that @@ -582,11 +582,13 @@ for equality, but rather the difference being below a certain epsilon factor, Run "make test" and all should be well. -=head 2 WHAT HAS HAPPENED HERE? +=head2 WHAT HAS HAPPENED HERE? Unlike previous examples, we've now run h2xs on a real include file. This has caused some extra goodies to appear in both the .pm and .xs files. +=over 4 + =item * In the .xs file, there's now a #include declaration with the full path to