summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-10-07 11:19:26 +0100
committerNicholas Clark <nick@ccl4.org>2010-10-07 11:20:18 +0100
commit3a1b08584501598bc42fd18f6ce9ba051e867bc4 (patch)
tree3fdccfea03811d4f1a676eb32c43dff4b4413a02
parent65fa4aaa41a252fc701a0a3495d91d135a68128a (diff)
downloadperl-3a1b08584501598bc42fd18f6ce9ba051e867bc4.tar.gz
Improve XSLoader::load documentation.
Document that all arguments are passed on to the module's bootstrap function, and the behaviour of the bootstrap function in modules built by xsubpp.
-rw-r--r--dist/XSLoader/XSLoader_pm.PL12
1 files changed, 8 insertions, 4 deletions
diff --git a/dist/XSLoader/XSLoader_pm.PL b/dist/XSLoader/XSLoader_pm.PL
index 47492e1da8..66afa8e6e0 100644
--- a/dist/XSLoader/XSLoader_pm.PL
+++ b/dist/XSLoader/XSLoader_pm.PL
@@ -274,18 +274,22 @@ in F<YourPackage.pm>) and XS code (defined in F<YourPackage.xs>). If this
Perl code makes calls into this XS code, and/or this XS code makes calls to
the Perl code, one should be careful with the order of initialization.
-The call to C<XSLoader::load()> (or C<bootstrap()>) has three side effects:
+The call to C<XSLoader::load()> (or C<bootstrap()>) calls the module's
+bootstrap code. For modules build by F<xsubpp> (nearly all modules) this
+has three side effects:
=over
=item *
-if C<$VERSION> was specified, a sanity check is done to ensure that the
-versions of the F<.pm> and the (compiled) F<.xs> parts are compatible;
+A sanity check is done to ensure that the versions of the F<.pm> and the
+(compiled) F<.xs> parts are compatible. If C<$VERSION> was specified, this
+is used for the check. If not specified, it defaults to
+C<$XS_VERSION // $VERSION> (in the module's namespace)
=item *
-the XSUBs are made accessible from Perl;
+the XSUBs are made accessible from Perl
=item *