From 206ee25612c22f43a80e087b78921f35a28ad8c6 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Sun, 30 Jan 2011 15:00:27 +0000 Subject: [PATCH] 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. --- dump.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dump.c b/dump.c index 1fcf595..c278ad4 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); } -- 2.7.4