summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-26 22:46:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-26 22:46:05 +0000
commit19103b91374ccd8680065ad4812871fe2d75144e (patch)
treead06b6d8ae3510c1abbc0ee6c099d3ebafcece03 /regcomp.h
parent4f66b38db5464959528af7812bbc138af1cb39d6 (diff)
downloadperl-19103b91374ccd8680065ad4812871fe2d75144e.tar.gz
Document ANYOF_CLASS.
p4raw-id: //depot/perl@9874
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/regcomp.h b/regcomp.h
index 122bec4668..b292ba36d5 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -95,16 +95,16 @@ struct regnode_charclass {
U8 type;
U16 next_off;
U32 arg1;
- char bitmap[ANYOF_BITMAP_SIZE];
+ char bitmap[ANYOF_BITMAP_SIZE]; /* only compile-time */
};
-struct regnode_charclass_class {
- U8 flags;
+struct regnode_charclass_class { /* has [[:blah:]] classes */
+ U8 flags; /* should have ANYOF_CLASS here */
U8 type;
U16 next_off;
U32 arg1;
- char bitmap[ANYOF_BITMAP_SIZE];
- char classflags[ANYOF_CLASSBITMAP_SIZE];
+ char bitmap[ANYOF_BITMAP_SIZE]; /* both compile-time */
+ char classflags[ANYOF_CLASSBITMAP_SIZE]; /* and run-time */
};
/* XXX fix this description.
@@ -182,7 +182,7 @@ struct regnode_charclass_class {
/* Flags for node->flags of ANYOF */
-#define ANYOF_CLASS 0x08
+#define ANYOF_CLASS 0x08 /* has [[:blah:]] classes */
#define ANYOF_INVERT 0x04
#define ANYOF_FOLD 0x02
#define ANYOF_LOCALE 0x01