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