Change 13098 by jhi@alpha on 2001/11/19 17:37:26
Protect sv_dump() from being included unless DEBUGGING,
as noticed by Ilya.
Affected files ...
.... //depot/perl/sv.c#492 edit
Differences ...
==== //depot/perl/sv.c#492 (text) ====
Index: perl/sv.c
--- perl/sv.c.~1~ Mon Nov 19 10:45:05 2001
+++ perl/sv.c Mon Nov 19 10:45:05 2001
@@ -300,10 +300,12 @@
static void
do_report_used(pTHX_ SV *sv)
{
+#ifdef DEBUGGING
if (SvTYPE(sv) != SVTYPEMASK) {
PerlIO_printf(Perl_debug_log, "****\n");
sv_dump(sv);
}
+#endif
}
/*
@@ -317,7 +319,9 @@
void
Perl_sv_report_used(pTHX)
{
+#ifdef DEBUGGING
visit(do_report_used);
+#endif
}
/* called by sv_clean_objs() for each live SV */
End of Patch.