summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-10 23:22:30 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:41 +0000
commit88c9015732ec6efe92272206fcb71e4ffdff65c7 (patch)
tree2a669c9e198540159a226d49a452900f7bdfa2af /pp_sort.c
parent478e976c1070c5dc02cb3fc4d474b21b7cef236c (diff)
downloadperl-88c9015732ec6efe92272206fcb71e4ffdff65c7.tar.gz
eliminate LEAVESUB() macro
Many years ago, POPSUB was split into two parts, with a final cleanup being done by the LEAVESUB() macro. After the previous commit, LEAVESUB now always immediately follows POPSUB, so roll its action into the last line of POPSUB and eliminate it. This also allows us to remove the 'sv' parameter from POPSUB(), which was needed purely to communicate to LEAVESUB() which var to process
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_sort.c b/pp_sort.c
index fbbf84811e..1de1ca94d3 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1707,12 +1707,10 @@ PP(pp_sort)
sort_flags);
if (!(flags & OPf_SPECIAL)) {
- SV *sv;
/* Reset cx, in case the context stack has been
reallocated. */
cx = &cxstack[cxstack_ix];
- POPSUB(cx, sv);
- LEAVESUB(sv);
+ POPSUB(cx);
}
else
/* mimic POPSUB */