This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Feel-good cleanup.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Apr 2003 08:43:23 +0000 (08:43 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 28 Apr 2003 08:43:23 +0000 (08:43 +0000)
p4raw-id: //depot/perl@19359

intrpvar.h
sv.c

index e0adc28..d7c4269 100644 (file)
@@ -504,10 +504,10 @@ PERLVAR(Iunicode, U32)    /* Unicode features: $ENV{PERL_UNICODE} or -C */
 
 PERLVAR(Isignals, U32) /* Using which pre-5.8 signals */
 
-PERLVAR(Ireentrant_retint, int)        /* Integer return value from reentrant functions */
-
 PERLVAR(Istashcache,   HV *)           /* Cache to speed up S_method_common */
 
+PERLVAR(Ireentrant_retint, int)        /* Integer return value from reentrant functions */
+
 PERLVAR(IDBassertion,   SV *)
 
 /* Don't forget to add your variable also to perl_clone()! */
diff --git a/sv.c b/sv.c
index a0c11a9..7668155 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -11213,6 +11213,10 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
     /* sort() routine */
     PL_sort_RealCmp    = proto_perl->Isort_RealCmp;
 
+    /* Not really needed/useful since the reenrant_retint is "volatile",
+     * but do it for consistency's sake. */
+    PL_reentrant_retint        = proto_perl->Ireentrant_retint;
+
     /* swatch cache */
     PL_last_swash_hv   = Nullhv;       /* reinits on demand */
     PL_last_swash_klen = 0;