diff options
author | David Mitchell <davem@iabyn.com> | 2011-11-25 11:29:33 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-06-13 13:32:46 +0100 |
commit | 3d2bd50a8cb5045b534f6057d7efe9035e154cfa (patch) | |
tree | cfb1a917cc411129bfe234c6bbafe4960572b318 /regcomp.h | |
parent | 9fe3265f80780ae89bff15514f96265eaac469d9 (diff) | |
download | perl-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |