summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-11 14:33:39 -0600
committerKarl Williamson <khw@cpan.org>2022-05-18 04:39:57 -0600
commita5dd70c5fffdebf697cfc5c2574bb1f539298635 (patch)
tree822934bbd2652bf8dfd63c3d55a7c079284e35ba /gv.c
parent78d7bba41f30fdb59d241a298618b0fb2a3c04ad (diff)
downloadperl-a5dd70c5fffdebf697cfc5c2574bb1f539298635.tar.gz
Document gv_e?fullname[34]
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 720e736fdf..cf904c0c08 100644
--- a/gv.c
+++ b/gv.c
@@ -2676,6 +2676,25 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
return gv;
}
+/*
+=for apidoc gv_fullname3
+=for apidoc_item gv_fullname4
+=for apidoc_item gv_efullname3
+=for apidoc_item gv_efullname4
+
+Place the full package name of C<gv> into C<sv>. The C<gv_e*> forms return
+instead the effective package name (see L</HvENAME>).
+
+If C<prefix> is non-NULL, it is considered to be a C language NUL-terminated
+string, and the stored name will be prefaced with it.
+
+The other difference between the functions is that the C<*4> forms have an
+extra parameter, C<keepmain>. If C<true> an initial C<main::> in the name is
+kept; if C<false> it is stripped. With the C<*3> forms, it is always kept.
+
+=cut
+*/
+
void
Perl_gv_fullname4(pTHX_ SV *sv, const GV *gv, const char *prefix, bool keepmain)
{