Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* option.c */ |
Bram Moolenaar | 0726870 | 2018-03-01 21:57:32 +0100 | [diff] [blame] | 2 | void set_init_1(int clean_arg); |
Bram Moolenaar | 5ffefbb | 2021-06-13 20:27:36 +0200 | [diff] [blame] | 3 | void set_fencs_unicode(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 4 | void set_string_default(char *name, char_u *val); |
| 5 | void set_number_default(char *name, long val); |
Bram Moolenaar | 4645104 | 2019-08-24 15:50:46 +0200 | [diff] [blame] | 6 | void set_local_options_default(win_T *wp, int do_buffer); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 7 | void free_all_options(void); |
| 8 | void set_init_2(void); |
| 9 | void set_init_3(void); |
| 10 | void set_helplang_default(char_u *lang); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 11 | void set_title_defaults(void); |
Bram Moolenaar | 6b915c0 | 2020-01-18 15:53:19 +0100 | [diff] [blame] | 12 | void ex_set(exarg_T *eap); |
Yegappan Lakshmanan | 777175b | 2021-11-18 22:08:57 +0000 | [diff] [blame] | 13 | int do_set(char_u *arg_start, int opt_flags); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 14 | void did_set_option(int opt_idx, int opt_flags, int new_value, int value_checked); |
Bram Moolenaar | dbe948d | 2017-07-23 22:50:51 +0200 | [diff] [blame] | 15 | int string_to_key(char_u *arg, int multi_byte); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 16 | void did_set_title(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 17 | void set_options_bin(int oldval, int newval, int opt_flags); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 18 | void check_options(void); |
Bram Moolenaar | 35bc7d6 | 2018-10-02 14:45:10 +0200 | [diff] [blame] | 19 | int get_term_opt_idx(char_u **p); |
| 20 | int set_term_option_alloced(char_u **p); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 21 | int was_set_insecurely(char_u *opt, int opt_flags); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 22 | void redraw_titles(void); |
Bram Moolenaar | e677df8 | 2019-09-02 22:31:11 +0200 | [diff] [blame] | 23 | int valid_name(char_u *val, char *allowed); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 24 | void set_option_sctx_idx(int opt_idx, int opt_flags, sctx_T script_ctx); |
Bram Moolenaar | 5600a70 | 2022-01-22 15:09:36 +0000 | [diff] [blame] | 25 | sctx_T *get_option_sctx(char *name); |
Bram Moolenaar | 35bc7d6 | 2018-10-02 14:45:10 +0200 | [diff] [blame] | 26 | void set_term_option_sctx_idx(char *name, int opt_idx); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 27 | void check_redraw(long_u flags); |
| 28 | int findoption(char_u *arg); |
Yegappan Lakshmanan | 6409553 | 2021-12-06 11:03:55 +0000 | [diff] [blame] | 29 | getoption_T get_option_value(char_u *name, long *numval, char_u **stringval, int *flagsp, int scope); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 30 | int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from); |
Bram Moolenaar | 010ee96 | 2019-09-25 20:37:36 +0200 | [diff] [blame] | 31 | char_u *option_iter_next(void **option, int opt_type); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 32 | long_u get_option_flags(int opt_idx); |
| 33 | void set_option_flag(int opt_idx, long_u flag); |
| 34 | void clear_option_flag(int opt_idx, long_u flag); |
| 35 | int is_global_option(int opt_idx); |
| 36 | int is_global_local_option(int opt_idx); |
| 37 | int is_window_local_option(int opt_idx); |
| 38 | int is_hidden_option(int opt_idx); |
| 39 | int is_crypt_key_option(int opt_idx); |
Bram Moolenaar | f9e3e09 | 2019-01-13 23:38:42 +0100 | [diff] [blame] | 40 | char *set_option_value(char_u *name, long number, char_u *string, int opt_flags); |
Bram Moolenaar | 31e5c60 | 2022-04-15 13:53:33 +0100 | [diff] [blame] | 41 | void set_option_value_give_err(char_u *name, long number, char_u *string, int opt_flags); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 42 | char_u *get_term_code(char_u *tname); |
| 43 | char_u *get_highlight_default(void); |
| 44 | char_u *get_encoding_default(void); |
Bram Moolenaar | 4791fcd | 2022-02-23 12:06:00 +0000 | [diff] [blame] | 45 | int is_option_allocated(char *name); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 46 | int makeset(FILE *fd, int opt_flags, int local_only); |
| 47 | int makefoldset(FILE *fd); |
| 48 | void clear_termoptions(void); |
| 49 | void free_termoptions(void); |
| 50 | void free_one_termoption(char_u *var); |
| 51 | void set_term_defaults(void); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 52 | int istermoption_idx(int opt_idx); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 53 | void unset_global_local_option(char_u *name, void *from); |
Yegappan Lakshmanan | 6409553 | 2021-12-06 11:03:55 +0000 | [diff] [blame] | 54 | char_u *get_option_varp_scope(int opt_idx, int scope); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 55 | char_u *get_option_var(int opt_idx); |
| 56 | char_u *get_option_fullname(int opt_idx); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 57 | char_u *get_equalprg(void); |
| 58 | void win_copy_options(win_T *wp_from, win_T *wp_to); |
Bram Moolenaar | 010ee96 | 2019-09-25 20:37:36 +0200 | [diff] [blame] | 59 | void after_copy_winopt(win_T *wp); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 60 | void copy_winopt(winopt_T *from, winopt_T *to); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 61 | void clear_winopt(winopt_T *wop); |
| 62 | void buf_copy_options(buf_T *buf, int flags); |
| 63 | void reset_modifiable(void); |
| 64 | void set_iminsert_global(void); |
| 65 | void set_imsearch_global(void); |
| 66 | void set_context_in_set_cmd(expand_T *xp, char_u *arg, int opt_flags); |
Christian Brabandt | cb74789 | 2022-05-08 21:10:56 +0100 | [diff] [blame] | 67 | int ExpandSettings(expand_T *xp, regmatch_T *regmatch, char_u *fuzzystr, int *numMatches, char_u ***matches, int do_fuzzy); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 68 | int ExpandOldSetting(int *num_file, char_u ***file); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 69 | int shortmess(int x); |
| 70 | void vimrc_found(char_u *fname, char_u *envname); |
| 71 | void change_compatible(int on); |
| 72 | int option_was_set(char_u *name); |
Bram Moolenaar | fe8ef98 | 2018-09-13 20:31:54 +0200 | [diff] [blame] | 73 | int reset_option_was_set(char_u *name); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 74 | void fill_breakat_flags(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 75 | int can_bs(int what); |
Bram Moolenaar | 375e339 | 2019-01-31 18:26:10 +0100 | [diff] [blame] | 76 | long get_scrolloff_value(void); |
| 77 | long get_sidescrolloff_value(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 78 | unsigned int get_bkc_value(buf_T *buf); |
Christian Brabandt | c53b467 | 2022-01-15 10:01:05 +0000 | [diff] [blame] | 79 | char_u *get_flp_value(buf_T *buf); |
Gary Johnson | 53ba05b | 2021-07-26 22:19:10 +0200 | [diff] [blame] | 80 | unsigned int get_ve_flags(void); |
Bram Moolenaar | ee85702 | 2019-11-09 23:26:40 +0100 | [diff] [blame] | 81 | char_u *get_showbreak_value(win_T *win); |
Bram Moolenaar | b5ae48e | 2016-08-12 22:23:25 +0200 | [diff] [blame] | 82 | dict_T *get_winbuf_options(int bufopt); |
Bram Moolenaar | dac1347 | 2019-09-16 21:06:21 +0200 | [diff] [blame] | 83 | int fill_culopt_flags(char_u *val, win_T *wp); |
Bram Moolenaar | f4e2099 | 2020-12-21 19:59:08 +0100 | [diff] [blame] | 84 | int magic_isset(void); |
Yegappan Lakshmanan | 777175b | 2021-11-18 22:08:57 +0000 | [diff] [blame] | 85 | int option_set_callback_func(char_u *optval, callback_T *optcb); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 86 | /* vim: set ft=c : */ |