summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-01-30 15:00:27 +0000
committerDavid Mitchell <davem@iabyn.com>2011-01-30 23:58:26 +0000
commit206ee25612c22f43a80e087b78921f35a28ad8c6 (patch)
tree9b92bf772bfa3709425f2edb8418227fece41365 /dump.c
parente0bbf36274daaaaa2292316e1a55c396dde3ad26 (diff)
downloadperl-206ee25612c22f43a80e087b78921f35a28ad8c6.tar.gz
Perl_do_sv_dump: move stub REGEXP code
SVt_REGEXP was in the 'general SV fields' section; move it to the 'type-specific SV fields' section. Not that it does anything yet.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/dump.c b/dump.c
index 1fcf595f6f..c278ad4a64 100644
--- a/dump.c
+++ b/dump.c
@@ -1755,13 +1755,6 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
Perl_dump_indent(aTHX_ level, file, " PV = 0\n");
}
- if (type == SVt_REGEXP) {
- /* FIXME dumping
- Perl_dump_indent(aTHX_ level, file, " REGEXP = 0x%"UVxf"\n",
- PTR2UV(((struct regexp *)SvANY(sv))->xrx_regexp));
- */
- }
-
if (type >= SVt_PVMG) {
if (type == SVt_PVMG && SvPAD_OUR(sv)) {
HV * const ost = SvOURSTASH(sv);
@@ -2137,6 +2130,12 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
Perl_dump_indent(aTHX_ level, file, " TYPE = '\\%o'\n", IoTYPE(sv));
Perl_dump_indent(aTHX_ level, file, " FLAGS = 0x%"UVxf"\n", (UV)IoFLAGS(sv));
break;
+ case SVt_REGEXP:
+ /* FIXME dumping
+ Perl_dump_indent(aTHX_ level, file, " REGEXP = 0x%"UVxf"\n",
+ PTR2UV(((struct regexp *)SvANY(sv))->xrx_regexp));
+ */
+ break;
}
SvREFCNT_dec(d);
}