| 3872 | } |
| 3873 | |
| 3874 | static int |
| 3875 | cmp_width (struct fileinfo const *a, struct fileinfo const *b, |
| 3876 | int (*cmp) (char const *, char const *)) |
| 3877 | { |
| 3878 | int diff = fileinfo_name_width (a) - fileinfo_name_width (b); |
| 3879 | return diff ? diff : cmp (a->name, b->name); |
| 3880 | } |
| 3881 | |
| 3882 | DEFINE_SORT_FUNCTIONS (ctime, cmp_ctime) |
| 3883 | DEFINE_SORT_FUNCTIONS (mtime, cmp_mtime) |
nothing calls this directly
no test coverage detected