summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-11 14:37:24 -0600
committerKarl Williamson <khw@cpan.org>2022-05-18 04:40:24 -0600
commit875e4924a8bb114b282211b7d23e5c868443fce1 (patch)
treecd94246546b50efb84c7b0c8eedfcd22b150c097 /gv.c
parenta5dd70c5fffdebf697cfc5c2574bb1f539298635 (diff)
downloadperl-875e4924a8bb114b282211b7d23e5c868443fce1.tar.gz
perlapi: Document newGVgen(_flags)?
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index cf904c0c08..97e89ed787 100644
--- a/gv.c
+++ b/gv.c
@@ -2791,6 +2791,21 @@ Perl_gv_check(pTHX_ HV *stash)
HvAUX(stash)->xhv_aux_flags &= ~HvAUXf_SCAN_STASH;
}
+/*
+=for apidoc newGVgen
+=for apidoc_item newGVgen_flags
+
+Create a new, guaranteed to be unique, GV in the package given by the
+NUL-terminated C language string C<pack>, and return a pointer to it.
+
+For C<newGVgen> or if C<flags> in C<newGVgen_flags> is 0, C<pack> is to be
+considered to be encoded in Latin-1. The only other legal C<flags> value is
+C<SVf_UTF8>, which indicates C<pack> is to be considered to be encoded in
+UTF-8.
+
+=cut
+*/
+
GV *
Perl_newGVgen_flags(pTHX_ const char *pack, U32 flags)
{