diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-07 07:35:08 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-07 11:17:13 -0600 |
commit | e34671d94057f7a91cfbdc2ac0a8c05469e3d470 (patch) | |
tree | b44af798183e4f8ba7b14e15146f2c718e066b92 /util.c | |
parent | 366d265a8ad9bfe1ce8bb3b26b8020efa51dc797 (diff) | |
download | perl-e34671d94057f7a91cfbdc2ac0a8c05469e3d470.tar.gz |
Mark internal and document my_cxt_init
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -5591,13 +5591,19 @@ Perl_my_clearenv(pTHX) #ifdef MULTIPLICITY +/* +=for apidoc my_cxt_init + +Implements the L<perlxs/C<MY_CXT_INIT>> macro, which you should use instead. + +The first time a module is loaded, the global C<PL_my_cxt_index> is incremented, +and that value is assigned to that module's static C<my_cxt_index> (whose +address is passed as an arg). Then, for each interpreter this function is +called for, it makes sure a C<void*> slot is available to hang the static data +off, by allocating or extending the interpreter's C<PL_my_cxt_list> array -/* Implements the MY_CXT_INIT macro. The first time a module is loaded, -the global PL_my_cxt_index is incremented, and that value is assigned to -that module's static my_cxt_index (who's address is passed as an arg). -Then, for each interpreter this function is called for, it makes sure a -void* slot is available to hang the static data off, by allocating or -extending the interpreter's PL_my_cxt_list array */ +=cut +*/ void * Perl_my_cxt_init(pTHX_ int *indexp, size_t size) |