aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authoraph <a.hewson@gmail.com>2014-04-01 20:03:46 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-04 21:44:58 -0300
commit4c4880b69f2dc98a8f899fe394ea15a32bcf70f7 (patch)
treebbceab6f73ddf6802d740f5d3d6fabf384264739 /src/path.c
parent535c450c72bb643aaff5e024d64980e124d6ddec (diff)
downloadrneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.gz
rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.bz2
rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.zip
remove MB_{IS,TO}{UPPER,LOWER}
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/path.c b/src/path.c
index a2d69100fd..67241522f6 100644
--- a/src/path.c
+++ b/src/path.c
@@ -246,7 +246,7 @@ int vim_fnamencmp(char_u *x, char_u *y, size_t len)
cx = PTR2CHAR(px);
cy = PTR2CHAR(py);
if (cx == NUL || cy == NUL
- || ((p_fic ? MB_TOLOWER(cx) != MB_TOLOWER(cy) : cx != cy)
+ || ((p_fic ? vim_tolower(cx) != vim_tolower(cy) : cx != cy)
&& !(cx == '/' && cy == '\\')
&& !(cx == '\\' && cy == '/')))
break;
@@ -1679,7 +1679,7 @@ int pathcmp(const char *p, const char *q, int maxlen)
break;
}
- if ((p_fic ? MB_TOUPPER(c1) != MB_TOUPPER(c2) : c1 != c2)
+ if ((p_fic ? vim_toupper(c1) != vim_toupper(c2) : c1 != c2)
#ifdef BACKSLASH_IN_FILENAME
/* consider '/' and '\\' to be equal */
&& !((c1 == '/' && c2 == '\\')
@@ -1690,7 +1690,7 @@ int pathcmp(const char *p, const char *q, int maxlen)
return -1;
if (vim_ispathsep(c2))
return 1;
- return p_fic ? MB_TOUPPER(c1) - MB_TOUPPER(c2)
+ return p_fic ? vim_toupper(c1) - vim_toupper(c2)
: c1 - c2; /* no match */
}
}