NeoMutt  2025-12-11-769-g906513
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
sort.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_CONFIG_SORT_H
24#define MUTT_CONFIG_SORT_H
25
27#define mutt_numeric_cmp(a,b) ((a) < (b) ? -1 : ((a) > (b) ? 1 : 0))
28
29/* `$sort` and `$sort_aux` are shorts, and are a composite of a constant sort
30 * operation number and a set of compounded bitflags.
31 *
32 * Everything below SORT_MASK is a constant. There's room for SORT_MASK
33 * constant SORT_ values.
34 *
35 * Everything above is a bitflag. It's OK to move SORT_MASK down by powers of 2
36 * if we need more, so long as we don't collide with the constants above. (Or
37 * we can just expand sort and sort_aux to uint32_t.)
38 */
39#define SORT_MASK ((1 << 8) - 1)
40#define SORT_REVERSE (1 << 8)
41#define SORT_LAST (1 << 9)
42
43#endif /* MUTT_CONFIG_SORT_H */