diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-09 11:52:39 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 09:33:41 -0300 |
commit | d2b715bf1de31fc784b399d6aafb5f7e41aef6cc (patch) | |
tree | 628f3ee34485e1af90374b744adea909c514c167 /src/option.h | |
parent | 7c01d5ff9286d262097484c680e3a4eab49e2911 (diff) | |
download | rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.tar.gz rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.tar.bz2 rneovim-d2b715bf1de31fc784b399d6aafb5f7e41aef6cc.zip |
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
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/option.h b/src/option.h index 31fd1e2025..ec27e1b493 100644 --- a/src/option.h +++ b/src/option.h @@ -1,5 +1,8 @@ #ifndef NEOVIM_OPTION_H #define NEOVIM_OPTION_H + +#include <stdint.h> + /* option.c */ void set_init_1(void); void set_string_default(char *name, char_u *val); @@ -26,6 +29,11 @@ char_u *check_colorcolumn(win_T *wp); char_u *check_stl_option(char_u *s); int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags); +int get_option_value_strict(char *name, + int64_t *numval, + char **stringval, + int opt_type, + void *from); char_u *option_iter_next(void **option, int opt_type); char_u *set_option_value(char_u *name, long number, char_u *string, int opt_flags); @@ -39,6 +47,7 @@ void free_termoptions(void); void free_one_termoption(char_u *var); void set_term_defaults(void); void comp_col(void); +void unset_global_local_option(char *name, void *from); char_u *get_equalprg(void); void win_copy_options(win_T *wp_from, win_T *wp_to); void copy_winopt(winopt_T *from, winopt_T *to); |