From 9b9294bae67da4e0388e7c31d0063f4e114aa1f8 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Sun, 4 Jan 2015 15:38:49 +0100 Subject: Use bit-field for boolean flags in fileinfo struct --- types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index 78022bd..c573d13 100644 --- a/types.h +++ b/types.h @@ -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: */ -- cgit v1.2.3