aboutsummaryrefslogtreecommitdiff
path: root/src/option_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/option_defs.h')
-rw-r--r--src/option_defs.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/option_defs.h b/src/option_defs.h
index 72a5836b2d..cfd6a6d31f 100644
--- a/src/option_defs.h
+++ b/src/option_defs.h
@@ -3,9 +3,21 @@
#include "types.h"
-/*
- * option_defs.h: definition of global variables for settable options
- */
+// option_defs.h: definition of global variables for settable options
+
+// Return value from get_option_value_strict */
+#define SOPT_BOOL 0x01 // Boolean option
+#define SOPT_NUM 0x02 // Number option
+#define SOPT_STRING 0x04 // String option
+#define SOPT_GLOBAL 0x08 // Option has global value
+#define SOPT_WIN 0x10 // Option has window-local value
+#define SOPT_BUF 0x20 // Option has buffer-local value
+#define SOPT_UNSET 0x40 // Option does not have local value set
+
+// Option types for various functions in option.c
+#define SREQ_GLOBAL 0 // Request global option
+#define SREQ_WIN 1 // Request window-local option
+#define SREQ_BUF 2 // Request buffer-local option
/*
* Default values for 'errorformat'.