This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
B::perlstring can be implemented as an ALIAS of B::cstring.
authorNicholas Clark <nick@ccl4.org>
Sun, 24 Oct 2010 11:35:06 +0000 (13:35 +0200)
committerNicholas Clark <nick@ccl4.org>
Sun, 24 Oct 2010 11:35:06 +0000 (13:35 +0200)
ext/B/B.xs

index 769336a..92b45b4 100644 (file)
@@ -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