diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-05 15:29:57 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-05 15:36:20 -0600 |
commit | ea81552be86b620eb7aad870fb2b750cc38ea61d (patch) | |
tree | 057319a6ed34ee311e4d643a60388b79dd669717 /mg.c | |
parent | 4be3b9cad219d9b9a07e2fa93ffeb7e3daf268a5 (diff) | |
download | perl-ea81552be86b620eb7aad870fb2b750cc38ea61d.tar.gz |
Document whichsig and kin
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -3305,6 +3305,31 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) return 0; } +/* +=for apidoc_section Signals +=for apidoc whichsig +=for apidoc_item whichsig_pv +=for apidoc_item whichsig_pvn +=for apidoc_item whichsig_sv + +These all convert a signal name into its corresponding signal number; +returning -1 if no corresponding number was found. + +They differ only in the source of the signal name: + +C<whichsig_pv> takes the name from the C<NUL>-terminated string starting at +C<sig>. + +C<whichsig> is merely a different spelling, a synonym, of C<whichsig_pv>. + +C<whichsig_pvn> takes the name from the string starting at C<sig>, with length +C<len> bytes. + +C<whichsig_sv> takes the name from the PV stored in the SV C<sigsv>. + +=cut +*/ + I32 Perl_whichsig_sv(pTHX_ SV *sigsv) { |