diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-04 14:17:09 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-06 21:22:24 -0700 |
commit | 5e874c42f3fcb001bc30d9d1a2618581b52a412e (patch) | |
tree | 252c95d6821aac9bfb9a89f57ac45ad3848ea550 /doop.c | |
parent | 472799915f21962871c7c62bd6b48f9e6775e0b7 (diff) | |
download | perl-5e874c42f3fcb001bc30d9d1a2618581b52a412e.tar.gz |
doop.c: Change name of variable
This helped me understand what was going on in this function
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -175,14 +175,14 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl) if (PL_op->op_private & OPpTRANS_SQUASH) { const U8* p = send; while (s < send) { - const short ch = tbl->map[*s]; - if (ch >= 0) { - *d = (U8)ch; + const short this_map = tbl->map[*s]; + if (this_map >= 0) { + *d = (U8)this_map; matches++; if (p != d - 1 || *p != *d) p = d++; } - else if (ch == (short) TR_UNMAPPED) + else if (this_map == (short) TR_UNMAPPED) *d++ = *s; else if (ch == (short) TR_DELETE) matches++; @@ -191,14 +191,14 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl) } else { /* Not to squash */ while (s < send) { - const short ch = tbl->map[*s]; - if (ch >= 0) { + const short this_map = tbl->map[*s]; + if (this_map >= 0) { matches++; - *d++ = (U8)ch; + *d++ = (U8)this_map; } - else if (ch == (short) TR_UNMAPPED) + else if (this_map == (short) TR_UNMAPPED) *d++ = *s; - else if (ch == (short) TR_DELETE) + else if (this_map == (short) TR_DELETE) matches++; s++; } |