This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Merge the implementation of B::CV::{ROOT,START}.
authorNicholas Clark <nick@ccl4.org>
Fri, 22 Oct 2010 07:47:09 +0000 (08:47 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 22 Oct 2010 07:47:09 +0000 (08:47 +0100)
ext/B/B.pm
ext/B/B.xs

index 3d254b5..a7a022f 100644 (file)
@@ -7,7 +7,7 @@
 #
 package B;
 
-our $VERSION = '1.24';
+our $VERSION = '1.25';
 
 require XSLoader;
 require Exporter;
index 3d51969..e0cda16 100644 (file)
@@ -1913,16 +1913,10 @@ CvSTASH(cv)
 B::OP
 CvSTART(cv)
        B::CV   cv
+    ALIAS:
+       ROOT = 1
     CODE:
-       RETVAL = CvISXSUB(cv) ? NULL : CvSTART(cv);
-    OUTPUT:
-       RETVAL
-
-B::OP
-CvROOT(cv)
-       B::CV   cv
-    CODE:
-       RETVAL = CvISXSUB(cv) ? NULL : CvROOT(cv);
+       RETVAL = CvISXSUB(cv) ? NULL : ix ? CvROOT(cv) : CvSTART(cv);
     OUTPUT:
        RETVAL