option_defs.h: Improve coding style

This commit is contained in:
watiko
2016-02-15 23:22:24 +09:00
parent 4612821946
commit 0b67bb8c25

View File

@@ -151,27 +151,39 @@
#define COCU_ALL "nvic" /* flags for 'concealcursor' */ #define COCU_ALL "nvic" /* flags for 'concealcursor' */
/* characters for p_shm option: */ /// characters for p_shm option:
#define SHM_RO 'r' /* readonly */ enum {
#define SHM_MOD 'm' /* modified */ SHM_RO = 'r', ///< Readonly.
#define SHM_FILE 'f' /* (file 1 of 2) */ SHM_MOD = 'm', ///< Modified.
#define SHM_LAST 'i' /* last line incomplete */ SHM_FILE = 'f', ///< (file 1 of 2)
#define SHM_TEXT 'x' /* tx instead of textmode */ SHM_LAST = 'i', ///< Last line incomplete.
#define SHM_LINES 'l' /* "L" instead of "lines" */ SHM_TEXT = 'x', ///< Tx instead of textmode.
#define SHM_NEW 'n' /* "[New]" instead of "[New file]" */ SHM_LINES = 'l', ///< "L" instead of "lines".
#define SHM_WRI 'w' /* "[w]" instead of "written" */ SHM_NEW = 'n', ///< "[New]" instead of "[New file]".
#define SHM_A "rmfixlnw" /* represented by 'a' flag */ SHM_WRI = 'w', ///< "[w]" instead of "written".
#define SHM_WRITE 'W' /* don't use "written" at all */ SHM_WRITE = 'W', ///< Don't use "written" at all.
#define SHM_TRUNC 't' /* trunctate file messages */ SHM_TRUNC = 't', ///< Trunctate file messages.
#define SHM_TRUNCALL 'T' /* trunctate all messages */ SHM_TRUNCALL = 'T', ///< Trunctate all messages.
#define SHM_OVER 'o' /* overwrite file messages */ SHM_OVER = 'o', ///< Overwrite file messages.
#define SHM_OVERALL 'O' /* overwrite more messages */ SHM_OVERALL = 'O', ///< Overwrite more messages.
#define SHM_SEARCH 's' /* no search hit bottom messages */ SHM_SEARCH = 's', ///< No search hit bottom messages.
#define SHM_ATTENTION 'A' /* no ATTENTION messages */ SHM_ATTENTION = 'A', ///< No ATTENTION messages.
#define SHM_INTRO 'I' /* intro messages */ SHM_INTRO = 'I', ///< Intro messages.
#define SHM_COMPLETIONMENU 'c' // completion menu messages SHM_COMPLETIONMENU = 'c', ///< Completion menu messages.
#define SHM_RECORDING 'q' ///< short recording message SHM_RECORDING = 'q', ///< Short recording message.
#define SHM_ALL "rmfixlnwaWtToOsAIcq" ///< all possible flags for 'shm' };
/// Represented by 'a' flag.
#define SHM_A ((char_u[]) { \
SHM_RO, SHM_MOD, SHM_FILE, SHM_LAST, SHM_TEXT, SHM_LINES, SHM_NEW, SHM_WRI, \
0, \
})
/// All possible flags for 'shm'.
#define SHM_ALL ((char_u[]) { \
SHM_RO, SHM_MOD, SHM_FILE, SHM_LAST, SHM_TEXT, SHM_LINES, SHM_NEW, SHM_WRI, \
SHM_WRITE, SHM_TRUNC, SHM_TRUNCALL, SHM_OVER, SHM_OVERALL, SHM_SEARCH, \
SHM_ATTENTION, SHM_INTRO, SHM_COMPLETIONMENU, SHM_RECORDING, \
0, \
})
/* characters for p_go: */ /* characters for p_go: */
#define GO_ASEL 'a' /* autoselect */ #define GO_ASEL 'a' /* autoselect */