summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-25 11:07:28 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:19:17 +0000
commitb405d38bc792991fe2bdb47a1503569aba7d5db5 (patch)
treeec18a27a29b8cf50be9cc1910ce6cbad0eb8f14a /scope.c
parentef5889910d6925f89c05af2dac7a543a9678fb52 (diff)
downloadperl-b405d38bc792991fe2bdb47a1503569aba7d5db5.tar.gz
rename POPFOO() to CX_POPFOO()
Rename all the context-popping macros such as POPBLOCK and POPSUB, by giving them a CX_ prefix. (Do TOPBLOCK too). This is principally to deliberately break any existing non-core use of these non-API macros, as their behaviour has changed in this branch. In particular, POPBLOCK(cx) no longer decrements the cxt stack pointer nor sets cx; instead, cx is now expected to already point to the stack frame which POPBLOCK should process. At the same time, giving them a CX_ prefix makes it clearer that these are all part of a family of macros that manipulate the context stack. The PUSHFOO() macros will be renamed in a later commit.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/scope.c b/scope.c
index 342e514d57..f425be5dd8 100644
--- a/scope.c
+++ b/scope.c
@@ -1233,9 +1233,11 @@ Perl_leave_scope(pTHX_ I32 base)
SV **svp;
assert (ARG1_PTR);
svp = AvARRAY((PAD*)ARG1_PTR) + (PADOFFSET)arg0.any_uv;
- /* This mortalizing used to be done by POPLOOP() via itersave.
- But as we have all the information here, we can do it here,
- save even having to have itersave in the struct. */
+ /* This mortalizing used to be done by CX_POOPLOOP() via
+ itersave. But as we have all the information here, we
+ can do it here, save even having to have itersave in
+ the struct.
+ */
sv_2mortal(*svp);
*svp = ARG2_SV;
}