Change 31044 by [EMAIL PROTECTED] on 2007/04/23 22:04:59

        make initialisation of PL_sv_no etc unconditional

Affected files ...

... //depot/perl/perl.c#802 edit

Differences ...

==== //depot/perl/perl.c#802 (text) ====
Index: perl/perl.c
--- perl/perl.c#801~31005~      2007-04-21 02:20:56.000000000 -0700
+++ perl/perl.c 2007-04-23 15:04:59.000000000 -0700
@@ -258,43 +258,38 @@
    if (PL_perl_destruct_level > 0)
        init_interp();
 #endif
-   /* Init the real globals (and main thread)? */
-    if (!PL_linestr) {
-       PL_curcop = &PL_compiling;      /* needed by ckWARN, right away */
-
-       PL_linestr = newSV_type(SVt_PVIV);
-       SvGROW(PL_linestr, 80);
-
-       if (!SvREADONLY(&PL_sv_undef)) {
-           /* set read-only and try to insure than we wont see REFCNT==0
-              very often */
-
-           SvREADONLY_on(&PL_sv_undef);
-           SvREFCNT(&PL_sv_undef) = (~(U32)0)/2;
-
-           sv_setpv(&PL_sv_no,PL_No);
-           /* value lookup in void context - happens to have the side effect
-              of caching the numeric forms.  */
-           SvIV(&PL_sv_no);
-           SvNV(&PL_sv_no);
-           SvREADONLY_on(&PL_sv_no);
-           SvREFCNT(&PL_sv_no) = (~(U32)0)/2;
-
-           sv_setpv(&PL_sv_yes,PL_Yes);
-           SvIV(&PL_sv_yes);
-           SvNV(&PL_sv_yes);
-           SvREADONLY_on(&PL_sv_yes);
-           SvREFCNT(&PL_sv_yes) = (~(U32)0)/2;
+    PL_curcop = &PL_compiling; /* needed by ckWARN, right away */
 
-           SvREADONLY_on(&PL_sv_placeholder);
-           SvREFCNT(&PL_sv_placeholder) = (~(U32)0)/2;
-       }
+    PL_linestr = newSV_type(SVt_PVIV);
+    SvGROW(PL_linestr, 80);
+
+    /* set read-only and try to insure than we wont see REFCNT==0
+       very often */
+
+    SvREADONLY_on(&PL_sv_undef);
+    SvREFCNT(&PL_sv_undef) = (~(U32)0)/2;
+
+    sv_setpv(&PL_sv_no,PL_No);
+    /* value lookup in void context - happens to have the side effect
+       of caching the numeric forms.  */
+    SvIV(&PL_sv_no);
+    SvNV(&PL_sv_no);
+    SvREADONLY_on(&PL_sv_no);
+    SvREFCNT(&PL_sv_no) = (~(U32)0)/2;
+
+    sv_setpv(&PL_sv_yes,PL_Yes);
+    SvIV(&PL_sv_yes);
+    SvNV(&PL_sv_yes);
+    SvREADONLY_on(&PL_sv_yes);
+    SvREFCNT(&PL_sv_yes) = (~(U32)0)/2;
 
-       PL_sighandlerp = (Sighandler_t) Perl_sighandler;
+    SvREADONLY_on(&PL_sv_placeholder);
+    SvREFCNT(&PL_sv_placeholder) = (~(U32)0)/2;
+
+    PL_sighandlerp = (Sighandler_t) Perl_sighandler;
 #ifdef PERL_USES_PL_PIDSTATUS
-       PL_pidstatus = newHV();
+    PL_pidstatus = newHV();
 #endif
-    }
 
     PL_rs = newSVpvs("\n");
 
End of Patch.

Reply via email to