diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-12-10 21:49:56 +0000 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-12-14 20:36:43 +0000 |
commit | 4a11c5038c1bc1658830693613f56025e947d9be (patch) | |
tree | 707d7dea48b2fbc575d192854cef4869c85684a0 /toke.c | |
parent | db91d049e0db8300915cd78a2abb8dd9407e90c6 (diff) | |
download | perl-4a11c5038c1bc1658830693613f56025e947d9be.tar.gz |
Write an apidoc fragment for wrap_infix_plugin()
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -13322,6 +13322,27 @@ Perl_wrap_keyword_plugin(pTHX_ KEYWORD_PLUGIN_MUTEX_UNLOCK; } +/* +=for apidoc wrap_infix_plugin + +B<NOTE:> This API exists entirely for the purpose of making the CPAN module +C<XS::Parse::Infix> work. It is not expected that additional modules will make +use of it; rather, that they should use C<XS::Parse::Infix> to provide parsing +of new infix operators. + +Puts a C function into the chain of infix plugins. This is the preferred +way to manipulate the L</PL_infix_plugin> variable. C<new_plugin> is a +pointer to the C function that is to be added to the infix plugin chain, and +C<old_plugin_p> points to a storage location where a pointer to the next +function in the chain will be stored. The value of C<new_plugin> is written +into the L</PL_infix_plugin> variable, while the value previously stored there +is written to C<*old_plugin_p>. + +Direct access to L</PL_infix_plugin> should be avoided. + +=cut +*/ + void Perl_wrap_infix_plugin(pTHX_ Perl_infix_plugin_t new_plugin, Perl_infix_plugin_t *old_plugin_p) |