Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perlapi: Document sv_dup(_inc)? #22291

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -14970,6 +14970,20 @@ S_sv_dup_common(pTHX_ const SV *const ssv, CLONE_PARAMS *const param)
return dsv;
}

/*
=for apidoc sv_dup
=for apidoc_item sv_dup_inc

In spite of their generic names, these are very specialized functions mainly
for use when cloning an interpreter instance.

They duplicate an SV of any type (not just a plain SV, but including AV, HV
I<etc>.), returning a pointer to the cloned object. The difference is that the
new SV under C<sv_dup> has a reference count of 0, but 1 under C<sv_dup_inc>.

=cut
*/

SV *
Perl_sv_dup_inc(pTHX_ const SV *const ssv, CLONE_PARAMS *const param)
{
Expand Down
Loading