From af16dfc53f004ad3515296daff9156ec0751b0b5 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 3 Mar 2008 12:48:41 +0000 Subject: - add option "default to backup" (from PttSuggest@ptt2) - user/reg: prevent ambigious regcode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/uflags.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/uflags.h') 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) */ -- cgit v1.2.3