From 2be3e1907e6f6fea92dc9617cb0d21982ebfbe7f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 27 Nov 2010 15:08:34 -0700 Subject: [PATCH] regexec.c: clarify comments --- regexec.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/regexec.c b/regexec.c index 874dce3..7dadc02 100644 --- a/regexec.c +++ b/regexec.c @@ -5803,7 +5803,8 @@ S_regrepeat(pTHX_ const regexp *prog, const regnode *p, I32 max, int depth) /* FALL THROUGH */ case EXACTF: - /* The comments for the EXACT case apply as well to these fold ones */ + /* The comments for the EXACT case above apply as well to these fold + * ones */ c = (U8)*STRING(p); assert(! UTF_PATTERN || UNI_IS_INVARIANT(c)); @@ -5836,9 +5837,10 @@ S_regrepeat(pTHX_ const regexp *prog, const regnode *p, I32 max, int depth) } else { - /* Here, the string isn't utf8; and either the pattern isn't utf8 - * or c is an invariant, so its utf8ness doesn't affect c. Can - * just do simple comparisons for exact or fold matching. */ + /* Here, the string isn't utf8 and c is a single byte; and either + * the pattern isn't utf8 or c is an invariant, so its utf8ness + * doesn't affect c. Can just do simple comparisons for exact or + * fold matching. */ switch (OP(p)) { case EXACTF: while (scan < loceol && -- 2.7.4