summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-19 13:08:59 -0600
committerKarl Williamson <khw@cpan.org>2022-05-28 13:29:25 -0600
commit629fbf9be56e27ae0920c0ac7a67d7dabcf8c030 (patch)
tree3ec0241fe5be01a9684b5f4097b285bbee4339fc /gv.c
parentf24623d674e0b493bbafe0d87eb3e5d047815a63 (diff)
downloadperl-629fbf9be56e27ae0920c0ac7a67d7dabcf8c030.tar.gz
perlapi: Document gv_name_set
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 82825d1dab..32b00bb851 100644
--- a/gv.c
+++ b/gv.c
@@ -4022,6 +4022,18 @@ Perl_amagic_call(pTHX_ SV *left, SV *right, int method, int flags)
}
}
+/*
+=for apidoc gv_name_set
+
+Set the name for GV C<gv> to C<name> which is C<len> bytes long. Thus it may
+contain embedded NUL characters.
+
+If C<flags> contains C<SVf_UTF8>, the name is treated as being encoded in
+UTF-8; otherwise not.
+
+=cut
+*/
+
void
Perl_gv_name_set(pTHX_ GV *gv, const char *name, U32 len, U32 flags)
{