This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add Perl_re_op_compile function
authorDavid Mitchell <davem@iabyn.com>
Fri, 19 Aug 2011 11:10:01 +0000 (12:10 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:25:49 +0000 (13:25 +0100)
commit74529a43ce600615669683dcaf9e9521d374031c
tree0903f5576c093d42c766607eceb2f318d7f1768b
parentf8b2cf8affb6b075db359edf9986904b971337f8
add Perl_re_op_compile function

Make Perl_re_compile() a thin wrapper around a new function,
Perl_re_op_compile(). This function can take either a string pattern or a
list of ops. Then make pmruntime() pass a list of ops directly to it, rather
concatenating all the consts into a single string and passing the const to
Perl_re_compile(). For now, Perl_re_op_compile just does the same: if its
passed an op tree rather than an SV, then it just concats the consts.

So this is is just the next step towards eventually allowing the regex
engine to use the ops directly.
embed.fnc
embed.h
ext/re/re.xs
ext/re/re_top.h
op.c
proto.h
regcomp.c