Change 29885 by [EMAIL PROTECTED] on 2007/01/19 20:13:46
Yves spotted that I'd not regenerated perlapi.pod when I added
get_cvn_flags().
Affected files ...
... //depot/perl/pod/perlapi.pod#278 edit
Differences ...
==== //depot/perl/pod/perlapi.pod#278 (text+w) ====
Index: perl/pod/perlapi.pod
--- perl/pod/perlapi.pod#277~29718~ 2007-01-08 03:09:10.000000000 -0800
+++ perl/pod/perlapi.pod 2007-01-19 12:13:46.000000000 -0800
@@ -628,14 +628,27 @@
=item get_cv
X<get_cv>
-Returns the CV of the specified Perl subroutine. If C<create> is set and
-the Perl subroutine does not exist then it will be declared (which has the
-same effect as saying C<sub name;>). If C<create> is not set and the
-subroutine does not exist then NULL is returned.
+Uses C<strlen> to get the length of C<name>, then calls C<get_cvn_flags>.
NOTE: the perl_ form of this function is deprecated.
- CV* get_cv(const char* name, I32 create)
+ CV* get_cv(const char* name, I32 flags)
+
+=for hackers
+Found in file perl.c
+
+=item get_cvn_flags
+X<get_cvn_flags>
+
+Returns the CV of the specified Perl subroutine. C<flags> are passed to
+C<gv_fetchpvn_flags>. If C<GV_ADD> is set and the Perl subroutine does not
+exist then it will be declared (which has the same effect as saying
+C<sub name;>). If C<GV_ADD> is not set and the subroutine does not exist
+then NULL is returned.
+
+NOTE: the perl_ form of this function is deprecated.
+
+ CV* get_cvn_flags(const char* name, STRLEN len, I32 flags)
=for hackers
Found in file perl.c
End of Patch.