This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: split the 'need' local var
authorDavid Mitchell <davem@iabyn.com>
Tue, 9 May 2017 13:36:40 +0000 (14:36 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:10:59 +0000 (09:10 +0100)
commit655816c42255edd311d85817b154bf5902b2d40f
tree6d6f7856a135ad007293b0da3d83b27d6b3e12cd
parentd729f63cc94318c248eab95844cfbed5298a7ecd
Perl_sv_vcatpvfn_flags: split the 'need' local var

The 'need' local var has a wide scope (over 500 lines), and is used for
two separate purposes. Split it into two separate vars. One remains wide
scope, but is just used to calculate the new value of PL_efloatsize. Rename
that one to 'float_need'.

For the second use, introduce a new scope of just 6 lines with its own
'need' variable'.

This should make no functional difference but makes the code slightly
easier to understand and analyse.
sv.c