X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=indirect.xs;h=01e7a33441c549da35485901f97c1b7c4fb60f30;hb=2d1491ff7f2e6b5d845c5dc8f7631340d81bf4a8;hp=f318932cc8adc8bfa3d7a07e2315813ceb1660e1;hpb=fd1f4aa0e63bb64a51cb89c22cdf24027f82f5f9;p=perl%2Fmodules%2Findirect.git diff --git a/indirect.xs b/indirect.xs index f318932..01e7a33 100644 --- a/indirect.xs +++ b/indirect.xs @@ -163,7 +163,6 @@ typedef struct { #include "ptable.h" #define ptable_store(T, K, V) ptable_store(aTHX_ (T), (K), (V)) -#define ptable_delete(T, K) ptable_delete(aTHX_ (T), (K)) #define ptable_clear(T) ptable_clear(aTHX_ (T)) #define ptable_free(T) ptable_free(aTHX_ (T)) @@ -324,7 +323,7 @@ STATIC U32 indirect_hash = 0; STATIC SV *indirect_hint(pTHX) { #define indirect_hint() indirect_hint(aTHX) - SV *hint, *code; + SV *hint; #if I_HAS_PERL(5, 9, 5) hint = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash, NULL, @@ -392,7 +391,7 @@ STATIC void indirect_map_delete(pTHX_ const OP *o) { #define indirect_map_delete(O) indirect_map_delete(aTHX_ (O)) dMY_CXT; - ptable_delete(MY_CXT.map, o); + ptable_store(MY_CXT.map, o, NULL); } /* --- Check functions ----------------------------------------------------- */