summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-11-09 10:41:00 -0700
committerKarl Williamson <public@khwilliamson.com>2011-11-09 10:59:41 -0700
commitb33105db76e14fea2faebc1d7c20b4baf24440e2 (patch)
tree1fc45e2a5ac784dbbe908f5a5ba8457de36c0453 /regexec.c
parent0eac1e20b62b903f96f87a1a657203b8d3ae7d9e (diff)
downloadperl-b33105db76e14fea2faebc1d7c20b4baf24440e2.tar.gz
regexec.c: revise comment
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/regexec.c b/regexec.c
index 43cc5d72d1..4b8af5232b 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1567,10 +1567,12 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
e = s; /* Due to minlen logic of intuit() */
}
- /* XXX Note that we could recalculate e every so-often through the
- * loop to stop earlier, as the worst case expansion above will
- * rarely be met, and as we go along we would usually find that e
- * moves further to the left. Unclear if worth the expense */
+ /* XXX Note that we could recalculate e to stop the loop earlier,
+ * as the worst case expansion above will rarely be met, and as we
+ * go along we would usually find that e moves further to the left.
+ * This would happen only after we reached the point in the loop
+ * where if there were no expansion we should fail. Unclear if
+ * worth the expense */
while (s <= e) {
char *my_strend= (char *)strend;