summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-11-13 17:21:14 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-11-22 13:32:52 -0800
commit3ff7ceb302af0696dab5b544b884cc950eaa6f13 (patch)
tree7934d61a67b88fd8a3e5763c1defe0990d5e52b3 /regcomp.h
parent3871f40bf5bbc33b83c9d4da28b28ab838a0006a (diff)
downloadperl-3ff7ceb302af0696dab5b544b884cc950eaa6f13.tar.gz
rename ANYOF_UNICODE to ANYOF_NONBITMAP
I am about the hone the meaning of this to mean that there is something outside the bitmap that is matchable by the node, and the new name reflects that more accurately. I am not retaining the old name because I'm about to remove it from the flags field to save a bit and avoid masking operations, and any code that would be using it would break at that point.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 7b73b02b42..4fb119ed01 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -326,7 +326,10 @@ struct regnode_charclass_class {
/* EOS used for regstclass only */
#define ANYOF_EOS 0x10 /* Can match an empty string too */
-#define ANYOF_UNICODE 0x20 /* Matches >= one thing past 0xff */
+/* Set if the bitmap doesn't fully represent what this node can match */
+#define ANYOF_NONBITMAP 0x20
+#define ANYOF_UNICODE ANYOF_NONBITMAP /* old name, for back compat */
+
#define ANYOF_UNICODE_ALL 0x40 /* Matches 0x100 - infinity */
#define ANYOF_FLAGS_ALL 0xff