mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28:33 +00:00
Move mch_expandpath from os_unix.c
This commit is contained in:

committed by
Thiago de Arruda

parent
7034903591
commit
7464b07c22
16
src/path.c
16
src/path.c
@@ -1761,3 +1761,19 @@ int pathcmp(const char *p, const char *q, int maxlen)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NO_EXPANDPATH
|
||||
/*
|
||||
* Expand a path into all matching files and/or directories. Handles "*",
|
||||
* "?", "[a-z]", "**", etc.
|
||||
* "path" has backslashes before chars that are not to be expanded.
|
||||
* Returns the number of matches found.
|
||||
*/
|
||||
int mch_expandpath(gap, path, flags)
|
||||
garray_T *gap;
|
||||
char_u *path;
|
||||
int flags; /* EW_* flags */
|
||||
{
|
||||
return unix_expandpath(gap, path, 0, flags, FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user