Some more SvREFCNT_inc updates
authorAndy Lester <andy@petdance.com>
Sun, 30 Apr 2006 13:24:14 +0000 (08:24 -0500)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 2 May 2006 08:50:05 +0000 (08:50 +0000)
Message-ID: <20060430182414.GA18094@petdance.com>

p4raw-id: //depot/perl@28049

cop.h
pp_ctl.c

diff --git a/cop.h b/cop.h
index 5b6014b65ec935eb805072ca7ce142db32a464db..ed6151e24e179d84ec94a667edcb0823ce8b2d59 100644 (file)
--- a/cop.h
+++ b/cop.h
@@ -270,8 +270,8 @@ struct block_sub {
        cx->blk_sub.hasargs = hasargs;                                  \
        cx->blk_sub.retop = NULL;                                       \
        if (!CvDEPTH(cv)) {                                             \
-           SvREFCNT_inc_void(cv);                                      \
-           SvREFCNT_inc_void(cv);                                      \
+           SvREFCNT_inc_simple_void_NN(cv);                            \
+           SvREFCNT_inc_simple_void_NN(cv);                            \
            SAVEFREESV(cv);                                             \
        }
 
index 8ade9c3fb85ad43ffa0441c44319d303da30f6a4..0aec4c5c5361cad00b0bd88cb6b83ba87d341cab 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2417,7 +2417,7 @@ PP(pp_goto)
 
                CvDEPTH(cv)++;
                if (CvDEPTH(cv) < 2)
-                   SvREFCNT_inc_void_NN(cv);
+                   SvREFCNT_inc_simple_void_NN(cv);
                else {
                    if (CvDEPTH(cv) == 100 && ckWARN(WARN_RECURSION))
                        sub_crush_depth(cv);
@@ -3189,7 +3189,7 @@ PP(pp_require)
                        if (SvROK(arg) && (SvTYPE(SvRV(arg)) <= SVt_PVLV)
                            && !isGV_with_GP(SvRV(arg))) {
                            filter_cache = SvRV(arg);
-                           SvREFCNT_inc_void_NN(filter_cache);
+                           SvREFCNT_inc_simple_void_NN(filter_cache);
 
                            if (i < count) {
                                arg = SP[i++];
@@ -3221,7 +3221,7 @@ PP(pp_require)
 
                        if (SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVCV) {
                            filter_sub = arg;
-                           SvREFCNT_inc_void_NN(filter_sub);
+                           SvREFCNT_inc_simple_void_NN(filter_sub);
 
                            if (i < count) {
                                filter_state = SP[i];