summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-05-31 11:46:23 +0100
committerDavid Mitchell <davem@iabyn.com>2012-06-13 13:32:54 +0100
commit732caac7f4933bbaa60046b5567f5823c06d15b5 (patch)
treee8e4f0647afcf8c66ff4f23ec93a8f5fccd910c2 /regcomp.h
parent74088413856f71406615c6b1ae959e57f51d192a (diff)
downloadperl-732caac7f4933bbaa60046b5567f5823c06d15b5.tar.gz
propagate 'use re eval' into return from (??{})
(??{}) returns a string which needs to be put through the regex compiler, and which may also contain (?{...}) - so any 'use re eval' in scope needs to be propagated into the inner environment. Achieve this by adding a new private flag - PREGf_USE_RE_EVAL - to the regex to indicate the use is in scope, and modify how the call to compile the inner pattern is done, to allow the use state to be passed in.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index cca15bcd51..89db7ccd32 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -137,6 +137,7 @@
#define PREGf_NAUGHTY 0x00000004 /* how exponential is this pattern? */
#define PREGf_VERBARG_SEEN 0x00000008
#define PREGf_CUTGROUP_SEEN 0x00000010
+#define PREGf_USE_RE_EVAL 0x00000020 /* compiled with "use re 'eval'" */
/* this is where the old regcomp.h started */