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:
47bf35f
)
B::perlstring can be implemented as an ALIAS of B::cstring.
author
Nicholas Clark
<nick@ccl4.org>
Sun, 24 Oct 2010 11:35:06 +0000
(13:35 +0200)
committer
Nicholas Clark
<nick@ccl4.org>
Sun, 24 Oct 2010 11:35:06 +0000
(13:35 +0200)
ext/B/B.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B.xs
b/ext/B/B.xs
index
769336a
..
92b45b4
100644
(file)
--- a/
ext/B/B.xs
+++ b/
ext/B/B.xs
@@
-811,16
+811,10
@@
save_BEGINs()
SV *
cstring(sv)
SV * sv
+ ALIAS:
+ perlstring = 1
CODE:
- RETVAL = cstring(aTHX_ sv, 0);
- OUTPUT:
- RETVAL
-
-SV *
-perlstring(sv)
- SV * sv
- CODE:
- RETVAL = cstring(aTHX_ sv, 1);
+ RETVAL = cstring(aTHX_ sv, ix);
OUTPUT:
RETVAL