X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=op.c;h=7459ae6d4f6ecd09bdb36c12b7e4ccf27e5cb587;hb=e336de0d01f30cc4061b6d6a00d11df30fc67cd3;hp=b636a91c5c2ddb59a752e982cdbf498fbcd9bd2d;hpb=bb13cb927b2b56cd314cd059be1c58034bedcc3b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/op.c b/op.c index b636a91..7459ae6 100644 --- a/op.c +++ b/op.c @@ -3330,7 +3330,7 @@ newSUB(I32 floor, OP *o, OP *proto, OP *block) goto done; } /* ahem, death to those who redefine active sort subs */ - if (curstack == sortstack && sortcop == CvSTART(cv)) + if (curstackinfo->si_type == SI_SORT && sortcop == CvSTART(cv)) croak("Can't redefine active sort subroutine %s", name); const_sv = cv_const_sv(cv); if (const_sv || dowarn && !(CvGV(cv) && GvSTASH(CvGV(cv)) @@ -3531,7 +3531,7 @@ newCONSTSUB(HV *stash, char *name, SV *sv) curstash = curcop->cop_stash = stash; newSUB( - MY_start_subparse(FALSE, 0), + start_subparse(FALSE, 0), newSVOP(OP_CONST, 0, newSVpv(name,0)), newSVOP(OP_CONST, 0, &sv_no), /* SvPV(&sv_no) == "" -- GMB */ newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))