This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv.c: add sv_setpv_bufsize() and SvPVCLEAR()
authorYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 08:40:29 +0000 (10:40 +0200)
committerYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 11:27:59 +0000 (13:27 +0200)
commit45661033e6be88d16397139fbd546cb1c7f8cd56
tree4faf5988e1671db667cd36d29ae14240f6ec74f8
parent4ac46235a35c3293a6effa2b38b5fe6e37ef7985
sv.c: add sv_setpv_bufsize() and SvPVCLEAR()

The first can be used to wrap several SVPV steps into
a single sub, and a wrapper macro which is the equivalent
of

   $s= "";

but is optimized in various ways.
embed.fnc
embed.h
proto.h
sv.c
sv.h