From: Marcus Holland-Moritz Date: Thu, 30 Dec 2004 18:29:02 +0000 (+0000) Subject: Mention ppport.h and its --api-info switch in perlguts. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d098d33944e8ba673db0e919dabb29e6715bba2;p=p5sagit%2Fp5-mst-13.2.git Mention ppport.h and its --api-info switch in perlguts. p4raw-id: //depot/perl@23712 --- diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 5eb46d2..4d04531 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -2283,6 +2283,26 @@ source, like this: Please try and supply some documentation if you add functions to the Perl core. +=head2 Backwards compatibility + +The Perl API changes over time. New functions are added or the interfaces +of existing functions are changed. The C module tries to +provide compatibility code for some of these changes, so XS writers don't +have to code it themselves when supporting multiple versions of Perl. + +C generates a C header file F that can also +be run as a Perl script. To generate F, run: + + perl -MDevel::PPPort -eDevel::PPPort::WriteFile + +Besides checking existing XS code, the script can also be used to retrieve +compatibility information for various API calls using the C<--api-info> +command line switch. For example: + + % perl ppport.h --api-info=sv_magicext + +For details, see C. + =head1 Unicode Support Perl 5.6.0 introduced Unicode support. It's important for porters and XS