2 Subject: Patch 6.2.466 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: Compiling with Borland C fails, and an un/signed warning.
12 Solution: Redefine wcsicmp() to wcscmpi() and add type casts. (Yasuhiro
17 *** ../vim-6.2.465/src/os_win32.c Fri Apr 9 19:50:59 2004
18 --- src/os_win32.c Mon Apr 12 15:33:59 2004
22 PFNGCKLN s_pfnGetConsoleKeyboardLayoutName = NULL;
25 + #if defined(__BORLANDC__)
26 + /* Strangely Borland uses a non-standard name. */
27 + # define wcsicmp(a, b) wcscmpi((a), (b))
31 /* Win32 Console handles for input and output */
34 /* Copy block of bytes at a time. Abort when something goes wrong. */
35 for (done = 0; done < len; done += written)
37 ! todo = len - done > sizeof(buf) ? sizeof(buf) : len - done;
38 if (!BackupRead(sh, (LPBYTE)buf, todo, &readcnt,
39 FALSE, FALSE, context)
42 /* Copy block of bytes at a time. Abort when something goes wrong. */
43 for (done = 0; done < len; done += written)
45 ! /* (size_t) cast for Borland C 5.5 */
46 ! todo = (size_t)(len - done) > sizeof(buf) ? sizeof(buf)
47 ! : (size_t)(len - done);
48 if (!BackupRead(sh, (LPBYTE)buf, todo, &readcnt,
49 FALSE, FALSE, context)
51 *** ../vim-6.2.465/src/version.c Mon Apr 12 15:41:18 2004
52 --- src/version.c Mon Apr 12 15:44:02 2004
56 { /* Add new patch number below this line */
62 Advice to worms: Sleep late.
64 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
65 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
66 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
67 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///