neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 51a48d482ea533415b4caa88e03adcd82f654f3a
parent 0a4c5cd2b2b7d98dc0930c474a347dee9f09bfad
Author: dundargoc <gocdundar@gmail.com>
Date:   Thu, 17 Nov 2022 15:43:29 +0100

refactor: remove __STDC_ISO_10646__ check

We can always assume wchar_t values are unicode codepoints for the
systems we support, so this check isn't necessary.

Diffstat:
Msrc/nvim/mbyte.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c @@ -71,10 +71,6 @@ # include <locale.h> #endif -#ifdef __STDC_ISO_10646__ -# include <stdc-predef.h> -#endif - typedef struct { int rangeStart; int rangeEnd; @@ -1235,12 +1231,9 @@ int mb_toupper(int a) return TOUPPER_ASC(a); } -#if defined(__STDC_ISO_10646__) - // If towupper() is available and handles Unicode, use it. if (!(cmp_flags & CMP_INTERNAL)) { return (int)towupper((wint_t)a); } -#endif // For characters below 128 use locale sensitive toupper(). if (a < 128) { @@ -1266,12 +1259,9 @@ int mb_tolower(int a) return TOLOWER_ASC(a); } -#if defined(__STDC_ISO_10646__) - // If towlower() is available and handles Unicode, use it. if (!(cmp_flags & CMP_INTERNAL)) { return (int)towlower((wint_t)a); } -#endif // For characters below 128 use locale sensitive tolower(). if (a < 128) {