Mercurial > vim
diff src/if_cscope.c @ 10264:c036c0f636d5 v8.0.0029
commit https://github.com/vim/vim/commit/cea912af725c54f4727a0565e31661f6b29c6bb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 12 14:20:24 2016 +0200
patch 8.0.0029
Problem: Code for MS-Windows is complicated because of the exceptions for
old systems.
Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 12 Oct 2016 14:30:05 +0200 |
parents | 4aead6a9b7a9 |
children | d52d97bf675e |
line wrap: on
line diff
--- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -839,14 +839,10 @@ cs_create_connection(int i) HANDLE stdin_rd, stdout_rd; HANDLE stdout_wr, stdin_wr; BOOL created; -# ifdef __BORLANDC__ -# define OPEN_OH_ARGTYPE long +# if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) +# define OPEN_OH_ARGTYPE intptr_t # else -# if (_MSC_VER >= 1300) || defined(__MINGW32__) -# define OPEN_OH_ARGTYPE intptr_t -# else -# define OPEN_OH_ARGTYPE long -# endif +# define OPEN_OH_ARGTYPE long # endif #endif @@ -1427,11 +1423,8 @@ cs_insert_filelist( #ifndef UNIX BY_HANDLE_FILE_INFORMATION bhfi; - /* On windows 9x GetFileInformationByHandle doesn't work, so skip it */ - if (!mch_windows95()) + switch (win32_fileinfo((char_u *)fname, &bhfi)) { - switch (win32_fileinfo((char_u *)fname, &bhfi)) - { case FILEINFO_ENC_FAIL: /* enc_to_utf16() failed */ case FILEINFO_READ_FAIL: /* CreateFile() failed */ if (p_csverbose) @@ -1454,7 +1447,6 @@ cs_insert_filelist( if (p_csverbose) (void)EMSG(_("E626: cannot get cscope database information")); return -1; - } } #endif @@ -1468,9 +1460,8 @@ cs_insert_filelist( /* compare pathnames first */ && ((fullpathcmp((char_u *)csinfo[j].fname, (char_u *)fname, FALSE) & FPC_SAME) - /* if not Windows 9x, test index file attributes too */ - || (!mch_windows95() - && csinfo[j].nVolume == bhfi.dwVolumeSerialNumber + /* test index file attributes too */ + || (csinfo[j].nVolume == bhfi.dwVolumeSerialNumber && csinfo[j].nIndexHigh == bhfi.nFileIndexHigh && csinfo[j].nIndexLow == bhfi.nFileIndexLow)) #endif