This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make Perl_list() mostly non-recursive
authorDavid Mitchell <davem@iabyn.com>
Tue, 28 May 2019 09:57:46 +0000 (10:57 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 24 Jun 2019 10:40:06 +0000 (11:40 +0100)
commit8ef9070b464ddfe6efb0d4b1661fd51fedebfba5
treeb69b92e14c4f4709022e95e3f602b860cf30a474
parent7d3088ba743b45313e7f3bf445e3b42a197251d9
make Perl_list() mostly non-recursive

Where it just recursively calls list() on all its children, instead
iteratively walk the sub-tree, using o->op_sibparent to work back
upwards.

Where it is more complex, such as OP_REPEAT imposing list context on its
first arg but not its second, recurse as before.
op.c
t/op/list.t