summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-04 22:32:59 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-04 22:32:59 +0100
commit80147dda4f5a25c9533bc88583c87dbbb0a0f1f1 (patch)
tree43afe291c3107abfc5e1d25255cabe5ae0e86a31 /src/fileio.c
parentd816cd94d87afb73c505bf1e5cd5e07522482113 (diff)
downloadvim-git-80147dda4f5a25c9533bc88583c87dbbb0a0f1f1.tar.gz
patch 8.2.0209: function a bit far away from where it's usedv8.2.0209
Problem: Function a bit far away from where it's used. Solution: Move function close to where it's used. (Ken Takata, closes #5569)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c
index e35ce8c7b..575efafd2 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4423,17 +4423,17 @@ readdir_core(
int (*checkitem)(void *context, char_u *name))
{
int failed = FALSE;
-#ifdef MSWIN
+# ifdef MSWIN
char_u *buf, *p;
int ok;
HANDLE hFind = INVALID_HANDLE_VALUE;
WIN32_FIND_DATAW wfb;
WCHAR *wn = NULL; // UTF-16 name, NULL when not used.
-#endif
+# endif
ga_init2(gap, (int)sizeof(char *), 20);
-#ifdef MSWIN
+# ifdef MSWIN
buf = alloc(MAXPATHL);
if (buf == NULL)
return FAIL;
@@ -4498,7 +4498,7 @@ readdir_core(
vim_free(buf);
vim_free(wn);
-#else
+# else
DIR *dirp;
struct dirent *dp;
char_u *p;
@@ -4547,7 +4547,7 @@ readdir_core(
closedir(dirp);
}
-#endif
+# endif
if (!failed && gap->ga_len > 0)
sort_strings((char_u **)gap->ga_data, gap->ga_len);