X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=ee45f235dd4e7d3dfd3916bbd53254b047d85105;hp=a5d5b30afa5716b944f7db0376e03526fa8e0397;hb=dd6141a1ff00e5e62c4ed26899aeecb1b9d7d019;hpb=a4ebcbe07de579d5877df84c114f162f49019724 diff --git a/indirect.xs b/indirect.xs index a5d5b30..ee45f23 100644 --- a/indirect.xs +++ b/indirect.xs @@ -485,7 +485,6 @@ STATIC void indirect_map_store(pTHX_ const OP *o, const char *src, SV *sv, line_ STATIC const indirect_op_info_t *indirect_map_fetch(pTHX_ const OP *o) { #define indirect_map_fetch(O) indirect_map_fetch(aTHX_ (O)) - const indirect_op_info_t *val; dMY_CXT; if (MY_CXT.linestr != SvPVX_const(PL_linestr)) @@ -841,13 +840,15 @@ STATIC void indirect_setup(pTHX) { if (indirect_initialized) return; - MY_CXT_INIT; + { + MY_CXT_INIT; #if I_THREADSAFE - MY_CXT.tbl = ptable_new(); - MY_CXT.owner = aTHX; + MY_CXT.tbl = ptable_new(); + MY_CXT.owner = aTHX; #endif - MY_CXT.map = ptable_new(); - MY_CXT.linestr = NULL; + MY_CXT.map = ptable_new(); + MY_CXT.linestr = NULL; + } indirect_old_ck_const = PL_check[OP_CONST]; PL_check[OP_CONST] = MEMBER_TO_FPTR(indirect_ck_const); @@ -905,7 +906,7 @@ PROTOTYPE: DISABLE PREINIT: ptable *t; int *level; -CODE: +PPCODE: { my_cxt_t ud; dMY_CXT; @@ -927,6 +928,7 @@ CODE: SAVEDESTRUCTOR_X(indirect_thread_cleanup, level); ENTERn("sub"); } + XSRETURN(0); #endif