X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=blobdiff_plain;f=Plugin.xs;h=cffc46389e01ad1d6175296136266d36eefd88b1;hp=d64951ea73016f3fcdc3a5dec3d0404c43246b0a;hb=92cf1014a173792464bbe74d342d9c44bb7698ee;hpb=1780282616fa174a9ebad39f0ecf797ebc9a3cb8 diff --git a/Plugin.xs b/Plugin.xs index d64951e..cffc463 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -249,12 +249,17 @@ STATIC const rep_hint_t *rep_hint(pTHX) { #define rep_hint() rep_hint(aTHX) SV *hint; +#ifdef cop_hints_fetch_pvn + hint = cop_hints_fetch_pvn(PL_curcop, + __PACKAGE__, __PACKAGE_LEN__, rep_hash, 0); +#else /* We already require 5.9.5 for the regexp engine API. */ hint = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash, NULL, __PACKAGE__, __PACKAGE_LEN__, 0, rep_hash); +#endif return rep_detag(hint); }