mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
Remove platform dependent HAVE_OPENDIR #2010
This commit is contained in:

committed by
Justin M. Keyes

parent
70393f2e30
commit
293a7dc134
@@ -31,7 +31,6 @@
|
|||||||
#cmakedefine HAVE_LSTAT
|
#cmakedefine HAVE_LSTAT
|
||||||
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
||||||
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
||||||
#cmakedefine HAVE_OPENDIR
|
|
||||||
#define HAVE_OSPEED 1
|
#define HAVE_OSPEED 1
|
||||||
#cmakedefine HAVE_PUTENV
|
#cmakedefine HAVE_PUTENV
|
||||||
#cmakedefine HAVE_PWD_H
|
#cmakedefine HAVE_PWD_H
|
||||||
|
@@ -182,10 +182,6 @@
|
|||||||
/* Special wildcards that need to be handled by the shell */
|
/* Special wildcards that need to be handled by the shell */
|
||||||
#define SPECIAL_WILDCHAR "`'{"
|
#define SPECIAL_WILDCHAR "`'{"
|
||||||
|
|
||||||
#ifndef HAVE_OPENDIR
|
|
||||||
# define NO_EXPANDPATH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unix has plenty of memory, use large buffers
|
* Unix has plenty of memory, use large buffers
|
||||||
*/
|
*/
|
||||||
|
@@ -401,8 +401,6 @@ char_u *save_absolute_path(const char_u *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if !defined(NO_EXPANDPATH)
|
|
||||||
|
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
/*
|
/*
|
||||||
* Unix style wildcard expansion code.
|
* Unix style wildcard expansion code.
|
||||||
@@ -1234,7 +1232,6 @@ addfile (
|
|||||||
add_pathsep(p);
|
add_pathsep(p);
|
||||||
GA_APPEND(char_u *, gap, p);
|
GA_APPEND(char_u *, gap, p);
|
||||||
}
|
}
|
||||||
#endif /* !NO_EXPANDPATH */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Converts a file name into a canonical form. It simplifies a file name into
|
* Converts a file name into a canonical form. It simplifies a file name into
|
||||||
@@ -1608,7 +1605,6 @@ int same_directory(char_u *f1, char_u *f2)
|
|||||||
&& pathcmp((char *)ffname, (char *)f2, (int)(t1 - ffname)) == 0;
|
&& pathcmp((char *)ffname, (char *)f2, (int)(t1 - ffname)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(NO_EXPANDPATH)
|
|
||||||
/*
|
/*
|
||||||
* Compare path "p[]" to "q[]".
|
* Compare path "p[]" to "q[]".
|
||||||
* If "maxlen" >= 0 compare "p[maxlen]" to "q[maxlen]"
|
* If "maxlen" >= 0 compare "p[maxlen]" to "q[maxlen]"
|
||||||
@@ -1673,9 +1669,7 @@ int pathcmp(const char *p, const char *q, int maxlen)
|
|||||||
return -1; /* no match */
|
return -1; /* no match */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef NO_EXPANDPATH
|
|
||||||
/*
|
/*
|
||||||
* Expand a path into all matching files and/or directories. Handles "*",
|
* Expand a path into all matching files and/or directories. Handles "*",
|
||||||
* "?", "[a-z]", "**", etc.
|
* "?", "[a-z]", "**", etc.
|
||||||
@@ -1688,7 +1682,6 @@ int mch_expandpath(garray_T *gap, char_u *path, int flags)
|
|||||||
{
|
{
|
||||||
return unix_expandpath(gap, path, 0, flags, FALSE);
|
return unix_expandpath(gap, path, 0, flags, FALSE);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/// Try to find a shortname by comparing the fullname with the current
|
/// Try to find a shortname by comparing the fullname with the current
|
||||||
/// directory.
|
/// directory.
|
||||||
|
@@ -184,13 +184,6 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef NO_EXPANDPATH
|
|
||||||
# define gen_expand_wildcards mch_expand_wildcards
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user