diff options
author | David Mitchell <davem@iabyn.com> | 2014-02-28 18:35:02 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-02-28 19:38:44 +0000 |
commit | 5c85b638cb45ea2b8e5d70bfa899f2db6085e85c (patch) | |
tree | 60c1b29d70144ac66937dd792514626f6050e3ef /scope.c | |
parent | d263c0173f6ababa6791fd24914c3a92725ce5f0 (diff) | |
download | perl-5c85b638cb45ea2b8e5d70bfa899f2db6085e85c.tar.gz |
SAVEt_CLEARSV: expand SvOK_off() macro
the next commit will change thinks that affect only part of the macro
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1090,7 +1090,11 @@ Perl_leave_scope(pTHX_ I32 base) break; } default: - SvOK_off(sv); + assert_not_ROK(sv); + assert_not_glob(sv); + SvFLAGS(sv) &=~ (SVf_OK|SVf_IVisUV|SVf_UTF8); + if (SvOOK(sv)) + sv_backoff(sv); break; } SvPADSTALE_on(sv); /* mark as no longer live */ |