API: Implement vim_{get,set}_option

Some functions from upstream VIM were reintegrated for this:
- get_option_value_strict
- set_option_value_err
- set_option_value_for
- unset_global_local_option
This commit is contained in:
Thiago de Arruda
2014-05-09 11:52:39 -03:00
parent 7c01d5ff92
commit d2b715bf1d
8 changed files with 415 additions and 25 deletions

View File

@@ -1382,11 +1382,6 @@ typedef int VimClipboard; /* This is required for the prototypes. */
#define FILEINFO_READ_FAIL 2 /* CreateFile() failed */
#define FILEINFO_INFO_FAIL 3 /* GetFileInformationByHandle() failed */
/* 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 */
/* Character used as separated in autoload function/variable names. */
#define AUTOLOAD_CHAR '#'