(sort_type): Rearrange to use as an array index when
authorJim Meyering <jim@meyering.net>
Sun, 23 Apr 2006 21:35:04 +0000 (21:35 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 23 Apr 2006 21:35:04 +0000 (21:35 +0000)
commit513c5ec411e0ebc5990d76096ba00f42f493f688
tree7e1b29e83ee3970c80c217022b6bd6407b80c88c
parent5bbcc061d8c09d20c3c3ab3e8331cc2f71958b2f
(sort_type): Rearrange to use as an array index when
choosing sort function; added new sort_numtypes member for
compile-time check.
(time_type): Add new time_numtypes member for compile-time check.
(directories_first): New global variable.
(GROUP_DIRECTORIES_FIRST_OPTION): New enum.
(long_options): Add --directories-first.
(main): Support new option.
(is_directory): New function.
(extract_dirs_from_files): Use it.
(DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
(LIST_SORTFUNCTION_VARIANTS): New macros.
(sort_functions): New global variable.
(sort_files): Use it.
(usage): Document new option.
src/ls.c