option.h: Turn OPT_* list into a enum

This commit is contained in:
ZyX
2016-06-26 17:56:25 +03:00
parent c47624482c
commit 1a92585e32

View File

@@ -6,17 +6,18 @@
#define BCO_ALWAYS 2 /* always copy the options */ #define BCO_ALWAYS 2 /* always copy the options */
#define BCO_NOHELP 4 /* don't touch the help related options */ #define BCO_NOHELP 4 /* don't touch the help related options */
/* /// Flags for option-setting functions
* "flags" values for option-setting functions. ///
* When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global /// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global
* values, get local value. /// values, get local value.
*/ typedef enum {
#define OPT_FREE 1 /* free old value if it was allocated */ OPT_FREE = 1, ///< Free old value if it was allocated.
#define OPT_GLOBAL 2 /* use global value */ OPT_GLOBAL = 2, ///< Use global value.
#define OPT_LOCAL 4 /* use local value */ OPT_LOCAL = 4, ///< Use local value.
#define OPT_MODELINE 8 /* option in modeline */ OPT_MODELINE = 8, ///< Option in modeline.
#define OPT_WINONLY 16 /* only set window-local options */ OPT_WINONLY = 16, ///< Only set window-local options.
#define OPT_NOWIN 32 /* don't set window-local options */ OPT_NOWIN = 32, ///< Dont set window-local options.
} OptionFlags;
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# include "option.h.generated.h" # include "option.h.generated.h"