Remove platform dependent HAVE_OPENDIR #2010

This commit is contained in:
Jonas Dourado
2015-02-18 01:11:54 -02:00
committed by Justin M. Keyes
parent 70393f2e30
commit 293a7dc134
4 changed files with 0 additions and 19 deletions

View File

@@ -31,7 +31,6 @@
#cmakedefine HAVE_LSTAT
#cmakedefine HAVE_NL_LANGINFO_CODESET
#cmakedefine HAVE_NL_MSG_CAT_CNTR
#cmakedefine HAVE_OPENDIR
#define HAVE_OSPEED 1
#cmakedefine HAVE_PUTENV
#cmakedefine HAVE_PWD_H

View File

@@ -182,10 +182,6 @@
/* Special wildcards that need to be handled by the shell */
#define SPECIAL_WILDCHAR "`'{"
#ifndef HAVE_OPENDIR
# define NO_EXPANDPATH
#endif
/*
* Unix has plenty of memory, use large buffers
*/

View File

@@ -401,8 +401,6 @@ char_u *save_absolute_path(const char_u *name)
}
#if !defined(NO_EXPANDPATH)
#if defined(UNIX)
/*
* Unix style wildcard expansion code.
@@ -1234,7 +1232,6 @@ addfile (
add_pathsep(p);
GA_APPEND(char_u *, gap, p);
}
#endif /* !NO_EXPANDPATH */
/*
* 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;
}
#if !defined(NO_EXPANDPATH)
/*
* Compare path "p[]" to "q[]".
* 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;
}
#endif
#ifndef NO_EXPANDPATH
/*
* Expand a path into all matching files and/or directories. Handles "*",
* "?", "[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);
}
#endif
/// Try to find a shortname by comparing the fullname with the current
/// directory.

View File

@@ -184,13 +184,6 @@ enum {
};
#ifdef NO_EXPANDPATH
# define gen_expand_wildcards mch_expand_wildcards
#endif