From: Steve Hay Date: Fri, 28 May 2004 11:46:41 +0000 (+0100) Subject: Fix generation of perlapi.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e509e6934ce7cafd6c279046164b9b6255429d8a;p=p5sagit%2Fp5-mst-13.2.git Fix generation of perlapi.pod Message-ID: <40B71891.6090806@uk.radan.com> p4raw-id: //depot/perl@22875 --- diff --git a/autodoc.pl b/autodoc.pl index f0b9919..da05962 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 d1ae530..bf25ea6 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 pointer where a C 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 pointer where a C 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 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 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 function. The allocated @@ -2557,6 +2549,15 @@ handled by C. =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. @@ -2795,6 +2796,19 @@ SV is B incremented. =for hackers Found in file sv.c +=item NEWSV + +Creates a new SV. A non-zero C 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 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. =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. =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