summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-10-31 11:20:43 -0600
committerFather Chrysostomos <sprout@cpan.org>2010-10-31 15:58:41 -0700
commitaf364d036721fad8cdfe034fea03192968f09774 (patch)
tree81eb0d87ebd8840c0d49fda444b57159901d9025 /regexec.c
parentf6ad78d8b847361e046c98c7811db99387508807 (diff)
downloadperl-af364d036721fad8cdfe034fea03192968f09774.tar.gz
regexec.c: Add clarifying comment
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 2ef017aa2a..9acadbbd5b 100644
--- a/regexec.c
+++ b/regexec.c
@@ -94,7 +94,11 @@
#define STATIC static
#endif
-#define REGINCLASS(prog,p,c) (ANYOF_FLAGS(p) ? reginclass(prog,p,c,0,0) : ANYOF_BITMAP_TEST(p,*(c)))
+/* Valid for non-utf8 strings only: avoids the reginclass call if there are no
+ * complications: i.e., if everything matchable is straight forward in the
+ * bitmap */
+#define REGINCLASS(prog,p,c) (ANYOF_FLAGS(p) ? reginclass(prog,p,c,0,0) \
+ : ANYOF_BITMAP_TEST(p,*(c)))
/*
* Forwards.