summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-06-08 06:57:59 -0600
committerKarl Williamson <khw@cpan.org>2022-06-14 07:38:50 -0600
commit3734d2f5d38a7779376358fb891b3d3a38e6c0d8 (patch)
treefa494e354d196c12751d94e9820d8198d76396a5
parent82943faa9f6f51aebb7960cc8eee73dd44c024e4 (diff)
downloadperl-3734d2f5d38a7779376358fb891b3d3a38e6c0d8.tar.gz
Change autodoc flag
This should be being used only in core, as its only use is for autodoc. Change the flag name to be more mnemonic, freeing up its current name for another use.
-rw-r--r--XSUB.h28
-rw-r--r--autodoc.pl12
-rw-r--r--cop.h8
-rw-r--r--embed.fnc5
-rw-r--r--perl.h12
-rw-r--r--pp.h16
-rwxr-xr-xregen/embed.pl2
-rw-r--r--scope.h12
8 files changed, 48 insertions, 47 deletions
diff --git a/XSUB.h b/XSUB.h
index 6cd6d2e4aa..b1a9aeab3f 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -74,28 +74,28 @@ Macro to declare an XSUB and its C parameter list explicitly exporting the symbo
Macro used by C<L</XS_INTERNAL>> and C<L</XS_EXTERNAL>> to declare a function
prototype. You probably shouldn't be using this directly yourself.
-=for apidoc Amns||dAX
+=for apidoc Amn;||dAX
Sets up the C<ax> variable.
This is usually handled automatically by C<xsubpp> by calling C<dXSARGS>.
-=for apidoc Amns||dAXMARK
+=for apidoc Amn;||dAXMARK
Sets up the C<ax> variable and stack marker variable C<mark>.
This is usually handled automatically by C<xsubpp> by calling C<dXSARGS>.
-=for apidoc Amns||dITEMS
+=for apidoc Amn;||dITEMS
Sets up the C<items> variable.
This is usually handled automatically by C<xsubpp> by calling C<dXSARGS>.
-=for apidoc Amns||dXSARGS
+=for apidoc Amn;||dXSARGS
Sets up stack and mark pointers for an XSUB, calling C<dSP> and C<dMARK>.
Sets up the C<ax> and C<items> variables by calling C<dAX> and C<dITEMS>.
This is usually handled automatically by C<xsubpp>.
-=for apidoc Amns||dXSI32
+=for apidoc Amn;||dXSI32
Sets up the C<ix> variable for an XSUB which has aliases. This is usually
handled automatically by C<xsubpp>.
-=for apidoc Amns||dUNDERBAR
+=for apidoc Amn;||dUNDERBAR
Sets up any variable needed by the C<UNDERBAR> macro. It used to define
C<padoff_du>, but it is currently a noop. However, it is strongly advised
to still use it for ensuring past and future compatibility.
@@ -261,16 +261,16 @@ Return a double from an XSUB immediately. Uses C<XST_mNV>.
=for apidoc Am|void|XSRETURN_PV|char* str
Return a copy of a string from an XSUB immediately. Uses C<XST_mPV>.
-=for apidoc Amns||XSRETURN_NO
+=for apidoc Amn;||XSRETURN_NO
Return C<&PL_sv_no> from an XSUB immediately. Uses C<XST_mNO>.
-=for apidoc Amns||XSRETURN_YES
+=for apidoc Amn;||XSRETURN_YES
Return C<&PL_sv_yes> from an XSUB immediately. Uses C<XST_mYES>.
-=for apidoc Amns||XSRETURN_UNDEF
+=for apidoc Amn;||XSRETURN_UNDEF
Return C<&PL_sv_undef> from an XSUB immediately. Uses C<XST_mUNDEF>.
-=for apidoc Amns||XSRETURN_EMPTY
+=for apidoc Amn;||XSRETURN_EMPTY
Return an empty list from an XSUB immediately.
=for apidoc AmU||newXSproto|char* name|XSUBADDR_t f|char* filename|const char *proto
@@ -282,18 +282,18 @@ The version identifier for an XS module. This is usually
handled automatically by C<ExtUtils::MakeMaker>. See
C<L</XS_VERSION_BOOTCHECK>>.
-=for apidoc Amns||XS_VERSION_BOOTCHECK
+=for apidoc Amn;||XS_VERSION_BOOTCHECK
Macro to verify that a PM module's C<$VERSION> variable matches the XS
module's C<XS_VERSION> variable. This is usually handled automatically by
C<xsubpp>. See L<perlxs/"The VERSIONCHECK: Keyword">.
-=for apidoc Amns||XS_APIVERSION_BOOTCHECK
+=for apidoc Amn;||XS_APIVERSION_BOOTCHECK
Macro to verify that the perl api version an XS module has been compiled against
matches the api version of the perl interpreter it's being loaded into.
=for apidoc_section $exceptions
-=for apidoc Amns||dXCPT
+=for apidoc Amn;||dXCPT
Set up necessary local variables for exception handling.
See L<perlguts/"Exception Handling">.
@@ -306,7 +306,7 @@ Ends a try block. See L<perlguts/"Exception Handling">.
=for apidoc AmnU||XCPT_CATCH
Introduces a catch block. See L<perlguts/"Exception Handling">.
-=for apidoc Amns||XCPT_RETHROW
+=for apidoc Amn;||XCPT_RETHROW
Rethrows a previously caught exception. See L<perlguts/"Exception Handling">.
=cut
diff --git a/autodoc.pl b/autodoc.pl
index 8dea08cd10..0a8d74597b 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -369,7 +369,7 @@ my $apidoc_re = qr/ ^ (\s*) # $1
(.*?) # $7
\s* \n /x;
# Only certain flags, dealing with display, are acceptable for apidoc_item
-my $display_flags = "fFnDopsTx";
+my $display_flags = "fFnDopTx;";
sub check_api_doc_line ($$) {
my ($file, $in) = @_;
@@ -529,7 +529,7 @@ sub autodoc ($$) { # parse a file and extract documentation info
}
die "flag '$1' is not legal (for function $element_name (from $file))"
- if $flags =~ / ( [^AabCDdEeFfGhiIMmNnTOoPpRrSsUuWXxy] ) /x;
+ if $flags =~ / ( [^AabCDdEeFfGhiIMmNnTOoPpRrSUuWXxy;] ) /x;
die "'u' flag must also have 'm' or 'y' flags' for $element_name"
if $flags =~ /u/ && $flags !~ /[my]/;
@@ -664,7 +664,7 @@ sub autodoc ($$) { # parse a file and extract documentation info
# Don't output a usage example for linked to documentation if
# it is trivial (has no arguments) and we aren't to add a
# semicolon
- $flags .= 'U' if $flags =~ /n/ && $flags !~ /[Us]/;
+ $flags .= 'U' if $flags =~ /n/ && $flags !~ /[U;]/;
# Keep track of all the pod files that we refer to.
push $described_elsewhere{$podname}->@*, $podname;
@@ -1328,8 +1328,8 @@ sub docout ($$$) { # output the docs for one function group
if ($flags =~ /[Uy]/) { # no usage; typedefs are considered simple enough
# to never warrant a usage line
- warn("U and s flags are incompatible")
- if $flags =~ /U/ && $flags =~ /s/;
+ warn("U and ; flags are incompatible")
+ if $flags =~ /U/ && $flags =~ /;/;
# nothing
} else {
@@ -1492,7 +1492,7 @@ sub docout ($$$) { # output the docs for one function group
print $fh ")";
}
- print $fh ";" if $item_flags =~ /s/; # semicolon: "dTHR;"
+ print $fh ";" if $item_flags =~ /;/; # semicolon: "dTHR;"
print $fh "\n";
# Only the first entry is normally displayed
diff --git a/cop.h b/cop.h
index eebe21cd2a..0f8831eb1e 100644
--- a/cop.h
+++ b/cop.h
@@ -1217,17 +1217,17 @@ program; otherwise 0;
/*
=for apidoc_section $multicall
-=for apidoc Amns||dMULTICALL
+=for apidoc Amn;||dMULTICALL
Declare local variables for a multicall. See L<perlcall/LIGHTWEIGHT CALLBACKS>.
-=for apidoc Ams||PUSH_MULTICALL|CV* the_cv
+=for apidoc Am;||PUSH_MULTICALL|CV* the_cv
Opening bracket for a lightweight callback.
See L<perlcall/LIGHTWEIGHT CALLBACKS>.
-=for apidoc Amns||MULTICALL
+=for apidoc Amn;||MULTICALL
Make a lightweight callback. See L<perlcall/LIGHTWEIGHT CALLBACKS>.
-=for apidoc Amns||POP_MULTICALL
+=for apidoc Amn;||POP_MULTICALL
Closing bracket for a lightweight callback.
See L<perlcall/LIGHTWEIGHT CALLBACKS>.
diff --git a/embed.fnc b/embed.fnc
index a48b5c502e..9fca0b7819 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -500,8 +500,6 @@
: STATIC is added to declaration;
: embed.h: "#define foo S_foo" entries added
:
-: s autodoc.pl adds a terminating semi-colon to the usage example in the
-: documentation.
:
: T Has no implicit interpreter/thread context argument:
:
@@ -549,6 +547,9 @@
:
: y Typedef. The element names a type rather than being a macro
:
+: ; autodoc.pl adds a terminating semi-colon to the usage example in the
+: documentation.
+:
: In this file, pointer parameters that must not be passed NULLs should be
: prefixed with NN.
:
diff --git a/perl.h b/perl.h
index c12aad84e0..5edc61a384 100644
--- a/perl.h
+++ b/perl.h
@@ -473,18 +473,18 @@ Example usage:
* but we cannot quite get rid of, such as "ax" in PPCODE+noargs xsubs,
* or variables/arguments that are used only in certain configurations.
-=for apidoc Ams||PERL_UNUSED_ARG|void x
+=for apidoc Am;||PERL_UNUSED_ARG|void x
This is used to suppress compiler warnings that a parameter to a function is
not used. This situation can arise, for example, when a parameter is needed
under some configuration conditions, but not others, so that C preprocessor
conditional compilation causes it be used just some times.
-=for apidoc Amns||PERL_UNUSED_CONTEXT
+=for apidoc Amn;||PERL_UNUSED_CONTEXT
This is used to suppress compiler warnings that the thread context parameter to
a function is not used. This situation can arise, for example, when a
C preprocessor conditional compilation causes it be used just some times.
-=for apidoc Ams||PERL_UNUSED_VAR|void x
+=for apidoc Am;||PERL_UNUSED_VAR|void x
This is used to suppress compiler warnings that the variable I<x> is not used.
This situation can arise, for example, when a C preprocessor conditional
compilation causes it be used just some times.
@@ -625,11 +625,11 @@ __typeof__ and nothing else.
#define MSVC_DIAG_RESTORE_STMT MSVC_DIAG_RESTORE NOOP
/*
-=for apidoc Amns||NOOP
+=for apidoc Amn;||NOOP
Do nothing; typically used as a placeholder to replace something that used to
do something.
-=for apidoc Amns||dNOOP
+=for apidoc Amn;||dNOOP
Declare nothing; typically used as a placeholder to replace something that used
to declare something. Works on compilers that require declarations before any
code.
@@ -668,7 +668,7 @@ code.
This is now a synonym for dNOOP: declare nothing
=for apidoc_section $XS
-=for apidoc Amns||dMY_CXT_SV
+=for apidoc Amn;||dMY_CXT_SV
Now a placeholder that declares nothing
=cut
diff --git a/pp.h b/pp.h
index 3fa2bdaef8..7692dedba2 100644
--- a/pp.h
+++ b/pp.h
@@ -24,28 +24,28 @@ Stack marker variable for the XSUB. See C<L</dMARK>>.
Opening bracket for arguments on a callback. See C<L</PUTBACK>> and
L<perlcall>.
-=for apidoc Amns||dSP
+=for apidoc Amn;||dSP
Declares a local copy of perl's stack pointer for the XSUB, available via
the C<SP> macro. See C<L</SP>>.
-=for apidoc ms||djSP
+=for apidoc m;||djSP
Declare Just C<SP>. This is actually identical to C<dSP>, and declares
a local copy of perl's stack pointer, available via the C<SP> macro.
See C<L<perlapi/SP>>. (Available for backward source code compatibility with
the old (Perl 5.005) thread model.)
-=for apidoc Amns||dMARK
+=for apidoc Amn;||dMARK
Declare a stack marker variable, C<mark>, for the XSUB. See C<L</MARK>> and
C<L</dORIGMARK>>.
-=for apidoc Amns||dORIGMARK
+=for apidoc Amn;||dORIGMARK
Saves the original stack mark for the XSUB. See C<L</ORIGMARK>>.
=for apidoc AmnU||ORIGMARK
The original stack mark for the XSUB. See C<L</dORIGMARK>>.
-=for apidoc Amns||SPAGAIN
+=for apidoc Amn;||SPAGAIN
Refetch the stack pointer. Used after a callback. See L<perlcall>.
=cut */
@@ -55,7 +55,7 @@ Refetch the stack pointer. Used after a callback. See L<perlcall>.
#define MARK mark
/*
-=for apidoc Amns||TARG
+=for apidoc Amn;||TARG
C<TARG> is short for "target". It is an entry in the pad that an OPs
C<op_targ> refers to. It is scratchpad space, often used as a return
@@ -103,7 +103,7 @@ value for the OP, but some use it for other purposes.
#define GETTARGET targ = PAD_SV(PL_op->op_targ)
/*
-=for apidoc Amns||dTARGET
+=for apidoc Amn;||dTARGET
Declare that this function uses C<TARG>
=cut
@@ -119,7 +119,7 @@ Declare that this function uses C<TARG>
#define DIE return Perl_die
/*
-=for apidoc Amns||PUTBACK
+=for apidoc Amn;||PUTBACK
Closing bracket for XSUB arguments. This is usually handled by C<xsubpp>.
See C<L</PUSHMARK>> and L<perlcall> for other uses.
diff --git a/regen/embed.pl b/regen/embed.pl
index 8bbd38a12a..5578101596 100755
--- a/regen/embed.pl
+++ b/regen/embed.pl
@@ -79,7 +79,7 @@ my ($embed, $core, $ext, $api) = setup_embed();
}
my ($flags,$retval,$plain_func,@args) = @$_;
- if ($flags =~ / ( [^AabCDdEefFGhIiMmNnOoPpRrSsTUuWXx] ) /x) {
+ if ($flags =~ / ( [^AabCDdEefFGhIiMmNnOoPpRrSTUuWXx;] ) /x) {
die_at_end "flag $1 is not legal (for function $plain_func)";
}
my @nonnull;
diff --git a/scope.h b/scope.h
index 6111f1e460..911f752caa 100644
--- a/scope.h
+++ b/scope.h
@@ -155,26 +155,26 @@
/*
=for apidoc_section $callback
-=for apidoc Amns||SAVETMPS
+=for apidoc Amn;||SAVETMPS
Opening bracket for temporaries on a callback. See C<L</FREETMPS>> and
L<perlcall>.
-=for apidoc Amns||FREETMPS
+=for apidoc Amn;||FREETMPS
Closing bracket for temporaries on a callback. See C<L</SAVETMPS>> and
L<perlcall>.
-=for apidoc Amns||ENTER
+=for apidoc Amn;||ENTER
Opening bracket on a callback. See C<L</LEAVE>> and L<perlcall>.
-=for apidoc Amns||LEAVE
+=for apidoc Amn;||LEAVE
Closing bracket on a callback. See C<L</ENTER>> and L<perlcall>.
-=for apidoc Ams||ENTER_with_name|"name"
+=for apidoc Am;||ENTER_with_name|"name"
Same as C<L</ENTER>>, but when debugging is enabled it also associates the
given literal string with the new scope.
-=for apidoc Ams||LEAVE_with_name|"name"
+=for apidoc Am;||LEAVE_with_name|"name"
Same as C<L</LEAVE>>, but when debugging is enabled it first checks that the
scope has the given name. C<name> must be a literal string.