aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-26 10:42:08 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-26 17:44:24 -0500
commit0e1dd0a502c4a1b83dd5c338566fc097958f6eb5 (patch)
treeb67c63bb0a1011f96ffca9eed8debe700bf62b5c /src
parentd5322c838141db93a136a58e6edb3a8304526934 (diff)
downloadrneovim-0e1dd0a502c4a1b83dd5c338566fc097958f6eb5.tar.gz
rneovim-0e1dd0a502c4a1b83dd5c338566fc097958f6eb5.tar.bz2
rneovim-0e1dd0a502c4a1b83dd5c338566fc097958f6eb5.zip
spell: towupper(),towlower() are not called
Diffstat (limited to 'src')
-rw-r--r--src/nvim/charset.c1
-rw-r--r--src/nvim/spell_defs.h11
2 files changed, 3 insertions, 9 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index e9140f8ec5..0f9e2e23c0 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -8,7 +8,6 @@
#include <assert.h>
#include <string.h>
#include <wctype.h>
-#include <wchar.h> // for towupper() and towlower()
#include <inttypes.h>
#include "nvim/vim.h"
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h
index 7bc5296239..034c580b3e 100644
--- a/src/nvim/spell_defs.h
+++ b/src/nvim/spell_defs.h
@@ -261,20 +261,15 @@ typedef struct trystate_S {
// Use our own character-case definitions, because the current locale may
// differ from what the .spl file uses.
// These must not be called with negative number!
-#include <wchar.h> // for towupper() and towlower()
// Multi-byte implementation. For Unicode we can call utf_*(), but don't do
// that for ASCII, because we don't want to use 'casemap' here. Otherwise use
// the "w" library function for characters above 255.
-#define SPELL_TOFOLD(c) ((c) >= 128 ? utf_fold(c) \
- : (c) < \
- 256 ? (int)spelltab.st_fold[c] : (int)towlower(c))
+#define SPELL_TOFOLD(c) ((c) >= 128 ? utf_fold(c) : (int)spelltab.st_fold[c])
#define SPELL_TOUPPER(c) ((c) >= 128 ? mb_toupper(c) \
- : (c) < \
- 256 ? (int)spelltab.st_upper[c] : (int)towupper(c))
+ : (int)spelltab.st_upper[c])
-#define SPELL_ISUPPER(c) ((c) >= 128 ? mb_isupper(c) \
- : (c) < 256 ? spelltab.st_isu[c] : iswupper(c))
+#define SPELL_ISUPPER(c) ((c) >= 128 ? mb_isupper(c) : spelltab.st_isu[c])
// First language that is loaded, start of the linked list of loaded
// languages.