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