This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae38af
)
Document calling convention for XS cmp routines
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 16 Oct 2011 18:59:41 +0000
(11:59 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 16 Oct 2011 18:59:41 +0000
(11:59 -0700)
pod/perlfunc.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
bff6566
..
cf610fe
100644
(file)
--- a/
pod/perlfunc.pod
+++ b/
pod/perlfunc.pod
@@
-5878,6
+5878,10
@@
into the subroutine as the package global variables $a and $b (see example
below). Note that in the latter case, it is usually highly counter-productive
to declare $a and $b as lexicals.
+If the subroutine is an XSUB, the elements to be compared are pushed on to
+the stack, the way arguments are usually passed to XSUBs. $a and $b are
+not set.
+
The values to be compared are always passed by reference and should not
be modified.