1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1243
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.1243 (after 8.1.1241)
Problem: Compiler warnings for incomplete switch statement. (Tony
Mechelynck)
Solution: Add ADDR_QUICKFIX to the list.
Files: src/ex_docmd.c
*** ../vim-8.1.1242/src/ex_docmd.c 2019-05-01 18:08:38.267237229 +0200
--- src/ex_docmd.c 2019-05-01 21:41:39.121052508 +0200
***************
*** 2228,2240 ****
else
ea.line2 = ARGCOUNT;
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
ea.line2 = qf_get_size(&ea);
if (ea.line2 == 0)
ea.line2 = 1;
- break;
#endif
case ADDR_NONE:
iemsg(_("INTERNAL: Cannot use DFLALL with ADDR_NONE"));
break;
--- 2228,2240 ----
else
ea.line2 = ARGCOUNT;
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
ea.line2 = qf_get_size(&ea);
if (ea.line2 == 0)
ea.line2 = 1;
#endif
+ break;
case ADDR_NONE:
iemsg(_("INTERNAL: Cannot use DFLALL with ADDR_NONE"));
break;
***************
*** 2906,2916 ****
case ADDR_TABS_RELATIVE:
eap->line2 = 1;
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
eap->line2 = qf_get_cur_valid_idx(eap);
- break;
#endif
case ADDR_NONE:
// Will give an error later if a range is found.
break;
--- 2906,2916 ----
case ADDR_TABS_RELATIVE:
eap->line2 = 1;
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
eap->line2 = qf_get_cur_valid_idx(eap);
#endif
+ break;
case ADDR_NONE:
// Will give an error later if a range is found.
break;
***************
*** 2979,2992 ****
eap->line2 = ARGCOUNT;
}
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
eap->line1 = 1;
eap->line2 = qf_get_size(eap);
if (eap->line2 == 0)
eap->line2 = 1;
- break;
#endif
case ADDR_NONE:
// Will give an error later if a range is found.
break;
--- 2979,2992 ----
eap->line2 = ARGCOUNT;
}
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
eap->line1 = 1;
eap->line2 = qf_get_size(eap);
if (eap->line2 == 0)
eap->line2 = 1;
#endif
+ break;
case ADDR_NONE:
// Will give an error later if a range is found.
break;
***************
*** 4271,4281 ****
cmd = NULL;
goto error;
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
lnum = qf_get_cur_valid_idx(eap);
- break;
#endif
}
break;
--- 4271,4281 ----
cmd = NULL;
goto error;
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
lnum = qf_get_cur_valid_idx(eap);
#endif
+ break;
}
break;
***************
*** 4315,4327 ****
cmd = NULL;
goto error;
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
lnum = qf_get_size(eap);
if (lnum == 0)
lnum = 1;
- break;
#endif
}
break;
--- 4315,4327 ----
cmd = NULL;
goto error;
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
lnum = qf_get_size(eap);
if (lnum == 0)
lnum = 1;
#endif
+ break;
}
break;
***************
*** 4500,4510 ****
case ADDR_TABS_RELATIVE:
lnum = 1;
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
lnum = qf_get_cur_valid_idx(eap);
- break;
#endif
case ADDR_NONE:
break;
}
--- 4500,4510 ----
case ADDR_TABS_RELATIVE:
lnum = 1;
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
lnum = qf_get_cur_valid_idx(eap);
#endif
+ break;
case ADDR_NONE:
break;
}
***************
*** 4661,4672 ****
case ADDR_OTHER:
// Any range is OK.
break;
- #ifdef FEAT_QUICKFIX
case ADDR_QUICKFIX:
if (eap->line2 != 1 && eap->line2 > qf_get_size(eap))
return _(e_invrange);
- break;
#endif
case ADDR_NONE:
// Will give an error elsewhere.
break;
--- 4661,4672 ----
case ADDR_OTHER:
// Any range is OK.
break;
case ADDR_QUICKFIX:
+ #ifdef FEAT_QUICKFIX
if (eap->line2 != 1 && eap->line2 > qf_get_size(eap))
return _(e_invrange);
#endif
+ break;
case ADDR_NONE:
// Will give an error elsewhere.
break;
*** ../vim-8.1.1242/src/version.c 2019-05-01 20:30:19.598426336 +0200
--- src/version.c 2019-05-01 21:43:30.252314911 +0200
***************
*** 769,770 ****
--- 769,772 ----
{ /* Add new patch number below this line */
+ /**/
+ 1243,
/**/
--
Two cows are standing together in a field. One asks the other:
"So what do you think about this Mad Cow Disease?"
The other replies: "That doesn't concern me. I'm a helicopter."
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|