O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
O_BENCH := 0 # benchmark mode (stops at first user input)
O_NOSSN := 0 # enable session support
+O_NOUG := 0 # disable user, group name in status bar
# convert targets to flags for backwards compatibility
ifneq ($(filter debug,$(MAKECMDGOALS)),)
CPPFLAGS += -DNOSSN
endif
+ifeq ($(O_NOUG),1)
+ CPPFLAGS += -DNOUG
+endif
+
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)
off_t size;
blkcnt_t blocks; /* number of 512B blocks allocated */
mode_t mode;
+#ifndef NOUG
uid_t uid;
gid_t gid;
+#endif
ushort nlen; /* Length of file name */
uchar flags; /* Flags specific to the file */
} *pEntry;
dentp->mode = sb.st_mode;
dentp->size = sb.st_size;
#endif
+
+#ifndef NOUG
dentp->uid = sb.st_uid;
dentp->gid = sb.st_gid;
+#endif
dentp->flags = S_ISDIR(sb.st_mode) ? 0 : ((sb.st_nlink > 1) ? HARD_LINK : 0);
if (entflags) {
addch(' ');
addstr(get_lsperms(pent->mode));
addch(' ');
+#ifndef NOUG
if (g_state.uidgid) {
struct passwd *pw = getpwuid(pent->uid);
struct group *gr = getgrgid(pent->gid);
addch('-');
addch(' ');
}
+#endif
addstr(coolsize(pent->size));
addch(' ');
addstr(ptr);
" -t secs timeout to lock\n"
" -T key sort order [a/d/e/r/s/t/v]\n"
" -u use selection (no prompt)\n"
+#ifndef NOUG
" -U show user and group\n"
+#endif
" -V show version\n"
" -w place HW cursor on hovered\n"
" -x notis, sel to system clipboard\n"