From 3f6206216e363ef43b165a72465dc5c3eb94376f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 4 Nov 2020 06:13:30 -0700 Subject: autodoc.pl: Enhance apidoc_section feature This feature allows documentation destined for perlapi or perlintern to be split into sections of related functions, no matter where the documentation source is. Prior to this commit the line had to contain the exact text of the title of the section. Now it can be a $variable name that autodoc.pl expands to the title. It still has to be an exact match for the variable in autodoc, but now, the expanded text can be changed in autodoc alone, without other files needing to be updated at the same time. --- mg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mg.c') diff --git a/mg.c b/mg.c index 32d7732bc6..8b90aa4e3f 100644 --- a/mg.c +++ b/mg.c @@ -842,7 +842,7 @@ S_fixup_errno_string(pTHX_ SV* sv) } /* -=for apidoc_section Errno +=for apidoc_section $errno =for apidoc sv_string_from_errnum Generates the message string describing an OS error and returns it as @@ -1906,7 +1906,7 @@ Perl_magic_setnkeys(pTHX_ SV *sv, MAGIC *mg) } /* -=for apidoc_section Magic +=for apidoc_section $magic =for apidoc magic_methcall Invoke a magic method (like FETCH). @@ -3353,7 +3353,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) } /* -=for apidoc_section Signals +=for apidoc_section $signals =for apidoc whichsig =for apidoc_item whichsig_pv =for apidoc_item whichsig_pvn @@ -3713,7 +3713,7 @@ S_unwind_handler_stack(pTHX_ const void *p) } /* -=for apidoc_section Magic +=for apidoc_section $magic =for apidoc magic_sethint Triggered by a store to C<%^H>, records the key/value pair to -- cgit v1.2.1