This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
re_op_compile(): rejig code-block handling code
authorDavid Mitchell <davem@iabyn.com>
Fri, 11 Nov 2011 14:14:39 +0000 (14:14 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:25:52 +0000 (13:25 +0100)
commitb1603ef883c1cc16a978ec3c12aa376876ceb8d6
treede911f8f49529aa852392d05a751f6769d519105
parent83dd44856a433dd1711dc587f6bb75ee3956059b
re_op_compile(): rejig code-block handling code

In the code that keeps track of the start and end positions of each
code block, i.e. (?{....}), refactor it:

Rather than an array of STRLENs, with two slots to mark start and
positions, turn it into an array of structs; each holding the start and end
position, plus a pointer to the code block op. This will make it easier
when we shortly allow literal code from run-time patterns too.

Also rename some of the variables accordingly.
regcomp.c