summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-12 14:18:09 -0600
committerKarl Williamson <khw@cpan.org>2022-05-19 04:54:29 -0600
commit03c0fc11ed4d6d16bb5dce221c81afc64c5f5b36 (patch)
tree488b36a6c6f3628443693f11f81bb69d46af52ee /dump.c
parent4bf10fc79ab64a5ea58c34c10ea977938b5bfe8c (diff)
downloadperl-03c0fc11ed4d6d16bb5dce221c81afc64c5f5b36.tar.gz
perlapi: Document a few dump functions.
dump_eval, pmop_dump, gv_dump, magic_dump, dump_form.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index c8b732d550..45d4327ee9 100644
--- a/dump.c
+++ b/dump.c
@@ -778,6 +778,15 @@ Perl_dump_sub_perl(pTHX_ const GV *gv, bool justperl)
Perl_dump_indent(aTHX_ 0, Perl_debug_log, "<undef>\n");
}
+/*
+=for apidoc dump_form
+
+Dumps the contents of the format contained in the GV C<gv> to C<STDERR>, or a
+message that one doesn't exist.
+
+=cut
+*/
+
void
Perl_dump_form(pTHX_ const GV *gv)
{
@@ -951,6 +960,15 @@ S_pm_description(pTHX_ const PMOP *pm)
return desc;
}
+/*
+=for api_doc pmop_dump
+
+Dump an OP that is related to Pattern Matching, such as C<s/foo/bar/>; these require
+special handling.
+
+=cut
+*/
+
void
Perl_pmop_dump(pTHX_ PMOP *pm)
{
@@ -1415,6 +1433,15 @@ Perl_op_dump(pTHX_ const OP *o)
do_op_dump(0, Perl_debug_log, o);
}
+/*
+=for apidoc gv_dump
+
+Dump the name and, if they differ, the effective name of the GV C<gv> to
+C<STDERR>.
+
+=cut
+*/
+
void
Perl_gv_dump(pTHX_ GV *gv)
{
@@ -1577,6 +1604,14 @@ Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32
}
}
+/*
+=for apidoc magic_dump
+
+Dumps the contents of the MAGIC C<mg> to C<STDERR>.
+
+=cut
+*/
+
void
Perl_magic_dump(pTHX_ const MAGIC *mg)
{