Skip to content

Commit 5e727ab

Browse files
committed
perlguts: the types are struct Perl_OpDumpContext * and const OP *
not struct OpDumpContext *, OP *. Which I missed in the review of #22572 but found when I tried to use it.
1 parent 48a9ff4 commit 5e727ab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pod/perlguts.pod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,10 +3938,11 @@ I<oldop> is the previous OP optimized, whose C<op_next> points to I<o>.
39383938
=item xop_dump
39393939

39403940
This member is a pointer to a function of type
3941-
C<void (pTHX_ OP *, struct OpDumpContext *)>. If set, this function is called
3942-
by C<op_dump()> when dumping a custom operator of this type, after the op's
3943-
basic fields have been printed. This function may make use of
3944-
C<opdump_printf()> to emit additional output that may be useful for debugging.
3941+
C<void (pTHX_ const OP *, struct Perl_OpDumpContext *)>. If set, this
3942+
function is called by C<op_dump()> when dumping a custom operator of this
3943+
type, after the op's basic fields have been printed. This function may make
3944+
use of C<opdump_printf()> to emit additional output that may be useful for
3945+
debugging.
39453946

39463947
The opaque structure pointer passed in as its final argument should be passed
39473948
directly into C<opdump_printf()>.

0 commit comments

Comments
 (0)