diff options
author | Karl Williamson <khw@cpan.org> | 2020-11-04 06:13:30 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-11-06 06:16:04 -0700 |
commit | 3f6206216e363ef43b165a72465dc5c3eb94376f (patch) | |
tree | 84806224266944f9341d4fac7550cf7d86032bf4 /perl.c | |
parent | 55d5a9fee827e3a97a143ccc6717207445b9918a (diff) | |
download | perl-3f6206216e363ef43b165a72465dc5c3eb94376f.tar.gz |
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.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -177,7 +177,7 @@ perl_alloc_using(struct IPerlMem* ipM, struct IPerlMem* ipMS, #else /* -=for apidoc_section Embedding and Interpreter Cloning +=for apidoc_section $embedding =for apidoc perl_alloc @@ -2746,7 +2746,7 @@ S_run_body(pTHX_ I32 oldscope) } /* -=for apidoc_section SV Handling +=for apidoc_section $SV =for apidoc get_sv @@ -2772,7 +2772,7 @@ Perl_get_sv(pTHX_ const char *name, I32 flags) } /* -=for apidoc_section AV Handling +=for apidoc_section $AV =for apidoc get_av @@ -2802,7 +2802,7 @@ Perl_get_av(pTHX_ const char *name, I32 flags) } /* -=for apidoc_section HV Handling +=for apidoc_section $HV =for apidoc get_hv @@ -2829,7 +2829,7 @@ Perl_get_hv(pTHX_ const char *name, I32 flags) } /* -=for apidoc_section CV Handling +=for apidoc_section $CV =for apidoc get_cvn_flags @@ -2881,7 +2881,7 @@ Perl_get_cv(pTHX_ const char *name, I32 flags) /* -=for apidoc_section Callback Functions +=for apidoc_section $callback =for apidoc call_argv @@ -3275,7 +3275,7 @@ Perl_eval_pv(pTHX_ const char *p, I32 croak_on_error) /* Require a module. */ /* -=for apidoc_section Embedding and Interpreter Cloning +=for apidoc_section $embedding =for apidoc require_pv |