summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-01-10 19:33:40 -0700
committerKarl Williamson <public@khwilliamson.com>2011-01-13 22:55:53 -0700
commitd5788240aa1a05e95b12adb94ecd93e56e339e38 (patch)
tree989960b139746b7cd8ff116d967aad84ed49d4fb /regcomp.h
parentab0dc2a14e4710f9425c659dff37ba4e9bcdebd8 (diff)
downloadperl-d5788240aa1a05e95b12adb94ecd93e56e339e38.tar.gz
regex: Some Comment clarifications
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/regcomp.h b/regcomp.h
index c15d681960..6adb47a183 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -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 */