]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commitdiff
Rename 'id' to 'hint' for consistency
authorVincent Pit <vince@profvince.com>
Sun, 24 May 2009 14:37:00 +0000 (16:37 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 24 May 2009 14:37:00 +0000 (16:37 +0200)
Types.xs

index 8970e9116ecf6822520cc46eed2a94d203bd9327..29e8d87ff13b163f9f318f6afb8363036e0d7b0e 100644 (file)
--- 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 ...................................................... */