diff options
-rw-r--r-- | autodoc.pl | 6 | ||||
-rw-r--r-- | pod/perlapi.pod | 123 |
2 files changed, 59 insertions, 70 deletions
diff --git a/autodoc.pl b/autodoc.pl index f0b9919883..da05962b45 100644 --- a/autodoc.pl +++ b/autodoc.pl @@ -82,10 +82,6 @@ FUNC: my $docs = ""; DOC: while (defined($doc = <$fh>)) { - if ($doc =~ /^=head1 (.*)/) { - $curheader = $1; - next DOC; - } $line++; last DOC if $doc =~ /^=\w+/; if ($doc =~ m:^\*/$:) { @@ -107,7 +103,7 @@ DOC: $docfuncs{$name} = [$flags, $docs, $ret, $file, $curheader, @args]; } if (defined $doc) { - if ($doc =~ /^=for/) { + if ($doc =~ /^=(?:for|head)/) { $in = $doc; redo FUNC; } diff --git a/pod/perlapi.pod b/pod/perlapi.pod index d1ae530433..bf25ea6e75 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -284,14 +284,6 @@ Creates a new AV. The reference count is set to 1. =for hackers Found in file av.c -=item Nullav - -Null AV pointer. - - -=for hackers -Found in file av.h - =item sortsv Sort an array. Here is an example: @@ -577,14 +569,6 @@ NOTE: the perl_ form of this function is deprecated. =for hackers Found in file perl.c -=item Nullcv - -Null CV pointer. - - -=for hackers -Found in file cv.h - =back @@ -925,15 +909,12 @@ Found in file gv.c =over 8 -=item HEf_SVKEY - -This flag, used in the length slot of hash entries and magic structures, -specifies the structure contains an C<SV*> pointer where a C<char*> pointer -is to be expected. (For information only--not to be used). +=item Nullav +Null AV pointer. =for hackers -Found in file hv.h +Found in file av.h =item Nullch @@ -942,6 +923,20 @@ Null character pointer. =for hackers Found in file handy.h +=item Nullcv + +Null CV pointer. + +=for hackers +Found in file cv.h + +=item Nullhv + +Null HV pointer. + +=for hackers +Found in file hv.h + =item Nullsv Null SV pointer. @@ -969,6 +964,15 @@ NOTE: the perl_ form of this function is deprecated. =for hackers Found in file perl.c +=item HEf_SVKEY + +This flag, used in the length slot of hash entries and magic structures, +specifies the structure contains an C<SV*> pointer where a C<char*> pointer +is to be expected. (For information only--not to be used). + +=for hackers +Found in file hv.h + =item HeHASH Returns the computed hash stored in the hash entry. @@ -1365,14 +1369,6 @@ Creates a new HV. The reference count is set to 1. =for hackers Found in file hv.c -=item Nullhv - -Null HV pointer. - - -=for hackers -Found in file hv.h - =back @@ -1530,6 +1526,16 @@ has been loaded. =for hackers Found in file sv.h +=item SvUNLOCK + +Releases a mutual exclusion lock on sv if a suitable module +has been loaded. + + void SvUNLOCK(SV* sv) + +=for hackers +Found in file sv.h + =back @@ -1578,20 +1584,6 @@ cast. =for hackers Found in file handy.h -=item NEWSV - -Creates a new SV. A non-zero C<len> parameter indicates the number of -bytes of preallocated string space the SV should have. An extra byte for a -tailing NUL is also reserved. (SvPOK is not set for the SV even if string -space is allocated.) The reference count for the new SV is set to 1. -C<id> is an integer id between 0 and 1299 (used to identify leaks). - - - SV* NEWSV(int id, STRLEN len) - -=for hackers -Found in file handy.h - =item Newz The XSUB-writer's interface to the C C<malloc> function. The allocated @@ -2557,6 +2549,15 @@ handled by C<xsubpp>. =for hackers Found in file XSUB.h +=item XSRETURN_EMPTY + +Return an empty list from an XSUB immediately. + + XSRETURN_EMPTY; + +=for hackers +Found in file XSUB.h + =item XSRETURN_IV Return an integer from an XSUB immediately. Uses C<XST_mIV>. @@ -2795,6 +2796,19 @@ SV is B<not> incremented. =for hackers Found in file sv.c +=item NEWSV + +Creates a new SV. A non-zero C<len> parameter indicates the number of +bytes of preallocated string space the SV should have. An extra byte for a +tailing NUL is also reserved. (SvPOK is not set for the SV even if string +space is allocated.) The reference count for the new SV is set to 1. +C<id> is an integer id between 0 and 1299 (used to identify leaks). + + SV* NEWSV(int id, STRLEN len) + +=for hackers +Found in file handy.h + =item newSV Create a new null SV, or if len > 0, create a new empty SVt_PV type SV @@ -3578,17 +3592,6 @@ Returns the type of the SV. See C<svtype>. =for hackers Found in file sv.h -=item SvUNLOCK - -Releases a mutual exclusion lock on sv if a suitable module -has been loaded. - - - void SvUNLOCK(SV* sv) - -=for hackers -Found in file sv.h - =item SvUOK Returns a boolean indicating whether the SV contains an unsigned integer. @@ -5525,16 +5528,6 @@ C<xsubpp>. =for hackers Found in file XSUB.h -=item XSRETURN_EMPTY - -Return an empty list from an XSUB immediately. - - - XSRETURN_EMPTY; - -=for hackers -Found in file XSUB.h - =item XS_VERSION The version identifier for an XS module. This is usually |