From eff8b7dc9a14f3aa38ddb85d01d614da4c6d8957 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 30 Dec 2013 15:04:37 -0700 Subject: 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. --- regcomp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'regcomp.h') 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 */ -- cgit v1.2.1