diff options
Diffstat (limited to 'src/nvim/option.h')
| -rw-r--r-- | src/nvim/option.h | 25 | 
1 files changed, 14 insertions, 11 deletions
diff --git a/src/nvim/option.h b/src/nvim/option.h index 5c2b2662b5..60f14dea44 100644 --- a/src/nvim/option.h +++ b/src/nvim/option.h @@ -1,22 +1,25 @@  #ifndef NVIM_OPTION_H  #define NVIM_OPTION_H +#include "nvim/ex_cmds_defs.h"  // for exarg_T +  /* flags for buf_copy_options() */  #define BCO_ENTER       1       /* going to enter the buffer */  #define BCO_ALWAYS      2       /* always copy the options */  #define BCO_NOHELP      4       /* don't touch the help related options */ -/* - * "flags" values for option-setting functions. - * When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global - * values, get local value. - */ -#define OPT_FREE        1       /* free old value if it was allocated */ -#define OPT_GLOBAL      2       /* use global value */ -#define OPT_LOCAL       4       /* use local value */ -#define OPT_MODELINE    8       /* option in modeline */ -#define OPT_WINONLY     16      /* only set window-local options */ -#define OPT_NOWIN       32      /* don't set window-local options */ +/// Flags for option-setting functions +/// +/// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global +/// values, get local value. +typedef enum { +  OPT_FREE     = 1,   ///< Free old value if it was allocated. +  OPT_GLOBAL   = 2,   ///< Use global value. +  OPT_LOCAL    = 4,   ///< Use local value. +  OPT_MODELINE = 8,   ///< Option in modeline. +  OPT_WINONLY  = 16,  ///< Only set window-local options. +  OPT_NOWIN    = 32,  ///< Don’t set window-local options. +} OptionFlags;  #ifdef INCLUDE_GENERATED_DECLARATIONS  # include "option.h.generated.h"  | 
