diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-21 01:15:38 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-21 01:16:32 -0400 |
commit | 396772c73bc1edb4309bdc10549db652d34f3f91 (patch) | |
tree | c9f3607bb9ece6bfea4178c12b1a151e2d8613fa | |
parent | 332d844e5e1b387cdf33e3a4894e47ba9389031b (diff) | |
download | rneovim-396772c73bc1edb4309bdc10549db652d34f3f91.tar.gz rneovim-396772c73bc1edb4309bdc10549db652d34f3f91.tar.bz2 rneovim-396772c73bc1edb4309bdc10549db652d34f3f91.zip |
edit: add nonnull func attribute
-rw-r--r-- | src/nvim/edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index e6bd2be6e4..178f64e067 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -2064,6 +2064,7 @@ static bool ins_compl_accept_char(int c) /// @param[in] cont_s_ipos next ^X<> will set initial_pos int ins_compl_add_infercase(char_u *str_arg, int len, bool icase, char_u *fname, int dir, bool cont_s_ipos) + FUNC_ATTR_NONNULL_ARG(1) { char_u *str = str_arg; int i, c; @@ -2425,6 +2426,7 @@ static void ins_compl_longest_match(compl_T *match) * Frees matches[]. */ static void ins_compl_add_matches(int num_matches, char_u **matches, int icase) + FUNC_ATTR_NONNULL_ALL { int add_r = OK; int dir = compl_direction; @@ -3304,6 +3306,7 @@ static void ins_compl_restart(void) * Set the first match, the original text. */ static void ins_compl_set_original_text(char_u *str) + FUNC_ATTR_NONNULL_ALL { // Replace the original text entry. // The CP_ORIGINAL_TEXT flag is either at the first item or might possibly be |