summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-07-13 11:19:31 +0000
committerNicholas Clark <nick@ccl4.org>2004-07-13 11:19:31 +0000
commiteb209983b577c1511edd805e0a43c2e2113ddeaf (patch)
tree0b985ad6e3b1320fc2332727538cb50c315c06ba /op.h
parent50528de03a5483f294e79d7075d69c5e4582d413 (diff)
downloadperl-eb209983b577c1511edd805e0a43c2e2113ddeaf.tar.gz
The current optimisation for sort {$b cmp $a} is bogus now that we
guarantee a stable sort. Disable it, pending a correct optimisation. p4raw-id: //depot/perl@23093
Diffstat (limited to 'op.h')
-rw-r--r--op.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.h b/op.h
index 3a0265587d..6c02a1c5f8 100644
--- a/op.h
+++ b/op.h
@@ -203,8 +203,9 @@ Deprecated. Use C<GIMME_V> instead.
/* Private for OP_SORT */
#define OPpSORT_NUMERIC 1 /* Optimized away { $a <=> $b } */
#define OPpSORT_INTEGER 2 /* Ditto while under "use integer" */
-#define OPpSORT_REVERSE 4 /* Descending sort */
+#define OPpSORT_REVERSE 4 /* Reversed sort */
#define OPpSORT_INPLACE 8 /* sort in-place; eg @a = sort @a */
+#define OPpSORT_DESCEND 16 /* Descending sort */
/* Private for OP_THREADSV */
#define OPpDONE_SVREF 64 /* Been through newSVREF once */