diff options
author | aph <a.hewson@gmail.com> | 2014-04-02 20:24:38 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-04 21:44:58 -0300 |
commit | 23dc43919e8235425ee1ca433a09afe12445ecc2 (patch) | |
tree | 39a300ae7cd56fb4f2563d72c28da342601b1e33 /src/macros.h | |
parent | 0954e608ce48225d3e4581297e5fa63b7ca1169b (diff) | |
download | rneovim-23dc43919e8235425ee1ca433a09afe12445ecc2.tar.gz rneovim-23dc43919e8235425ee1ca433a09afe12445ecc2.tar.bz2 rneovim-23dc43919e8235425ee1ca433a09afe12445ecc2.zip |
remove reference to BROKEN_TOUPPER
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/macros.h b/src/macros.h index af47fbe296..3fb8cbdda0 100644 --- a/src/macros.h +++ b/src/macros.h @@ -42,20 +42,13 @@ /* * toupper() and tolower() that use the current locale. - * On some systems toupper()/tolower() only work on lower/uppercase - * characters, first use islower() or isupper() then. * Careful: Only call TOUPPER_LOC() and TOLOWER_LOC() with a character in the * range 0 - 255. toupper()/tolower() on some systems can't handle others. * Note: It is often better to use vim_tolower() and vim_toupper(), because many * toupper() and tolower() implementations only work for ASCII. */ -# ifdef BROKEN_TOUPPER -# define TOUPPER_LOC(c) (islower(c) ? toupper(c) : (c)) -# define TOLOWER_LOC(c) (isupper(c) ? tolower(c) : (c)) -# else -# define TOUPPER_LOC toupper -# define TOLOWER_LOC tolower -# endif +#define TOUPPER_LOC toupper +#define TOLOWER_LOC tolower /* toupper() and tolower() for ASCII only and ignore the current locale. */ # define TOUPPER_ASC(c) (((c) < 'a' || (c) > 'z') ? (c) : (c) - ('a' - 'A')) |