summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-11-25 11:29:33 +0000
committerDavid Mitchell <davem@iabyn.com>2012-06-13 13:32:46 +0100
commit3d2bd50a8cb5045b534f6057d7efe9035e154cfa (patch)
treecfb1a917cc411129bfe234c6bbafe4960572b318 /regcomp.h
parent9fe3265f80780ae89bff15514f96265eaac469d9 (diff)
downloadperl-3d2bd50a8cb5045b534f6057d7efe9035e154cfa.tar.gz
in re_op_compile(), keep code_blocks for qr//
code_blocks is a temporary list of start/end indices and pointers to DO blocks, that is used during the regexp compilation. Change it so that in the qr// case, this structure is preserved (attached to regexp_internal), so that in a forthcoming commit it will be available for use when interpolating a qr within another pattern.
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 536ad833f3..d7261db903 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -121,6 +121,8 @@ typedef OP OP_4tree; /* Will be redefined later. */
Used to make it easier to clone and free arbitrary
data that the regops need. Often the ARG field of
a regop is an index into this structure */
+ struct reg_code_block *code_blocks;/* positions of literal (?{}) */
+ int num_code_blocks; /* size of code_blocks[] */
regnode program[1]; /* Unwarranted chumminess with compiler. */
} regexp_internal;