]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.038
- now it works...
[packages/vim.git] / 6.2.038
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.038 (extra)
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.2.038 (extra)
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
14
15
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
18 ***************
19 *** 6333,6339 ****
20   {
21   #ifdef FEAT_CLIENTSERVER
22       var               v;
23 !     char_u    *s;
24   # ifdef WIN32
25       int               n = 0;
26   # endif
27 --- 6354,6360 ----
28   {
29   #ifdef FEAT_CLIENTSERVER
30       var               v;
31 !     char_u    *s = NULL;
32   # ifdef WIN32
33       int               n = 0;
34   # endif
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
37 ***************
38 *** 242,248 ****
39         {"gettext", (FARPROC*)&dyn_libintl_gettext},
40         {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
41         {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
42 !       NULL, NULL
43       };
44   
45       /* No need to initialize twice. */
46 --- 242,248 ----
47         {"gettext", (FARPROC*)&dyn_libintl_gettext},
48         {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
49         {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
50 !       {NULL, NULL}
51       };
52   
53       /* No need to initialize twice. */
54 ***************
55 *** 1213,1220 ****
56   
57   #ifdef FEAT_CLIENTSERVER
58         (void)WaitForChar(-1L);
59 !       if (input_available() || g_nMouseClick != -1)
60             return 0;
61   #endif
62         if (ReadConsoleInput(g_hConIn, &ir, 1, &cRecords) == 0)
63         {
64 --- 1213,1224 ----
65   
66   #ifdef FEAT_CLIENTSERVER
67         (void)WaitForChar(-1L);
68 !       if (input_available())
69             return 0;
70 + # ifdef FEAT_MOUSE
71 +       if (g_nMouseClick != -1)
72 +           return 0;
73 + # endif
74   #endif
75         if (ReadConsoleInput(g_hConIn, &ir, 1, &cRecords) == 0)
76         {
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
79 ***************
80 *** 1571,1577 ****
81       static WCHAR *unicodebuf = NULL;
82       static int   *unicodepdy = NULL;
83       int               unibuflen = 0;
84 !     int               n;
85   #endif
86       HPEN      hpen, old_pen;
87       int               y;
88 --- 1571,1577 ----
89       static WCHAR *unicodebuf = NULL;
90       static int   *unicodepdy = NULL;
91       int               unibuflen = 0;
92 !     int               n = 0;
93   #endif
94       HPEN      hpen, old_pen;
95       int               y;
96 ***************
97 *** 2248,2254 ****
98       int               dlgwidth = 0;
99       int               dlgheight;
100       int               editboxheight;
101 !     int               horizWidth;
102       int               msgheight;
103       char_u    *pstart;
104       char_u    *pend;
105 --- 2248,2254 ----
106       int               dlgwidth = 0;
107       int               dlgheight;
108       int               editboxheight;
109 !     int               horizWidth = 0;
110       int               msgheight;
111       char_u    *pstart;
112       char_u    *pend;
113 ***************
114 *** 2498,2504 ****
115         buttonYpos += editboxheight;
116   
117       pstart = tbuffer;
118 !     horizWidth = (dlgwidth - horizWidth) / 2; /* Now it's X offset */
119       for (i = 0; i < numButtons; i++)
120       {
121         /* get end of this button. */
122 --- 2498,2505 ----
123         buttonYpos += editboxheight;
124   
125       pstart = tbuffer;
126 !     if (!vertical)
127 !       horizWidth = (dlgwidth - horizWidth) / 2;       /* Now it's X offset */
128       for (i = 0; i < numButtons; i++)
129       {
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
133 ***************
134 *** 20,26 ****
135   #include "dosinst.h"
136   
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; }
139   
140   int   has_vim = 0;            /* installable vim.exe exists */
141   int   has_gvim = 0;           /* installable gvim.exe exists */
142 --- 20,26 ----
143   #include "dosinst.h"
144   
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; }
147   
148   int   has_vim = 0;            /* installable vim.exe exists */
149   int   has_gvim = 0;           /* installable gvim.exe exists */
150 ***************
151 *** 1492,1498 ****
152       }
153       else
154       {
155 !       printf("CoCreateInstance Error - hres = %08x\n", hres);
156         return FAIL;
157       }
158   
159 --- 1492,1498 ----
160       }
161       else
162       {
163 !       printf("CoCreateInstance Error - hres = %08x\n", (int)hres);
164         return FAIL;
165       }
166   
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
169 ***************
170 *** 632,633 ****
171 --- 632,635 ----
172   {   /* Add new patch number below this line */
173 + /**/
174 +     38,
175   /**/
176
177 -- 
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 
181
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  ///
This page took 0.437244 seconds and 3 git commands to generate.