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=879b678a52c18c12349431fee0030a48db6d42ff;hpb=9cd5eb05f2a375deac583160e2f9446e5e552b49 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); }