X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=3083abc0f08e2bc4cdef27e55514645d267fa223;hp=ffb8a221c3610f4cce0ebb7037ab4e09b8daf7d0;hb=1a6ce5844e2fe25781307095b17b156e3ad9b484;hpb=42991cca70b2f98cbfc9e7cd1470df0e40842a8d diff --git a/indirect.xs b/indirect.xs index ffb8a22..3083abc 100644 --- a/indirect.xs +++ b/indirect.xs @@ -219,7 +219,8 @@ static I32 indirect_loaded = 0; #if I_THREADSAFE #define PTABLE_NAME ptable_loaded -#define PTABLE_VAL_FREE(V) NOOP +#define PTABLE_NEED_DELETE 1 +#define PTABLE_NEED_WALK 0 #include "ptable.h" @@ -320,6 +321,8 @@ typedef SV indirect_hint_t; #define PTABLE_NAME ptable_hints #define PTABLE_VAL_FREE(V) I_HINT_FREE(V) +#define PTABLE_NEED_DELETE 0 +#define PTABLE_NEED_WALK 1 #define pPTBL pTHX #define pPTBL_ pTHX_ @@ -346,6 +349,8 @@ typedef struct { #define PTABLE_NAME ptable #define PTABLE_VAL_FREE(V) if (V) { Safefree(((indirect_op_info_t *) (V))->buf); Safefree(V); } +#define PTABLE_NEED_DELETE 1 +#define PTABLE_NEED_WALK 0 #define pPTBL pTHX #define pPTBL_ pTHX_