X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=Types.xs;h=29e8d87ff13b163f9f318f6afb8363036e0d7b0e;hp=8970e9116ecf6822520cc46eed2a94d203bd9327;hb=4c2bd13c1fbd960115c9c623791811d5db1112f5;hpb=0d207ae48f747f30fa357811f1334488fadc97d3 diff --git a/Types.xs b/Types.xs index 8970e91..29e8d87 100644 --- a/Types.xs +++ b/Types.xs @@ -114,7 +114,6 @@ STATIC void lt_thread_cleanup(pTHX_ void *); STATIC void lt_thread_cleanup(pTHX_ void *ud) { int *level = ud; - SV *id; if (*level) { *level = 0; @@ -182,20 +181,20 @@ STATIC U32 lt_hash = 0; STATIC SV *lt_hint(pTHX) { #define lt_hint() lt_hint(aTHX) - SV *id; + SV *hint; #if LT_HAS_PERL(5, 9, 5) - id = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash, - NULL, - __PACKAGE__, __PACKAGE_LEN__, - 0, - lt_hash); + hint = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash, + NULL, + __PACKAGE__, __PACKAGE_LEN__, + 0, + lt_hash); #else SV **val = hv_fetch(GvHV(PL_hintgv), __PACKAGE__, __PACKAGE_LEN__, lt_hash); if (!val) return 0; - id = *val; + hint = *val; #endif - return (id && SvOK(id)) ? id : NULL; + return (hint && SvOK(hint)) ? hint : NULL; } /* ... op => info map ...................................................... */