projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ad78d
)
regexec.c: Add clarifying comment
author
Karl Williamson
<public@khwilliamson.com>
Sun, 31 Oct 2010 17:20:43 +0000
(11:20 -0600)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 31 Oct 2010 22:58:41 +0000
(15:58 -0700)
regexec.c
patch
|
blob
|
history
diff --git
a/regexec.c
b/regexec.c
index
2ef017a
..
9acadbb
100644
(file)
--- 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.