From: Andy Lester Date: Sun, 5 Feb 2006 21:56:43 +0000 (-0600) Subject: Cleaning up shadowed variables X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b38226bd5310e3491efebdb123b63d72520af10;p=p5sagit%2Fp5-mst-13.2.git Cleaning up shadowed variables Message-Id: p4raw-id: //depot/perl@27102 --- diff --git a/op.c b/op.c index 8dd2976..54c56c4 100644 --- a/op.c +++ b/op.c @@ -4883,8 +4883,8 @@ Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename) if (gvcv) { HV * const stash = GvSTASH(gvcv); if (stash) { - const char *name = HvNAME_get(stash); - if ( strEQ(name,"autouse") ) { + const char *redefined_name = HvNAME_get(stash); + if ( strEQ(redefined_name,"autouse") ) { const line_t oldline = CopLINE(PL_curcop); if (PL_copline != NOLINE) CopLINE_set(PL_curcop, PL_copline); diff --git a/pp_ctl.c b/pp_ctl.c index e5e4dd9..3f0168e 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3446,12 +3446,12 @@ PP(pp_entereval) /* switch to eval mode */ if (PERLDB_NAMEEVAL && CopLINE(PL_curcop)) { - SV * const sv = sv_newmortal(); - Perl_sv_setpvf(aTHX_ sv, "_<(eval %lu)[%s:%"IVdf"]", + SV * const temp_sv = sv_newmortal(); + Perl_sv_setpvf(aTHX_ temp_sv, "_<(eval %lu)[%s:%"IVdf"]", (unsigned long)++PL_evalseq, CopFILE(PL_curcop), (IV)CopLINE(PL_curcop)); - tmpbuf = SvPVX(sv); - len = SvCUR(sv); + tmpbuf = SvPVX(temp_sv); + len = SvCUR(temp_sv); } else len = my_sprintf(tmpbuf, "_<(eval %lu)", (unsigned long)++PL_evalseq);