summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/uflags.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uflags.h b/include/uflags.h
index ea27bee5..dcc4c84e 100644
--- a/include/uflags.h
+++ b/include/uflags.h
@@ -36,8 +36,15 @@
#define NO_MODMARK_FLAG 0x00001000 /* true if modified files are NOT marked */
#define COLORED_MODMARK 0x00002000 /* true if mod-mark is coloured. */
+/* Backup Preference */
+#define DEFBACKUP_FLAG 0x00010000 /* true if user defaults to backup */
+
+#define TOBACKUP(x) ((cuser.uflag & DEFBACKUP_FLAG) ? \
+ (x != 'n') : \
+ (x == 'y') )
+
/* NEW ENTRY HERE */
-// #define ??__??? 0x00010000
+// #define ??__??? 0x00100000
/* -------------------- userec_t.uflag2 (unsigned int) */