blob: 49b2b657065438a85b2ee61e4ccc13ea0092319a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* option.c */
Bram Moolenaar07268702018-03-01 21:57:32 +01002void set_init_1(int clean_arg);
Bram Moolenaaref269542016-01-19 13:22:12 +01003void set_string_default(char *name, char_u *val);
4void set_number_default(char *name, long val);
Bram Moolenaarcacc6a52019-05-30 15:22:43 +02005void set_local_options_default(win_T *wp);
Bram Moolenaaref269542016-01-19 13:22:12 +01006void free_all_options(void);
7void set_init_2(void);
8void set_init_3(void);
9void set_helplang_default(char_u *lang);
10void init_gui_options(void);
11void set_title_defaults(void);
12int do_set(char_u *arg, int opt_flags);
Bram Moolenaardbe948d2017-07-23 22:50:51 +020013int string_to_key(char_u *arg, int multi_byte);
Bram Moolenaaref269542016-01-19 13:22:12 +010014void set_options_bin(int oldval, int newval, int opt_flags);
15int get_viminfo_parameter(int type);
16char_u *find_viminfo_parameter(int type);
17void check_options(void);
18void check_buf_options(buf_T *buf);
19void free_string_option(char_u *p);
20void clear_string_option(char_u **pp);
Bram Moolenaar35bc7d62018-10-02 14:45:10 +020021int get_term_opt_idx(char_u **p);
22int set_term_option_alloced(char_u **p);
Bram Moolenaaref269542016-01-19 13:22:12 +010023int was_set_insecurely(char_u *opt, int opt_flags);
24void set_string_option_direct(char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
Bram Moolenaar20c023a2019-05-26 21:03:24 +020025void set_string_option_direct_in_win(win_T *wp, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
26void set_string_option_direct_in_buf(buf_T *buf, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid);
Bram Moolenaar8f130ed2019-04-10 22:15:19 +020027int valid_spellang(char_u *val);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010028char *check_colorcolumn(win_T *wp);
29char *check_stl_option(char_u *s);
Bram Moolenaar35bc7d62018-10-02 14:45:10 +020030void set_term_option_sctx_idx(char *name, int opt_idx);
Bram Moolenaaref269542016-01-19 13:22:12 +010031int get_option_value(char_u *name, long *numval, char_u **stringval, int opt_flags);
32int get_option_value_strict(char_u *name, long *numval, char_u **stringval, int opt_type, void *from);
33char_u *option_iter_next(void **option, int opt_type);
Bram Moolenaarf9e3e092019-01-13 23:38:42 +010034char *set_option_value(char_u *name, long number, char_u *string, int opt_flags);
Bram Moolenaaref269542016-01-19 13:22:12 +010035char_u *get_term_code(char_u *tname);
36char_u *get_highlight_default(void);
37char_u *get_encoding_default(void);
38int makeset(FILE *fd, int opt_flags, int local_only);
39int makefoldset(FILE *fd);
40void clear_termoptions(void);
41void free_termoptions(void);
42void free_one_termoption(char_u *var);
43void set_term_defaults(void);
44void comp_col(void);
45void unset_global_local_option(char_u *name, void *from);
46char_u *get_equalprg(void);
47void win_copy_options(win_T *wp_from, win_T *wp_to);
48void copy_winopt(winopt_T *from, winopt_T *to);
49void check_win_options(win_T *win);
50void clear_winopt(winopt_T *wop);
51void buf_copy_options(buf_T *buf, int flags);
52void reset_modifiable(void);
53void set_iminsert_global(void);
54void set_imsearch_global(void);
55void set_context_in_set_cmd(expand_T *xp, char_u *arg, int opt_flags);
56int ExpandSettings(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file);
57int ExpandOldSetting(int *num_file, char_u ***file);
58int langmap_adjust_mb(int c);
59int has_format_option(int x);
60int shortmess(int x);
61void vimrc_found(char_u *fname, char_u *envname);
62void change_compatible(int on);
63int option_was_set(char_u *name);
Bram Moolenaarfe8ef982018-09-13 20:31:54 +020064int reset_option_was_set(char_u *name);
Bram Moolenaaref269542016-01-19 13:22:12 +010065int can_bs(int what);
66void save_file_ff(buf_T *buf);
67int file_ff_differs(buf_T *buf, int ignore_empty);
68int check_ff_value(char_u *p);
Bram Moolenaar04958cb2018-06-23 19:23:02 +020069int tabstop_set(char_u *var, int **array);
70int tabstop_padding(colnr_T col, int ts_arg, int *vts);
71int tabstop_at(colnr_T col, int ts, int *vts);
72colnr_T tabstop_start(colnr_T col, int ts, int *vts);
Bram Moolenaar32d19c12018-09-13 17:26:54 +020073void tabstop_fromto(colnr_T start_col, colnr_T end_col, int ts_arg, int *vts, int *ntabs, int *nspcs);
Bram Moolenaar04958cb2018-06-23 19:23:02 +020074int tabstop_eq(int *ts1, int *ts2);
75int *tabstop_copy(int *oldts);
76int tabstop_count(int *ts);
77int tabstop_first(int *ts);
Bram Moolenaaref269542016-01-19 13:22:12 +010078long get_sw_value(buf_T *buf);
Bram Moolenaarf9514162018-11-22 03:08:29 +010079long get_sw_value_indent(buf_T *buf);
80long get_sw_value_pos(buf_T *buf, pos_T *pos);
81long get_sw_value_col(buf_T *buf, colnr_T col);
Bram Moolenaaref269542016-01-19 13:22:12 +010082long get_sts_value(void);
Bram Moolenaar375e3392019-01-31 18:26:10 +010083long get_scrolloff_value(void);
84long get_sidescrolloff_value(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010085void find_mps_values(int *initc, int *findc, int *backwards, int switchit);
86unsigned int get_bkc_value(buf_T *buf);
Bram Moolenaar95ec9d62016-08-12 18:29:59 +020087int signcolumn_on(win_T *wp);
Bram Moolenaarb5ae48e2016-08-12 22:23:25 +020088dict_T *get_winbuf_options(int bufopt);
Bram Moolenaar071d4272004-06-13 20:20:40 +000089/* vim: set ft=c : */