]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Greatly simplify the depth computation in su_init()
authorVincent Pit <vince@profvince.com>
Fri, 24 Jul 2015 19:22:21 +0000 (16:22 -0300)
committerVincent Pit <vince@profvince.com>
Fri, 24 Jul 2015 19:34:58 +0000 (16:34 -0300)
In order to count how many scopes we will have to pop, it is enough to take
the difference between the current scope (PL_scopestack_ix) and the one
just below the target context (cxstack[cxix].blk_oldscopesp).


No differences found