comparison src/if_cscope.c @ 8080:b6cb94ad97a4 v7.4.1334

commit https://github.com/vim/vim/commit/6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 16 15:06:59 2016 +0100 patch 7.4.1334 Problem: Many compiler warnings with MingW. Solution: Add type casts. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Tue, 16 Feb 2016 15:15:06 +0100
parents bcef391c101c
children cb0edf7bd0a4
comparison
equal deleted inserted replaced
8079:6dac7e594219 8080:b6cb94ad97a4
837 HANDLE stdout_wr, stdin_wr; 837 HANDLE stdout_wr, stdin_wr;
838 BOOL created; 838 BOOL created;
839 # ifdef __BORLANDC__ 839 # ifdef __BORLANDC__
840 # define OPEN_OH_ARGTYPE long 840 # define OPEN_OH_ARGTYPE long
841 # else 841 # else
842 # if (_MSC_VER >= 1300) 842 # if (_MSC_VER >= 1300) || defined(__MINGW32__)
843 # define OPEN_OH_ARGTYPE intptr_t 843 # define OPEN_OH_ARGTYPE intptr_t
844 # else 844 # else
845 # define OPEN_OH_ARGTYPE long 845 # define OPEN_OH_ARGTYPE long
846 # endif 846 # endif
847 # endif 847 # endif
1421 BY_HANDLE_FILE_INFORMATION bhfi; 1421 BY_HANDLE_FILE_INFORMATION bhfi;
1422 1422
1423 /* On windows 9x GetFileInformationByHandle doesn't work, so skip it */ 1423 /* On windows 9x GetFileInformationByHandle doesn't work, so skip it */
1424 if (!mch_windows95()) 1424 if (!mch_windows95())
1425 { 1425 {
1426 switch (win32_fileinfo(fname, &bhfi)) 1426 switch (win32_fileinfo((char_u *)fname, &bhfi))
1427 { 1427 {
1428 case FILEINFO_ENC_FAIL: /* enc_to_utf16() failed */ 1428 case FILEINFO_ENC_FAIL: /* enc_to_utf16() failed */
1429 case FILEINFO_READ_FAIL: /* CreateFile() failed */ 1429 case FILEINFO_READ_FAIL: /* CreateFile() failed */
1430 if (p_csverbose) 1430 if (p_csverbose)
1431 { 1431 {
1457 if (csinfo[j].fname != NULL 1457 if (csinfo[j].fname != NULL
1458 #if defined(UNIX) 1458 #if defined(UNIX)
1459 && csinfo[j].st_dev == sb->st_dev && csinfo[j].st_ino == sb->st_ino 1459 && csinfo[j].st_dev == sb->st_dev && csinfo[j].st_ino == sb->st_ino
1460 #else 1460 #else
1461 /* compare pathnames first */ 1461 /* compare pathnames first */
1462 && ((fullpathcmp(csinfo[j].fname, fname, FALSE) & FPC_SAME) 1462 && ((fullpathcmp((char_u *)csinfo[j].fname,
1463 (char_u *)fname, FALSE) & FPC_SAME)
1463 /* if not Windows 9x, test index file attributes too */ 1464 /* if not Windows 9x, test index file attributes too */
1464 || (!mch_windows95() 1465 || (!mch_windows95()
1465 && csinfo[j].nVolume == bhfi.dwVolumeSerialNumber 1466 && csinfo[j].nVolume == bhfi.dwVolumeSerialNumber
1466 && csinfo[j].nIndexHigh == bhfi.nFileIndexHigh 1467 && csinfo[j].nIndexHigh == bhfi.nFileIndexHigh
1467 && csinfo[j].nIndexLow == bhfi.nFileIndexLow)) 1468 && csinfo[j].nIndexLow == bhfi.nFileIndexLow))