aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-04-10 13:10:37 +0100
committerSeth Jackson <sethjackson@gmail.com>2015-12-11 19:10:06 -0500
commitfe143ac439e793c4b3c486d0a885c9bf3dc19ac8 (patch)
tree1bec06cb1faea7d35af8b0580657b73dd6679313 /src
parent81960df9f55a1d378185e381fd81c2f21b56e085 (diff)
downloadrneovim-fe143ac439e793c4b3c486d0a885c9bf3dc19ac8.tar.gz
rneovim-fe143ac439e793c4b3c486d0a885c9bf3dc19ac8.tar.bz2
rneovim-fe143ac439e793c4b3c486d0a885c9bf3dc19ac8.zip
Windows: Remove UNIX guard for pstrcmp()
@equalsraf: I took a look at the Vim source pstrcmp() is actually used in the dos_expandpath(misc1.c). The only difference between the UNIX and WIN32 version of the functions is the _cdecl call convention annotation - the body of the function is identical. Neovim kept the comment from the Unix function but not from the Windows variant. Seems to me its safe to use the same function for both - and just correct the comment.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/path.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 877ef1565a..253035ed99 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -467,16 +467,13 @@ bool path_has_wildcard(const char_u *p)
return false;
}
-#if defined(UNIX)
/*
* Unix style wildcard expansion code.
- * It's here because it's used both for Unix and Mac.
*/
static int pstrcmp(const void *a, const void *b)
{
return pathcmp(*(char **)a, *(char **)b, -1);
}
-#endif
/// Checks if a path has a character path_expand can expand.
/// @param p The path to expand.