2 Subject: Patch 6.2.038 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Warning messages when using the MingW compiler. (Bill McCarthy)
12 Solution: Initialize variables, add parenthesis.
13 Files: src/eval.c, src/os_win32.c, src/gui_w32.c, src/dosinst.c
16 *** ../vim-6.2.037/src/eval.c Fri May 30 21:11:19 2003
17 --- src/eval.c Thu Jun 26 22:06:05 2003
21 #ifdef FEAT_CLIENTSERVER
29 #ifdef FEAT_CLIENTSERVER
35 *** ../vim-6.2.037/src/os_win32.c Sat May 17 16:27:03 2003
36 --- src/os_win32.c Wed Jul 9 01:45:05 2003
39 {"gettext", (FARPROC*)&dyn_libintl_gettext},
40 {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
41 {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
45 /* No need to initialize twice. */
47 {"gettext", (FARPROC*)&dyn_libintl_gettext},
48 {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
49 {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
53 /* No need to initialize twice. */
57 #ifdef FEAT_CLIENTSERVER
58 (void)WaitForChar(-1L);
59 ! if (input_available() || g_nMouseClick != -1)
62 if (ReadConsoleInput(g_hConIn, &ir, 1, &cRecords) == 0)
66 #ifdef FEAT_CLIENTSERVER
67 (void)WaitForChar(-1L);
68 ! if (input_available())
71 + if (g_nMouseClick != -1)
75 if (ReadConsoleInput(g_hConIn, &ir, 1, &cRecords) == 0)
77 *** ../vim-6.2.037/src/gui_w32.c Thu Jul 24 21:08:45 2003
78 --- src/gui_w32.c Sun Jun 22 17:13:50 2003
81 static WCHAR *unicodebuf = NULL;
82 static int *unicodepdy = NULL;
89 static WCHAR *unicodebuf = NULL;
90 static int *unicodepdy = NULL;
109 ! int horizWidth = 0;
115 buttonYpos += editboxheight;
118 ! horizWidth = (dlgwidth - horizWidth) / 2; /* Now it's X offset */
119 for (i = 0; i < numButtons; i++)
121 /* get end of this button. */
123 buttonYpos += editboxheight;
127 ! horizWidth = (dlgwidth - horizWidth) / 2; /* Now it's X offset */
128 for (i = 0; i < numButtons; i++)
130 /* get end of this button. */
131 *** ../vim-6.2.037/src/dosinst.c Tue May 13 20:45:28 2003
132 --- src/dosinst.c Sun Jun 22 17:15:59 2003
137 /* Macro to do an error check I was typing over and over */
138 ! #define CHECK_REG_ERROR(code) if (code != ERROR_SUCCESS) { printf("%d error number: %d\n", __LINE__, code); return 1; }
140 int has_vim = 0; /* installable vim.exe exists */
141 int has_gvim = 0; /* installable gvim.exe exists */
145 /* Macro to do an error check I was typing over and over */
146 ! #define CHECK_REG_ERROR(code) if (code != ERROR_SUCCESS) { printf("%ld error number: %ld\n", (long)__LINE__, (long)code); return 1; }
148 int has_vim = 0; /* installable vim.exe exists */
149 int has_gvim = 0; /* installable gvim.exe exists */
155 ! printf("CoCreateInstance Error - hres = %08x\n", hres);
163 ! printf("CoCreateInstance Error - hres = %08x\n", (int)hres);
167 *** ../vim-6.2.037/src/version.c Fri Jul 25 22:35:52 2003
168 --- src/version.c Fri Jul 25 22:40:26 2003
172 { /* Add new patch number below this line */
178 I used to wonder about the meaning of life. But I looked it
179 up in the dictionary under "L" and there it was - the meaning
180 of life. It was less than I expected. - Dogbert
182 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
183 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
184 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
185 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///