1#ifndef DEFINE_FUNC_ATTRIBUTES
2# define DEFINE_FUNC_ATTRIBUTES
3#endif
4#include "nvim/func_attr.h"
5#undef DEFINE_FUNC_ATTRIBUTES
6static char *strcpy_comma_escaped(char *dest, const char *src, const size_t len) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT;
7static inline size_t compute_double_colon_len(const char *const val, const size_t common_suf_len, const size_t single_suf_len) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE;
8static inline char *add_colon_dirs(char *dest, const char *const val, const char *const suf1, const size_t len1, const char *const suf2, const size_t len2, const _Bool forward) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ARG(1);
9static inline char *add_dir(char *dest, const char *const dir, const size_t dir_len, const XDGVarType type, const char *const suf1, const size_t len1, const char *const suf2, const size_t len2) FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ARG(1) FUNC_ATTR_WARN_UNUSED_RESULT;
10static void set_runtimepath_default(void);
11static void set_option_default(int opt_idx, int opt_flags, int compatible );
12static void set_options_default(int opt_flags );
13static void set_string_default(const char *name, char *val, _Bool allocated) FUNC_ATTR_NONNULL_ALL;
14static void did_set_option(int opt_idx, int opt_flags, int new_value, int value_checked );
15static char_u *illegal_char(char_u *errbuf, size_t errbuflen, int c);
16static int string_to_key(char_u *arg);
17static char_u *check_cedit(void);
18static void did_set_title(int icon );
19static char_u *option_expand(int opt_idx, char_u *val);
20static void didset_options(void);
21static void didset_options2(void);
22static void check_string_option(char_u **pp);
23static uint32_t *insecure_flag(int opt_idx, int opt_flags);
24static void redraw_titles(void);
25static void set_string_option_global(int opt_idx, char_u **varp );
26static char *set_string_option(const int opt_idx, const char *const value, const int opt_flags) FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_WARN_UNUSED_RESULT;
27static _Bool valid_filetype(char_u *val);
28static char_u *did_set_string_option(int opt_idx, char_u **varp, int new_value_alloced, char_u *oldval, char_u *errbuf, size_t errbuflen, int opt_flags, int *value_checked );
29static int int_cmp(const void *a, const void *b);
30static char_u *set_chars_option(win_T *wp, char_u **varp);
31static char_u *did_set_spell_option(_Bool is_spellfile);
32static char_u *compile_cap_prog(synblock_T *synblock);
33static _Bool parse_winhl_opt(win_T *wp);
34static void set_option_sctx_idx(int opt_idx, int opt_flags, sctx_T script_ctx);
35static char *set_bool_option(const int opt_idx, char_u *const varp, const int value, const int opt_flags);
36static char *set_num_option(int opt_idx, char_u *varp, long value, char_u *errbuf, size_t errbuflen, int opt_flags);
37static void trigger_optionsset_string(int opt_idx, int opt_flags, char *oldval, char *newval);
38static void check_redraw(uint32_t flags);
39static int findoption(const char *const arg);
40static int find_key_option(const char_u *arg, _Bool has_lt);
41static void showoptions(int all, int opt_flags );
42static int optval_default(vimoption_T *p, char_u *varp);
43static void showoneopt(vimoption_T *p, int opt_flags );
44static int put_setstring(FILE *fd, char *cmd, char *name, char_u **valuep, int expand);
45static int put_setnum(FILE *fd, char *cmd, char *name, long *valuep);
46static int put_setbool(FILE *fd, char *cmd, char *name, int value);
47static char_u *get_varp_scope(vimoption_T *p, int opt_flags);
48static char_u *get_varp(vimoption_T *p);
49static void check_winopt(winopt_T *wop);
50static void option_value2string(vimoption_T *opp, int opt_flags );
51static int wc_use_keyname(char_u *varp, long *wcp);
52static void langmap_set_entry(int from, int to);
53static void langmap_init(void);
54static void langmap_set(void);
55static void paste_option_changed(void);
56static void fill_breakat_flags(void);
57static int check_opt_strings(char_u *val, char **values, int list );
58static int opt_strings_flags(char_u *val, char **values, unsigned *flagp, _Bool list );
59static int check_opt_wim(void);
60static _Bool briopt_check(win_T *wp);
61#include "nvim/func_attr.h"
62