This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: test for valid %vX once
authorDavid Mitchell <davem@iabyn.com>
Fri, 26 May 2017 23:17:35 +0000 (00:17 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:05 +0000 (09:11 +0100)
commit6d8359099e891d5d17c54443848ae47c65431f7c
treef3b35a5de04ae24c0509992803ff769b0b71f707
parent035c82bafaebfbb81dc7ae9d2eb5972f5404b6d8
Perl_sv_vcatpvfn_flags: test for valid %vX once

Rather than testing for !vectorize in every conversion case which doesn't
support %v, test once for supported types in the if (vectorize) branch.

That way code which doesn't use %v never has to test for it.
sv.c