This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d263c01
)
SAVEt_CLEARSV: expand SvOK_off() macro
author
David Mitchell
<davem@iabyn.com>
Fri, 28 Feb 2014 18:35:02 +0000
(18:35 +0000)
committer
David Mitchell
<davem@iabyn.com>
Fri, 28 Feb 2014 19:38:44 +0000
(19:38 +0000)
the next commit will change thinks that affect only part of the macro
scope.c
patch
|
blob
|
blame
|
history
diff --git
a/scope.c
b/scope.c
index
23ade78
..
6bef7b0
100644
(file)
--- a/
scope.c
+++ b/
scope.c
@@
-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 */