This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sort(!) out CXt_NULL and CXp_MULTICALL
authorDavid Mitchell <davem@iabyn.com>
Thu, 15 Oct 2015 10:16:14 +0000 (11:16 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:42 +0000 (08:59 +0000)
commit796464187416d7ed9e48c8ce9a8dffeeba5b8240
treee785c4f49d5ca6581ee0c679328a59ae82058f74
parent72c5b62dfd0d91a02743d4b2fe0d8b8d04488753
sort(!) out CXt_NULL and CXp_MULTICALL

A sort BLOCK is done using a CXt_NULL context type. Currently it has
the CXp_MULTICALL flag set. Remove this flag so that CXp_MULTICALL is
only set on CXt_SUB contexts.

Also add code comments in various places explainging that CXt_NULL is
likely to a sort BLOCK, and fix the comments in pp_return which said
a particular code path was only taken by sort BLOCK; it's also taken
be (?{...}) too.
cop.h
pp_ctl.c
pp_sort.c
sv.c
t/re/re_tests