This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
in re_op_compile(), keep code_blocks for qr//
authorDavid Mitchell <davem@iabyn.com>
Fri, 25 Nov 2011 11:29:33 +0000 (11:29 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:46 +0000 (13:32 +0100)
commit3d2bd50a8cb5045b534f6057d7efe9035e154cfa
treecfb1a917cc411129bfe234c6bbafe4960572b318
parent9fe3265f80780ae89bff15514f96265eaac469d9
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.
regcomp.c
regcomp.h
regexp.h