summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-06 15:04:04 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-06 15:04:04 +0000
commit881a015edde9e00018b9cadaf8ea296c17cdfc50 (patch)
treec90b8e90cbe74e4f684844c8eccd9fccf7097c93 /perl.h
parent49de0815fabe2891621aa5754fc49ec77651298a (diff)
downloadperl-881a015edde9e00018b9cadaf8ea296c17cdfc50.tar.gz
Add a new flag PERL_PV_PRETTY_NOCLEAR (actually just
PERL_PV_ESCAPE_NOCLEAR), and change Perl_pv_pretty() so that if this bit is set, the output SV is not reset to an empty string. p4raw-id: //depot/perl@32048
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 31a0c58e18..98e0dd072f 100644
--- a/perl.h
+++ b/perl.h
@@ -5875,6 +5875,8 @@ extern void moncontrol(int);
#define PERL_PV_ESCAPE_NOCLEAR 0x4000
#define PERL_PV_ESCAPE_RE 0x8000
+#define PERL_PV_PRETTY_NOCLEAR PERL_PV_ESCAPE_NOCLEAR
+
/* used by pv_display in dump.c*/
#define PERL_PV_PRETTY_DUMP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE
#define PERL_PV_PRETTY_REGPROP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE