Mercurial > vim
diff src/gui_at_fs.c @ 9387:f094d4085014 v7.4.1975
commit https://github.com/vim/vim/commit/8767f52fbfd4f053ce00a978227c95f1d7d323fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 1 17:17:39 2016 +0200
patch 7.4.1975
Problem: On MS-Windows large files (> 2Gbyte) cause problems.
Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct
stat". Use 64 bit system functions if available. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 01 Jul 2016 17:30:07 +0200 |
parents | 7898da204b98 |
children | 4aead6a9b7a9 |
line wrap: on
line diff
--- a/src/gui_at_fs.c +++ b/src/gui_at_fs.c @@ -183,7 +183,7 @@ static void SFclearList(int n, int doScr static void SFbuttonPressList(Widget w, int n, XButtonPressedEvent *event); static void SFbuttonReleaseList(Widget w, int n, XButtonReleasedEvent *event); static void SFdirModTimer(XtPointer cl, XtIntervalId *id); -static char SFstatChar(struct stat *statBuf); +static char SFstatChar(stat_T *statBuf); static void SFdrawStrings(Window w, SFDir *dir, int from, int to); static int SFnewInvertEntry(int n, XMotionEvent *event); static void SFinvertEntry(int n); @@ -873,7 +873,7 @@ static int SFcheckDir(int n, SFDir *dir) static int SFcheckDir(int n, SFDir *dir) { - struct stat statBuf; + stat_T statBuf; int i; if ((!mch_stat(".", &statBuf)) && (statBuf.st_mtime != dir->mtime)) @@ -943,7 +943,7 @@ SFcheckFiles(SFDir *dir) int i; char *str; int last; - struct stat statBuf; + stat_T statBuf; result = 0; @@ -1017,7 +1017,7 @@ SFdirModTimer(XtPointer cl UNUSED, XtInt /* Return a single character describing what kind of file STATBUF is. */ static char -SFstatChar(struct stat *statBuf) +SFstatChar(stat_T *statBuf) { if (S_ISDIR (statBuf->st_mode)) return '/'; @@ -1313,13 +1313,13 @@ SFdeleteEntry(SFDir *dir, SFEntry *entry #endif } -static void SFwriteStatChar(char *name, int last, struct stat *statBuf); +static void SFwriteStatChar(char *name, int last, stat_T *statBuf); static void SFwriteStatChar( char *name, int last, - struct stat *statBuf) + stat_T *statBuf) { name[last] = SFstatChar(statBuf); } @@ -1329,7 +1329,7 @@ static int SFstatAndCheck(SFDir *dir, SF static int SFstatAndCheck(SFDir *dir, SFEntry *entry) { - struct stat statBuf; + stat_T statBuf; char save; int last; @@ -2059,7 +2059,7 @@ SFgetDir( char *str; int len; int maxChars; - struct stat statBuf; + stat_T statBuf; maxChars = strlen(dir->dir) - 1;