diff options
author | Julian Orth <ju.orth@gmail.com> | 2014-03-15 01:48:51 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-31 21:24:59 -0300 |
commit | 55d95c1cd040a1ab0d28287ccba09b93e3ffaa93 (patch) | |
tree | 23ed97db667d59b4ab1b918be835603959dd76a3 /src/spell.c | |
parent | 079c47ed7b203b724690b627b2ad5a18f55fa2cd (diff) | |
download | rneovim-55d95c1cd040a1ab0d28287ccba09b93e3ffaa93.tar.gz rneovim-55d95c1cd040a1ab0d28287ccba09b93e3ffaa93.tar.bz2 rneovim-55d95c1cd040a1ab0d28287ccba09b93e3ffaa93.zip |
remove HAVE_{ISWUPPER,ISWLOWER,TOWUPPER,TOWLOWER}
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/spell.c b/src/spell.c index 6df0e340a1..a50d872fa1 100644 --- a/src/spell.c +++ b/src/spell.c @@ -969,32 +969,17 @@ static void close_spellbuf(buf_T *buf); # endif /* 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 if available. */ -# ifdef HAVE_TOWLOWER -# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \ - : (c) < \ - 256 ? (int)spelltab.st_fold[c] : (int)towlower(c)) -# else -# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \ - : (c) < 256 ? (int)spelltab.st_fold[c] : (c)) -# endif + * the "w" library function for characters above 255. */ +#define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \ + : (c) < \ + 256 ? (int)spelltab.st_fold[c] : (int)towlower(c)) -# ifdef HAVE_TOWUPPER -# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \ - : (c) < \ - 256 ? (int)spelltab.st_upper[c] : (int)towupper(c)) -# else -# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \ - : (c) < 256 ? (int)spelltab.st_upper[c] : (c)) -# endif +#define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \ + : (c) < \ + 256 ? (int)spelltab.st_upper[c] : (int)towupper(c)) -# ifdef HAVE_ISWUPPER -# define SPELL_ISUPPER(c) (enc_utf8 && (c) >= 128 ? utf_isupper(c) \ - : (c) < 256 ? spelltab.st_isu[c] : iswupper(c)) -# else -# define SPELL_ISUPPER(c) (enc_utf8 && (c) >= 128 ? utf_isupper(c) \ - : (c) < 256 ? spelltab.st_isu[c] : (FALSE)) -# endif +#define SPELL_ISUPPER(c) (enc_utf8 && (c) >= 128 ? utf_isupper(c) \ + : (c) < 256 ? spelltab.st_isu[c] : iswupper(c)) static char *e_format = N_("E759: Format error in spell file"); |