summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-04-07 11:00:41 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-19 07:06:13 +0000
commitdd28f7bb7eebdb0b562c940b3c4f89457e829ea6 (patch)
treefee71493033bb3c2057e0c4b474527a3abcfe7b1 /dump.c
parentbfe0b8460c5710ac333ad9f60968a82600193679 (diff)
downloadperl-dd28f7bb7eebdb0b562c940b3c4f89457e829ea6.tar.gz
allow recursive FETCHes
Message-ID: <20030407100041.A1617@fdgroup.com> p4raw-id: //depot/perl@19268
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dump.c b/dump.c
index 6c526dfb8f..244d064867 100644
--- a/dump.c
+++ b/dump.c
@@ -1180,8 +1180,9 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
Perl_dump_indent(aTHX_ level, file, " TARGOFF = %"IVdf"\n", (IV)LvTARGOFF(sv));
Perl_dump_indent(aTHX_ level, file, " TARGLEN = %"IVdf"\n", (IV)LvTARGLEN(sv));
Perl_dump_indent(aTHX_ level, file, " TARG = 0x%"UVxf"\n", PTR2UV(LvTARG(sv)));
- /* XXX level+1 ??? */
- do_sv_dump(level, file, LvTARG(sv), nest+1, maxnest, dumpops, pvlim);
+ if (LvTYPE(sv) != 't' && LvTYPE(sv) != 'T')
+ do_sv_dump(level+1, file, LvTARG(sv), nest+1, maxnest,
+ dumpops, pvlim);
break;
case SVt_PVAV:
Perl_dump_indent(aTHX_ level, file, " ARRAY = 0x%"UVxf, PTR2UV(AvARRAY(sv)));