diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-25 04:18:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 20:18:43 -0600 |
commit | 0648100fed65cbe8efe774ae997ab841cae01872 (patch) | |
tree | 4b2b5a41f58ddf442a69726f6a315c393317714b /src/nvim/os/fs.c | |
parent | 7813fa2f8cc3885788abc5c5dceea6638d8416e6 (diff) | |
download | rneovim-0648100fed65cbe8efe774ae997ab841cae01872.tar.gz rneovim-0648100fed65cbe8efe774ae997ab841cae01872.tar.bz2 rneovim-0648100fed65cbe8efe774ae997ab841cae01872.zip |
refactor: convert macros to all-caps (#17895)
Closes https://github.com/neovim/neovim/issues/6297
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r-- | src/nvim/os/fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index daf974ee74..5fcae79a67 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -1293,7 +1293,7 @@ shortcut_end: return rfname; } -# define is_path_sep(c) ((c) == L'\\' || (c) == L'/') +# define IS_PATH_SEP(c) ((c) == L'\\' || (c) == L'/') /// Returns true if the path contains a reparse point (junction or symbolic /// link). Otherwise false in returned. bool os_is_reparse_point_include(const char *path) @@ -1310,9 +1310,9 @@ bool os_is_reparse_point_include(const char *path) } p = utf16_path; - if (isalpha(p[0]) && p[1] == L':' && is_path_sep(p[2])) { + if (isalpha(p[0]) && p[1] == L':' && IS_PATH_SEP(p[2])) { p += 3; - } else if (is_path_sep(p[0]) && is_path_sep(p[1])) { + } else if (IS_PATH_SEP(p[0]) && IS_PATH_SEP(p[1])) { p += 2; } |