summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-10-01 23:28:36 +0200
committerFlorian Ragwitz <rafl@debian.org>2010-11-14 17:18:05 +0100
commit627364f14af689f968a4854d02bdcc59ee644657 (patch)
tree46d02fa1c9cc5bc3134242965ad1851b66ee7a21 /util.c
parent9ebf26ad4d30e289feeaec20ee238d6874f4b27e (diff)
downloadperl-627364f14af689f968a4854d02bdcc59ee644657.tar.gz
Eliminate PL_dirty
It now only exists as a compatibility macro for extensions that want to introspect it.
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index f0b472a59c..a878f4b638 100644
--- a/util.c
+++ b/util.c
@@ -1116,7 +1116,7 @@ S_mess_alloc(pTHX)
SV *sv;
XPVMG *any;
- if (!PL_dirty)
+ if (PL_phase != PERL_PHASE_DESTRUCT)
return newSVpvs_flags("", SVs_TEMP);
if (PL_mess_sv)
@@ -1343,7 +1343,7 @@ Perl_mess_sv(pTHX_ SV *basemsg, bool consume)
line_mode ? "line" : "chunk",
(IV)IoLINES(GvIOp(PL_last_in_gv)));
}
- if (PL_dirty)
+ if (PL_phase == PERL_PHASE_DESTRUCT)
sv_catpvs(sv, " during global destruction");
sv_catpvs(sv, ".\n");
}