mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* src/chown.h (enum chown_modes): New type. (CHOWN_CHOWN, CHOWN_CHGRP): Define as an enum instead of a macro. * src/chown-chgrp.c (chown_mode): Use "enum chown_modes" instead of "int". * src/chown-chown.c (chown_mode): Likewise. * src/ls.h (enum ls_modes): New type. (LS_LS, LS_MULTI_COL, LS_LONG_FORMAT): Define as an enum instead of a macro. * src/ls-dir.c (ls_mode): Use "enum ls_modes" instead of "int". * src/ls-ls.c (ls_mode): Likewise. * src/ls-vdir.c (ls_mode): Likewise. * src/uname.h (enum uname_modes): New type. (UNAME_UNAME, UNAME_ARCH): Define as an enum instead of a macro. * src/uname-arch.c (uname_mode): Use "enum uname_modes" instead of "int". * src/uname-uname.c (uname_mode): Likewise.
14 lines
214 B
C
14 lines
214 B
C
enum ls_modes
|
|
{
|
|
/* This is for the 'ls' program. */
|
|
LS_LS,
|
|
|
|
/* This is for the 'dir' program. */
|
|
LS_MULTI_COL,
|
|
|
|
/* This is for the 'vdir' program. */
|
|
LS_LONG_FORMAT
|
|
};
|
|
|
|
extern enum ls_modes ls_mode;
|