Skip to content

Commit 7213797

Browse files
committed
pp_ctl.c - rename vars to something more descriptive in require_file()
"i" and "ar" is a bit too minimal, and I will be refactoring this code somewhat in following patches, so this preps it for future changes.
1 parent 1a55cc5 commit 7213797

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pp_ctl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4260,16 +4260,16 @@ S_require_file(pTHX_ SV *sv)
42604260
* For searchable paths, just search @INC normally
42614261
*/
42624262
if (!tryrsfp && !(errno == EACCES && !path_searchable)) {
4263-
AV * const ar = GvAVn(PL_incgv);
4264-
SSize_t i;
4263+
AV * const inc_ar = GvAVn(PL_incgv);
4264+
SSize_t inc_idx;
42654265
#ifdef VMS
42664266
if (vms_unixname)
42674267
#endif
42684268
{
42694269
SV *nsv = sv;
42704270
namesv = newSV_type(SVt_PV);
4271-
for (i = 0; i <= AvFILL(ar); i++) {
4272-
SV * const dirsv = *av_fetch(ar, i, TRUE);
4271+
for (inc_idx = 0; inc_idx <= AvFILL(inc_ar); inc_idx++) {
4272+
SV * const dirsv = *av_fetch(inc_ar, inc_idx, TRUE);
42734273

42744274
SvGETMAGIC(dirsv);
42754275
if (SvROK(dirsv)) {

0 commit comments

Comments
 (0)