diff options
author | David Mitchell <davem@iabyn.com> | 2012-03-28 09:44:01 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-06-13 13:32:49 +0100 |
commit | e485beb85b12595f4a784d37e5f42d36644128ba (patch) | |
tree | 7b66af964f4e99b07c2e223795121605a5a57332 /embed.h | |
parent | 0547a7295c4c0072f6e77ff07650c554c64fbbd8 (diff) | |
download | perl-e485beb85b12595f4a784d37e5f42d36644128ba.tar.gz |
pmruntime: make more use of Perl_re_op_compile
In the compile-time, non-code branch of pmruntime(), rather than
assembling the pattern string ourselves from the list of constant strings,
just pass the whole thing to Perl_re_op_compile() (or whatever eng->op_comp
is in scope) to assemble.
This has two benefits. First it avoids duplicating the concatenation code
(which already has to be present in Perl_re_op_compile), and it provides
more information to that function; in particular so that we can identify
a late-bound compile-time pattern, i.e. $foo =~ 'string-not-regex'.
Diffstat (limited to 'embed.h')
0 files changed, 0 insertions, 0 deletions