diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-09-23 07:53:10 -0600 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2010-10-15 23:14:29 +0900 |
commit | b4eac3bb9c5966ec2001ca9133a9e167a5e1338f (patch) | |
tree | daa10e6077aeb35ee96ee9364c97b3c4ef5db743 /regcomp.h | |
parent | c02a070252bd579029e13d4770b28ea0b044c389 (diff) | |
download | perl-b4eac3bb9c5966ec2001ca9133a9e167a5e1338f.tar.gz |
Subject: regcomp.h: Add macro to get regnode flags
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |