This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_regcomp: split overloading and concat tasks
authorDavid Mitchell <davem@iabyn.com>
Wed, 26 Oct 2011 12:21:10 +0000 (13:21 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:25:50 +0000 (13:25 +0100)
commitdf787a7bb4a63e5953790968accffdcb3018e1d8
tree4c1f7f694137a5534c6fe35b20cacc965be1257b
parent28dc7a3ee8b77b196886d47586c8b233366d896d
pp_regcomp: split overloading and concat tasks

Make two passes through the list of args: first to apply
magic/overloading, and secondly to concatenate them. This will
shortly allow us to pass a processed, but unconcatenated list to
re_op_compile().

Also, simplify the code by treating the 1-arg case as an arg list
of length 1.  This also allows us to use the tryAMAGICregexp macro
in only one place, and thus to unroll and eliminate it.
pp_ctl.c