X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Upper.xs;h=114161a4879cd4ddfe7f13162360f09ecd0ce89e;hb=70148496e0d2fce5974ae1a869f06b22bd7c119d;hp=386bf5abe245f267c9515c0ca39ca2c2f7f10f2f;hpb=ae64b29ad6c13002911b394f671bd4af07b3fc89;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Upper.xs b/Upper.xs index 386bf5a..114161a 100644 --- a/Upper.xs +++ b/Upper.xs @@ -911,10 +911,13 @@ static void su_localize(pTHX_ void *ud_) { #ifdef gv_fetchsv gv = gv_fetchsv(sv, GV_ADDMULTI, t); #else - STRLEN len; - const char *name = SvPV_const(sv, len); - gv = gv_fetchpvn_flags(name, len, GV_ADDMULTI, t); + { + STRLEN len; + const char *name = SvPV_const(sv, len); + gv = gv_fetchpvn_flags(name, len, GV_ADDMULTI, t); + } #endif + #if SU_HAS_NEW_CXT CX_CUR()->blk_oldcop = old_cop; #endif @@ -1047,6 +1050,8 @@ static const char *su_block_type[] = { #define SU_CXNAME(C) SU_CX_TYPENAME(CxTYPE(C)) +#if XSH_DEBUG + /* for debugging. These indicate how many ENTERs each context type * does before the PUSHBLOCK */ @@ -1066,6 +1071,8 @@ static const int su_cxt_enter_count[] = { # endif }; +#endif /* XSH_DEBUG */ + /* push at least 'size' slots worth of padding onto the savestack */ static void su_ss_push_padding(pTHX_ void *ud, I32 size) { @@ -1086,7 +1093,6 @@ static void su_pop(pTHX_ void *ud); static void su_ss_push_destructor(pTHX_ void *ud, I32 depth, bool first) { su_ud_origin_elem *origin = SU_UD_ORIGIN(ud); - I32 pad; assert(first || origin[depth+1].orig_ix == PL_savestack_ix); su_ss_push_padding(aTHX_ ud, @@ -1163,7 +1169,7 @@ static void su_pop(pTHX_ void *ud) { static void su_init(pTHX_ void *ud, I32 cxix, I32 size) { #define su_init(U, C, S) su_init(aTHX_ (U), (C), (S)) - I32 i, depth, base; + I32 i, depth; su_ud_origin_elem *origin; I32 cur_cx_ix; I32 cur_scope_ix;