rpeep(): OP_SORT with code block has OPf_SPECIAL
authorDavid Mitchell <davem@iabyn.com>
Wed, 5 Mar 2014 14:19:33 +0000 (14:19 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 16 Mar 2014 18:34:37 +0000 (18:34 +0000)
commit22240f589eab50022218e3541b91a487c29a729b
treed3556abef8cd6b5c4f32d4d64c63d83c3fd8bff3
parent61eef0f5eac901e462178b0556cbaacb988b8a58
rpeep(): OP_SORT with code block has OPf_SPECIAL

In rpeep(), we check whether the OP_SORT has a code block as the first arg
(e.g. sort {BLOCK} ...) by testing for OPf_STACKED, then looking for
an OP_SCOPE or ex-OP_LEAVE. However, ck_sort() has already checked for
this situation and set the OPf_SPECIAL flag. So just just check for this
flag in  rpeep(); leave in the OP_SCOPE/ex-OP_LEAVE checks as just
assertions.

Also, add some commentary to ck_sort() and S_simplify_sort().
op.c