Use bit-field for boolean flags in fileinfo struct

This commit is contained in:
Bert Münnich
2015-01-04 15:38:49 +01:00
parent 0cb1d11305
commit 9b9294bae6
6 changed files with 34 additions and 27 deletions

View File

@@ -64,12 +64,16 @@ typedef enum {
CURSOR_WATCH
} cursor_t;
typedef enum {
FF_WARN = 1,
FF_MARK = 2
} fileflags_t;
typedef struct {
const char *name; /* as given by user */
const char *path; /* always absolute */
const char *base;
bool warn;
bool marked;
fileflags_t flags;
} fileinfo_t;
/* timeouts in milliseconds: */