refactor: Replace vim_strrchr() with strrchar() (#8718)

ref #1474
This commit is contained in:
ZviRackover
2018-08-11 17:14:10 +03:00
committed by Justin M. Keyes
parent 6aefae8c4e
commit 22311457ab
7 changed files with 28 additions and 36 deletions

View File

@@ -1770,7 +1770,7 @@ void path_fix_case(char_u *name)
}
// Open the directory where the file is located.
char_u *slash = vim_strrchr(name, '/');
char_u *slash = STRRCHR(name, '/');
char_u *tail;
Directory dir;
bool ok;
@@ -2213,10 +2213,10 @@ static int path_to_absolute(const char_u *fname, char_u *buf, size_t len,
// expand it if forced or not an absolute path
if (force || !path_is_absolute(fname)) {
p = vim_strrchr(fname, '/');
p = STRRCHR(fname, '/');
#ifdef WIN32
if (p == NULL) {
p = vim_strrchr(fname, '\\');
p = STRRCHR(fname, '\\');
}
#endif
if (p != NULL) {