summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-30 15:04:37 -0700
committerKarl Williamson <public@khwilliamson.com>2013-12-31 08:27:20 -0700
commiteff8b7dc9a14f3aa38ddb85d01d614da4c6d8957 (patch)
tree38cfce0dee0974af24c36a39fd2ef6f5f25f556a /regcomp.h
parent5aa602328b19a4ecb1353379f390fcabd026cc2b (diff)
downloadperl-eff8b7dc9a14f3aa38ddb85d01d614da4c6d8957.tar.gz
regcomp.c: Split #define into two
The syntethic start class regnode (SSC) and a bracketed character class node share much of the same data structure, including a flags field, and some of the same flag bits within it. Currently, only locale-related flags (under /l rules) are the same between the two during construction of the SSC. But a future commit will introduce another common flag. This commit creates an extra #define for use where we want the common flags, while retaining the existing one for use where we want the locale flags. The new #define is just a copy of the existing one, to be changed in the future commit.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index 0967af5e8e..fb24579403 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -370,6 +370,11 @@ struct regnode_ssc {
|ANYOF_LOC_FOLD \
|ANYOF_POSIXL)
+/* These are the flags that apply to both regular ANYOF nodes and synthetic
+ * start class nodes during construction of the SSC. During finalization of
+ * the SSC, other of the flags could be added to it */
+#define ANYOF_COMMON_FLAGS (ANYOF_LOCALE_FLAGS)
+
/* Character classes for node->classflags of ANYOF */
/* Should be synchronized with a table in regprop() */
/* 2n should be the normal one, paired with its complement at 2n+1 */