Retract #11870 and volatilize the right destruct_level.
Jarkko Hietaniemi [Tue, 4 Sep 2001 20:00:50 +0000 (20:00 +0000)]
Silly thinko pointed out by Sarathy.

p4raw-id: //depot/perl@11872

intrpvar.h
perl.c

index 21d3282..fd39a09 100644 (file)
@@ -52,7 +52,7 @@ PERLVAR(Iperldb,      U32)
 
 /* This value may be set when embedding for full cleanup  */
 /* 0=none, 1=full, 2=full with checks */
-PERLVARI(Iperl_destruct_level, VOL int,        0)
+PERLVARI(Iperl_destruct_level, int,    0)
 
 /* magical thingies */
 PERLVAR(Ibasetime,     Time_t)         /* $^T */
diff --git a/perl.c b/perl.c
index 8cc88f2..4a605da 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -287,7 +287,7 @@ Shuts down a Perl interpreter.  See L<perlembed>.
 int
 perl_destruct(pTHXx)
 {
-    int destruct_level;  /* 0=none, 1=full, 2=full with checks */
+    volatile int destruct_level;  /* 0=none, 1=full, 2=full with checks */
     HV *hv;
 #ifdef USE_5005THREADS
     Thread t;