Used below in DEFINE_SORT_FUNCTIONS for _df_ sort function variants. */
| 3753 | |
| 3754 | /* Used below in DEFINE_SORT_FUNCTIONS for _df_ sort function variants. */ |
| 3755 | static int |
| 3756 | dirfirst_check (struct fileinfo const *a, struct fileinfo const *b, |
| 3757 | int (*cmp) (V, V)) |
| 3758 | { |
| 3759 | int diff = is_linked_directory (b) - is_linked_directory (a); |
| 3760 | return diff ? diff : cmp (a, b); |
| 3761 | } |
| 3762 | |
| 3763 | /* Define the 8 different sort function variants required for each sortkey. |
| 3764 | KEY_NAME is a token describing the sort key, e.g., ctime, atime, size. |
no test coverage detected