Skip to content

Commit 945b008

Browse files
committed
Perldelta for Perl_newSVsv_flags_NN
1 parent 3be8ac0 commit 945b008

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pod/perldelta.pod

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,19 @@ with C<valid_utf8_to_uvchr>; its reason for existence is to have
357357
consistent spelling with the names of the other functions that translate
358358
from UTF-8, so you don't have to remember a different spelling.
359359

360+
=item *
361+
362+
L<perlapi/C<newSVsv_flags_NN>> is a new function for creating a new SV
363+
and assigning the value(s) of an existing SV to it.
364+
365+
Historically, C<Perl_newSVsv_flags> and C<Perl_sv_mortalcopy_flags> would
366+
pass a new SV head and the original SV to C<Perl_sv_setsv_flags>. However,
367+
the latter contains many branches of no relevance to a fresh SV, so they
368+
now make use of the new function to streamline the process.
369+
370+
C<Perl_newSVsv_flags> is now essentially a NULL pointer check and wrapper
371+
around the new function, so has been moved into F<sv_inline.h>.
372+
360373
=back
361374

362375
=head1 Selected Bug Fixes

0 commit comments

Comments
 (0)