This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_goto(): use clear_defarray()
authorDavid Mitchell <davem@iabyn.com>
Sat, 11 Jul 2015 09:52:49 +0000 (10:52 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:35 +0000 (08:59 +0000)
commit95b2f486579b731481fbd80debadc4504e6fc8fc
treede2ac49eb2dd8c33b389ea3517a4bca1cea05ce7
parent6e45d8466dd324149902764d87ad245baa32abb6
pp_goto(): use clear_defarray()

In pp_goto(), use the newly-added clear_defarray() function
to the clear the old @_. This ensures that POPSUB() and pp_goto()
do the same thing. Note that clear_defarray() is actually better than
the old pp_goto() code, in that it pre-sizes the newly-created array
to match the size of the array being abandoned.
pp_ctl.c