This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags() split %.0f and %.Ng
authorDavid Mitchell <davem@iabyn.com>
Mon, 15 May 2017 19:42:12 +0000 (20:42 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:01 +0000 (09:11 +0100)
commit784f8b3cbed61eec02af29dba2e2f906ab3de16a
tree05b08d5ea393abdce7684d2ab98a2ef7e4c13250
parent2b7d1ece3360ab87502d3adcd9fd64f482cbe06e
Perl_sv_vcatpvfn_flags() split %.0f and %.Ng

The format elements "%.0f" and "%.NNNg" are handled specially in the main
loop. Split the code block which handles them and process %.0f earlier. It
doesn't need to allocate a variable-length buffer or worry about the
length of the radix string.
sv.c