diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-01-10 19:33:40 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-01-13 22:55:53 -0700 |
commit | d5788240aa1a05e95b12adb94ecd93e56e339e38 (patch) | |
tree | 989960b139746b7cd8ff116d967aad84ed49d4fb /regcomp.h | |
parent | ab0dc2a14e4710f9425c659dff37ba4e9bcdebd8 (diff) | |
download | perl-d5788240aa1a05e95b12adb94ecd93e56e339e38.tar.gz |
regex: Some Comment clarifications
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -312,7 +312,12 @@ struct regnode_charclass_class { /* Flags for node->flags of several of the node types */ #define USE_UNI 0x01 -/* Flags for node->flags of ANYOF */ +/* Flags for node->flags of ANYOF. These are in short supply, so some games + * are done to share them, as described below. For flags that are applicable + * to the synthetic start class (stc) only, with some work, they could be put + * in the next-node field, or in an unused bit of the classflags field. Once + * the planned change to compile all the above-latin1 code points is done, then + * the UNICODE_ALL bit can be freed up */ #define ANYOF_LOCALE 0x01 @@ -327,7 +332,8 @@ struct regnode_charclass_class { #define ANYOF_INVERT 0x04 -/* CLASS is never set unless LOCALE is too: has runtime \d, \w, [:posix:], ... */ +/* CLASS is never set unless LOCALE is too: has runtime \d, \w, [:posix:], ... + * The non-locale ones are resolved at compile-time */ #define ANYOF_CLASS 0x08 #define ANYOF_LARGE ANYOF_CLASS /* Same; name retained for back compat */ |