When dumping a PMOP, it displays the PMOP-specific fields with
an extra set of braces and level of indentation, e.g.
{
TYPE = match ===> 1
FLAGS = (VOID,SLABBED)
PRIVATE = (RTIME)
{
PMf_PRE /abc/ (RUNTIME)
PMFLAGS = (SCANFIRST,ALL)
}
}
This is visually confusing, because child ops are shown in the same way.
This commit removes the extra indentation:
{
TYPE = match ===> 1
FLAGS = (VOID,SLABBED)
PRIVATE = (RTIME)
PMf_PRE /abc/ (RUNTIME)
PMFLAGS = (SCANFIRST,ALL)
}
PERL_ARGS_ASSERT_DO_PMOP_DUMP;
- if (!pm) {
- Perl_dump_indent(aTHX_ level, file, "{}\n");
+ if (!pm)
return;
- }
- Perl_dump_indent(aTHX_ level, file, "{\n");
- level++;
if (pm->op_pmflags & PMf_ONCE)
ch = '?';
else
Perl_dump_indent(aTHX_ level, file, "PMFLAGS = (%s)\n", SvCUR(tmpsv) ? SvPVX_const(tmpsv) + 1 : "");
SvREFCNT_dec_NN(tmpsv);
}
-
- Perl_dump_indent(aTHX_ level-1, file, "}\n");
}
const struct flag_to_name pmflags_flags_names[] = {