summaryrefslogtreecommitdiff
path: root/op_reg_common.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-02 17:48:56 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-14 08:41:38 -0700
commitdf7a846035e6969f5e1c298976888d5cc7878d25 (patch)
tree166edd6f5ecc35bcf1a79324fc96df717715fd8b /op_reg_common.h
parent5b67c30a31044c5d4e88d3f815fdfdf86649016b (diff)
downloadperl-df7a846035e6969f5e1c298976888d5cc7878d25.tar.gz
Initial setup to accommodate /aa regex modifier
This changes the bits to add a new charset type for /aa, and other bookkeeping for it.
Diffstat (limited to 'op_reg_common.h')
-rw-r--r--op_reg_common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/op_reg_common.h b/op_reg_common.h
index f5096500a3..4c3fe2c42c 100644
--- a/op_reg_common.h
+++ b/op_reg_common.h
@@ -41,11 +41,12 @@ typedef enum {
REGEX_DEPENDS_CHARSET = 0,
REGEX_LOCALE_CHARSET,
REGEX_UNICODE_CHARSET,
- REGEX_ASCII_RESTRICTED_CHARSET
+ REGEX_ASCII_RESTRICTED_CHARSET,
+ REGEX_ASCII_MORE_RESTRICTED_CHARSET
} regex_charset;
#define _RXf_PMf_CHARSET_SHIFT ((RXf_PMf_STD_PMMOD_SHIFT)+5)
-#define RXf_PMf_CHARSET (3 << (_RXf_PMf_CHARSET_SHIFT)) /* 2 bits */
+#define RXf_PMf_CHARSET (7 << (_RXf_PMf_CHARSET_SHIFT)) /* 3 bits */
/* embed.pl doesn't yet know how to handle static inline functions, so
manually decorate them here with gcc-style attributes.
@@ -78,7 +79,7 @@ get_regex_charset(const U32 flags)
/* Next available bit after the above. Name begins with '_' so won't be
* exported by B */
-#define _RXf_PMf_SHIFT_NEXT (RXf_PMf_STD_PMMOD_SHIFT+7)
+#define _RXf_PMf_SHIFT_NEXT (RXf_PMf_STD_PMMOD_SHIFT+8)
/* Mask of the above bits. These need to be transferred from op_pmflags to
* re->extflags during compilation */