diff options
author | Karl Williamson <public@khwilliamson.com> | 2014-02-17 13:47:00 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2014-02-19 08:32:59 -0700 |
commit | 1462525b8916fe18637f62742c02f7016eb23fab (patch) | |
tree | 9a7ed42da8cfd74b3865ae5f5c403514abb26bcb /regcomp.h | |
parent | e0e1be5fc663ef0fdda840a92e286b8eece99537 (diff) | |
download | perl-1462525b8916fe18637f62742c02f7016eb23fab.tar.gz |
regexes: Remove uses of ANYOF_LOCALE flag
This flag no longer adds any useful information and can be removed. An
ANYOF node that depends on locale either matches a POSIX class like /d,
or matches case insensitively, or both. There are flags for both these
cases, and to see if something matches locale, one merely needs to see
if either flag is set.
Not having to keep track of this extra flag simplifies things, and will
allow it to be removed. There was a time when this flag was shared with
one of the remaining locale ones, and there was relict code that allowed
that sharing to be reinstated, and which this commit also removes.
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -422,14 +422,12 @@ struct regnode_ssc { #define ANYOF_FLAGS_ALL (0xff) -#define ANYOF_LOCALE_FLAGS (ANYOF_LOCALE \ - |ANYOF_LOC_FOLD \ - |ANYOF_POSIXL) +#define ANYOF_LOCALE_FLAGS (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 | ANYOF_WARN_SUPER) +#define ANYOF_COMMON_FLAGS (ANYOF_WARN_SUPER) /* Character classes for node->classflags of ANYOF */ /* Should be synchronized with a table in regprop() */ |