summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-09-23 07:53:10 -0600
committerJesse Vincent <jesse@bestpractical.com>2010-10-15 23:14:29 +0900
commitb4eac3bb9c5966ec2001ca9133a9e167a5e1338f (patch)
treedaa10e6077aeb35ee96ee9364c97b3c4ef5db743 /regcomp.h
parentc02a070252bd579029e13d4770b28ea0b044c389 (diff)
downloadperl-b4eac3bb9c5966ec2001ca9133a9e167a5e1338f.tar.gz
Subject: regcomp.h: Add macro to get regnode flags
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index 362a8ed0bd..1fb0e51041 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -271,6 +271,8 @@ struct regnode_charclass_class { /* has [[:blah:]] classes */
#undef STRING
#define OP(p) ((p)->type)
+#define FLAGS(p) ((p)->flags) /* Caution: Doesn't apply to all
+ regnode types */
#define OPERAND(p) (((struct regnode_string *)p)->string)
#define MASK(p) ((char*)OPERAND(p))
#define STR_LEN(p) (((struct regnode_string *)p)->str_len)