Skip to content

Commit 7ce41e5

Browse files
author
Father Chrysostomos
committed
pp_hot.c:pp_subst: Move comment
Perl 5 has always had the ‘don't match same null twice’ comment in pp_subst. Originally it was a parenthetical note right below the s == m. 71be2cb removed the parentheses. Commit f722798 moved it further away from s == m. Now what it refers to is far from clear.
1 parent 1555b32 commit 7ce41e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pp_hot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,9 +2232,9 @@ PP(pp_subst)
22322232
d += clen;
22332233
}
22342234
s = RX_OFFS(rx)[0].end + orig;
2235-
} while (CALLREGEXEC(rx, s, strend, orig, s == m,
2235+
} while (CALLREGEXEC(rx, s, strend, orig,
2236+
s == m, /* don't match same null twice */
22362237
TARG, NULL,
2237-
/* don't match same null twice */
22382238
REXEC_NOT_FIRST|REXEC_IGNOREPOS|REXEC_FAIL_ON_UNDERFLOW));
22392239
if (s != d) {
22402240
I32 i = strend - s;

0 commit comments

Comments
 (0)