This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add S_padhv_rv2hv_common() function
authorDavid Mitchell <davem@iabyn.com>
Mon, 17 Jul 2017 14:52:38 +0000 (15:52 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 10:30:24 +0000 (11:30 +0100)
commitaa36782f823c559475544c99a66db74997ce1edf
tree35fce64075643bdfbf25f484dea2000f39c39edd
parente855b461ca460cbac6d017d10587057f51474a68
add S_padhv_rv2hv_common() function

This STATIC INLINE function extracts out a chunk of common code from
pp_padhv() and pp_rv2hv() (well, from pp_rv2av() actually, since that
handles OP_RV2HV too).

Should be no functional changes, except that now in void context,
'keys %h' doesn't leave any rubbish on the stack.
pp_hot.c