diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-11-08 09:48:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 09:48:48 +0100 |
commit | fae754073289566051433fae74ec65783f9e7a6a (patch) | |
tree | 27fa3555e5a8a016dce55cc39f20599e32cf7046 /src/nvim/spell.c | |
parent | d187c00faf4feb76bdc544b87bea71f217d05957 (diff) | |
parent | 731cdde28ea8d48cc23ba2752a08c261c87eee92 (diff) | |
download | rneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.gz rneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.bz2 rneovim-fae754073289566051433fae74ec65783f9e7a6a.zip |
Merge pull request #20821 from dundargoc/refactor/clang-tidy
refactor: fix clang-tidy warnings
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 1b78aa4d72..f24af5c3bf 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -112,11 +112,13 @@ #include "nvim/vim.h" // for curwin, strlen, STRLCPY, STRNCMP // Result values. Lower number is accepted over higher one. -#define SP_BANNED (-1) -#define SP_RARE 0 -#define SP_OK 1 -#define SP_LOCAL 2 -#define SP_BAD 3 +enum { + SP_BANNED = -1, + SP_RARE = 0, + SP_OK = 1, + SP_LOCAL = 2, + SP_BAD = 3, +}; // First language that is loaded, start of the linked list of loaded // languages. |