From: Vincent Pit Date: Fri, 15 May 2009 22:22:26 +0000 (+0200) Subject: 5.9.5 fix X-Git-Tag: v0.09~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=556ca4d6c177191bbcb11408b3c0e6952dc3cbfd;p=perl%2Fmodules%2FScope-Upper.git 5.9.5 fix --- diff --git a/Upper.xs b/Upper.xs index 95a22ed..af2a1d4 100644 --- a/Upper.xs +++ b/Upper.xs @@ -277,7 +277,7 @@ typedef struct { STATIC void su_call(pTHX_ void *ud_) { su_ud_reap *ud = (su_ud_reap *) ud_; -#if SU_HAS_PERL(5, 10, 0) +#if SU_HAS_PERL(5, 9, 5) PERL_CONTEXT saved_cx; I32 dieing = PL_op->op_type == OP_DIE; I32 cxix; @@ -296,7 +296,7 @@ STATIC void su_call(pTHX_ void *ud_) { /* If cxstack_ix isn't incremented there, the eval context will be overwritten * when the new sub scope will be created in call_sv. */ -#if SU_HAS_PERL(5, 10, 0) +#if SU_HAS_PERL(5, 9, 5) if (dieing) { if (cxstack_ix < cxstack_max) cxix = cxstack_ix + 1; @@ -308,7 +308,7 @@ STATIC void su_call(pTHX_ void *ud_) { call_sv(ud->cb, G_VOID); -#if SU_HAS_PERL(5, 10, 0) +#if SU_HAS_PERL(5, 9, 5) if (dieing) cxstack[cxix] = saved_cx; #endif