This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Simplify deb_curcv() a bit
authorBenjamin Sugars <bsugars@canoe.ca>
Wed, 9 May 2001 18:14:34 +0000 (14:14 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 9 May 2001 23:06:25 +0000 (23:06 +0000)
Message-ID: <Pine.LNX.4.21.0105091811340.1160-100000@marmot.rim.canoe.ca>

p4raw-id: //depot/perl@10062

run.c

diff --git a/run.c b/run.c
index 60d591e..04302db 100644 (file)
--- a/run.c
+++ b/run.c
@@ -114,8 +114,6 @@ S_deb_curcv(pTHX_ I32 ix)
     PERL_CONTEXT *cx = &cxstack[ix];
     if (CxTYPE(cx) == CXt_SUB || CxTYPE(cx) == CXt_FORMAT)
         return cx->blk_sub.cv;
-    else if (CxTYPE(cx) == CXt_EVAL && CxREALEVAL(cx))
-        return PL_compcv;
     else if (CxTYPE(cx) == CXt_EVAL && !CxTRYBLOCK(cx))
         return PL_compcv;
     else if (ix == 0 && PL_curstackinfo->si_type == PERLSI_MAIN)