Mercurial > vim
annotate src/version.c @ 10309:88331ee68367 v8.0.0050
commit https://github.com/vim/vim/commit/01688ad545ff0809ddad5c8fa6b149dc5d67312b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 27 20:00:07 2016 +0200
patch 8.0.0050
Problem: An exiting job is detected with a large latency.
Solution: Check for pending job more often. (Ozaki Kiichi) Change the
double loop in mch_inchar() into one.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 27 Oct 2016 20:15:04 +0200 |
parents | f4798aebef67 |
children | 931422d27b69 |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
10040
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
7 | 2 * |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 * See README.txt for an overview of the Vim source code. | |
8 */ | |
9 | |
10 #include "vim.h" | |
11 | |
12 #ifdef AMIGA | |
13 # include <time.h> /* for time() */ | |
14 #endif | |
15 | |
16 /* | |
17 * Vim originated from Stevie version 3.6 (Fish disk 217) by GRWalter (Fred) | |
18 * It has been changed beyond recognition since then. | |
19 * | |
10200
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
20 * Differences between version 7.4 and 8.x can be found with ":help version8". |
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
21 * Differences between version 6.4 and 7.x can be found with ":help version7". |
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
22 * Differences between version 5.8 and 6.x can be found with ":help version6". |
7 | 23 * Differences between version 4.x and 5.x can be found with ":help version5". |
24 * Differences between version 3.0 and 4.x can be found with ":help version4". | |
25 * All the remarks about older versions have been removed, they are not very | |
26 * interesting. | |
27 */ | |
28 | |
29 #include "version.h" | |
30 | |
378 | 31 char *Version = VIM_VERSION_SHORT; |
32 static char *mediumVersion = VIM_VERSION_MEDIUM; | |
7 | 33 |
34 #if defined(HAVE_DATE_TIME) || defined(PROTO) | |
35 # if (defined(VMS) && defined(VAXC)) || defined(PROTO) | |
36 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) | |
37 + sizeof(__TIME__) + 3]; | |
4147 | 38 |
7 | 39 void |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
40 make_version(void) |
7 | 41 { |
42 /* | |
43 * Construct the long version string. Necessary because | |
44 * VAX C can't catenate strings in the preprocessor. | |
45 */ | |
46 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
47 strcat(longVersion, __DATE__); | |
48 strcat(longVersion, " "); | |
49 strcat(longVersion, __TIME__); | |
50 strcat(longVersion, ")"); | |
51 } | |
52 # else | |
53 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
54 # endif | |
55 #else | |
56 char *longVersion = VIM_VERSION_LONG; | |
57 #endif | |
58 | |
7805
0b6c37dd858d
commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077
Christian Brabandt <cb@256bit.org>
parents:
7803
diff
changeset
|
59 static void list_features(void); |
0b6c37dd858d
commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077
Christian Brabandt <cb@256bit.org>
parents:
7803
diff
changeset
|
60 static void version_msg(char *s); |
7 | 61 |
62 static char *(features[]) = | |
63 { | |
5316 | 64 #ifdef HAVE_ACL |
65 "+acl", | |
66 #else | |
67 "-acl", | |
68 #endif | |
7 | 69 #ifdef AMIGA /* only for Amiga systems */ |
70 # ifdef FEAT_ARP | |
71 "+ARP", | |
72 # else | |
73 "-ARP", | |
74 # endif | |
75 #endif | |
76 #ifdef FEAT_ARABIC | |
77 "+arabic", | |
78 #else | |
79 "-arabic", | |
80 #endif | |
81 #ifdef FEAT_AUTOCMD | |
82 "+autocmd", | |
83 #else | |
84 "-autocmd", | |
85 #endif | |
86 #ifdef FEAT_BEVAL | |
87 "+balloon_eval", | |
88 #else | |
89 "-balloon_eval", | |
90 #endif | |
91 #ifdef FEAT_BROWSE | |
92 "+browse", | |
93 #else | |
94 "-browse", | |
95 #endif | |
96 #ifdef NO_BUILTIN_TCAPS | |
97 "-builtin_terms", | |
98 #endif | |
99 #ifdef SOME_BUILTIN_TCAPS | |
100 "+builtin_terms", | |
101 #endif | |
102 #ifdef ALL_BUILTIN_TCAPS | |
103 "++builtin_terms", | |
104 #endif | |
105 #ifdef FEAT_BYTEOFF | |
106 "+byte_offset", | |
107 #else | |
108 "-byte_offset", | |
109 #endif | |
8493
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8491
diff
changeset
|
110 #ifdef FEAT_JOB_CHANNEL |
7759
39be49fd70d9
commit https://github.com/vim/vim/commit/5aec481097278d7d4e6559d9db2b9c3b8aa0dd5d
Christian Brabandt <cb@256bit.org>
parents:
7757
diff
changeset
|
111 "+channel", |
39be49fd70d9
commit https://github.com/vim/vim/commit/5aec481097278d7d4e6559d9db2b9c3b8aa0dd5d
Christian Brabandt <cb@256bit.org>
parents:
7757
diff
changeset
|
112 #else |
39be49fd70d9
commit https://github.com/vim/vim/commit/5aec481097278d7d4e6559d9db2b9c3b8aa0dd5d
Christian Brabandt <cb@256bit.org>
parents:
7757
diff
changeset
|
113 "-channel", |
39be49fd70d9
commit https://github.com/vim/vim/commit/5aec481097278d7d4e6559d9db2b9c3b8aa0dd5d
Christian Brabandt <cb@256bit.org>
parents:
7757
diff
changeset
|
114 #endif |
7 | 115 #ifdef FEAT_CINDENT |
116 "+cindent", | |
117 #else | |
118 "-cindent", | |
119 #endif | |
120 #ifdef FEAT_CLIENTSERVER | |
121 "+clientserver", | |
122 #else | |
123 "-clientserver", | |
124 #endif | |
125 #ifdef FEAT_CLIPBOARD | |
126 "+clipboard", | |
127 #else | |
128 "-clipboard", | |
129 #endif | |
130 #ifdef FEAT_CMDL_COMPL | |
131 "+cmdline_compl", | |
132 #else | |
133 "-cmdline_compl", | |
134 #endif | |
135 #ifdef FEAT_CMDHIST | |
136 "+cmdline_hist", | |
137 #else | |
138 "-cmdline_hist", | |
139 #endif | |
140 #ifdef FEAT_CMDL_INFO | |
141 "+cmdline_info", | |
142 #else | |
143 "-cmdline_info", | |
144 #endif | |
145 #ifdef FEAT_COMMENTS | |
146 "+comments", | |
147 #else | |
148 "-comments", | |
149 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
150 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
151 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
152 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
153 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
154 #endif |
7 | 155 #ifdef FEAT_CRYPT |
156 "+cryptv", | |
157 #else | |
158 "-cryptv", | |
159 #endif | |
160 #ifdef FEAT_CSCOPE | |
161 "+cscope", | |
162 #else | |
163 "-cscope", | |
164 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
165 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
166 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
167 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
168 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
169 #endif |
647 | 170 #ifdef CURSOR_SHAPE |
171 "+cursorshape", | |
172 #else | |
173 "-cursorshape", | |
174 #endif | |
7 | 175 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
176 "+dialog_con_gui", | |
177 #else | |
178 # if defined(FEAT_CON_DIALOG) | |
179 "+dialog_con", | |
180 # else | |
181 # if defined(FEAT_GUI_DIALOG) | |
182 "+dialog_gui", | |
183 # else | |
184 "-dialog", | |
185 # endif | |
186 # endif | |
187 #endif | |
188 #ifdef FEAT_DIFF | |
189 "+diff", | |
190 #else | |
191 "-diff", | |
192 #endif | |
193 #ifdef FEAT_DIGRAPHS | |
194 "+digraphs", | |
195 #else | |
196 "-digraphs", | |
197 #endif | |
6110 | 198 #ifdef FEAT_GUI_W32 |
199 # ifdef FEAT_DIRECTX | |
200 "+directx", | |
201 # else | |
202 "-directx", | |
203 # endif | |
204 #endif | |
7 | 205 #ifdef FEAT_DND |
206 "+dnd", | |
207 #else | |
208 "-dnd", | |
209 #endif | |
210 #ifdef EBCDIC | |
211 "+ebcdic", | |
212 #else | |
213 "-ebcdic", | |
214 #endif | |
215 #ifdef FEAT_EMACS_TAGS | |
216 "+emacs_tags", | |
217 #else | |
218 "-emacs_tags", | |
219 #endif | |
220 #ifdef FEAT_EVAL | |
221 "+eval", | |
222 #else | |
223 "-eval", | |
224 #endif | |
225 "+ex_extra", | |
226 #ifdef FEAT_SEARCH_EXTRA | |
227 "+extra_search", | |
228 #else | |
229 "-extra_search", | |
230 #endif | |
231 #ifdef FEAT_FKMAP | |
232 "+farsi", | |
233 #else | |
234 "-farsi", | |
235 #endif | |
236 #ifdef FEAT_SEARCHPATH | |
237 "+file_in_path", | |
238 #else | |
239 "-file_in_path", | |
240 #endif | |
241 #ifdef FEAT_FIND_ID | |
242 "+find_in_path", | |
243 #else | |
244 "-find_in_path", | |
245 #endif | |
1621 | 246 #ifdef FEAT_FLOAT |
247 "+float", | |
248 #else | |
249 "-float", | |
250 #endif | |
7 | 251 #ifdef FEAT_FOLDING |
252 "+folding", | |
253 #else | |
254 "-folding", | |
255 #endif | |
256 #ifdef FEAT_FOOTER | |
257 "+footer", | |
258 #else | |
259 "-footer", | |
260 #endif | |
261 /* only interesting on Unix systems */ | |
262 #if !defined(USE_SYSTEM) && defined(UNIX) | |
263 "+fork()", | |
264 #endif | |
265 #ifdef FEAT_GETTEXT | |
266 # ifdef DYNAMIC_GETTEXT | |
267 "+gettext/dyn", | |
268 # else | |
269 "+gettext", | |
270 # endif | |
271 #else | |
272 "-gettext", | |
273 #endif | |
274 #ifdef FEAT_HANGULIN | |
275 "+hangul_input", | |
276 #else | |
277 "-hangul_input", | |
278 #endif | |
279 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
280 # ifdef DYNAMIC_ICONV | |
281 "+iconv/dyn", | |
282 # else | |
283 "+iconv", | |
284 # endif | |
285 #else | |
286 "-iconv", | |
287 #endif | |
288 #ifdef FEAT_INS_EXPAND | |
289 "+insert_expand", | |
290 #else | |
291 "-insert_expand", | |
292 #endif | |
8493
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8491
diff
changeset
|
293 #ifdef FEAT_JOB_CHANNEL |
7957
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7955
diff
changeset
|
294 "+job", |
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7955
diff
changeset
|
295 #else |
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7955
diff
changeset
|
296 "-job", |
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7955
diff
changeset
|
297 #endif |
7 | 298 #ifdef FEAT_JUMPLIST |
299 "+jumplist", | |
300 #else | |
301 "-jumplist", | |
302 #endif | |
303 #ifdef FEAT_KEYMAP | |
304 "+keymap", | |
305 #else | |
306 "-keymap", | |
307 #endif | |
9690
4a7a88404076
commit https://github.com/vim/vim/commit/9532fe7fbe1b14531931e83bd9f8054efdcf7509
Christian Brabandt <cb@256bit.org>
parents:
9688
diff
changeset
|
308 #ifdef FEAT_EVAL |
4a7a88404076
commit https://github.com/vim/vim/commit/9532fe7fbe1b14531931e83bd9f8054efdcf7509
Christian Brabandt <cb@256bit.org>
parents:
9688
diff
changeset
|
309 "+lambda", |
4a7a88404076
commit https://github.com/vim/vim/commit/9532fe7fbe1b14531931e83bd9f8054efdcf7509
Christian Brabandt <cb@256bit.org>
parents:
9688
diff
changeset
|
310 #else |
4a7a88404076
commit https://github.com/vim/vim/commit/9532fe7fbe1b14531931e83bd9f8054efdcf7509
Christian Brabandt <cb@256bit.org>
parents:
9688
diff
changeset
|
311 "-lambda", |
4a7a88404076
commit https://github.com/vim/vim/commit/9532fe7fbe1b14531931e83bd9f8054efdcf7509
Christian Brabandt <cb@256bit.org>
parents:
9688
diff
changeset
|
312 #endif |
7 | 313 #ifdef FEAT_LANGMAP |
314 "+langmap", | |
315 #else | |
316 "-langmap", | |
317 #endif | |
318 #ifdef FEAT_LIBCALL | |
319 "+libcall", | |
320 #else | |
321 "-libcall", | |
322 #endif | |
323 #ifdef FEAT_LINEBREAK | |
324 "+linebreak", | |
325 #else | |
326 "-linebreak", | |
327 #endif | |
328 #ifdef FEAT_LISP | |
329 "+lispindent", | |
330 #else | |
331 "-lispindent", | |
332 #endif | |
333 #ifdef FEAT_LISTCMDS | |
334 "+listcmds", | |
335 #else | |
336 "-listcmds", | |
337 #endif | |
338 #ifdef FEAT_LOCALMAP | |
339 "+localmap", | |
340 #else | |
341 "-localmap", | |
342 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
343 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
344 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
345 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
346 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
347 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
348 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
349 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
350 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
351 #endif |
7 | 352 #ifdef FEAT_MENU |
353 "+menu", | |
354 #else | |
355 "-menu", | |
356 #endif | |
357 #ifdef FEAT_SESSION | |
358 "+mksession", | |
359 #else | |
360 "-mksession", | |
361 #endif | |
362 #ifdef FEAT_MODIFY_FNAME | |
363 "+modify_fname", | |
364 #else | |
365 "-modify_fname", | |
366 #endif | |
367 #ifdef FEAT_MOUSE | |
368 "+mouse", | |
369 # ifdef FEAT_MOUSESHAPE | |
370 "+mouseshape", | |
371 # else | |
372 "-mouseshape", | |
373 # endif | |
374 # else | |
375 "-mouse", | |
376 #endif | |
3898 | 377 |
7 | 378 #if defined(UNIX) || defined(VMS) |
379 # ifdef FEAT_MOUSE_DEC | |
380 "+mouse_dec", | |
381 # else | |
382 "-mouse_dec", | |
383 # endif | |
384 # ifdef FEAT_MOUSE_GPM | |
385 "+mouse_gpm", | |
386 # else | |
387 "-mouse_gpm", | |
388 # endif | |
389 # ifdef FEAT_MOUSE_JSB | |
390 "+mouse_jsbterm", | |
391 # else | |
392 "-mouse_jsbterm", | |
393 # endif | |
394 # ifdef FEAT_MOUSE_NET | |
395 "+mouse_netterm", | |
396 # else | |
397 "-mouse_netterm", | |
398 # endif | |
399 #endif | |
3898 | 400 |
7 | 401 #ifdef __QNX__ |
402 # ifdef FEAT_MOUSE_PTERM | |
403 "+mouse_pterm", | |
404 # else | |
405 "-mouse_pterm", | |
406 # endif | |
407 #endif | |
3898 | 408 |
409 #if defined(UNIX) || defined(VMS) | |
410 # ifdef FEAT_MOUSE_SGR | |
411 "+mouse_sgr", | |
412 # else | |
413 "-mouse_sgr", | |
414 # endif | |
415 # ifdef FEAT_SYSMOUSE | |
416 "+mouse_sysmouse", | |
417 # else | |
418 "-mouse_sysmouse", | |
419 # endif | |
420 # ifdef FEAT_MOUSE_URXVT | |
421 "+mouse_urxvt", | |
422 # else | |
423 "-mouse_urxvt", | |
424 # endif | |
425 # ifdef FEAT_MOUSE_XTERM | |
426 "+mouse_xterm", | |
427 # else | |
428 "-mouse_xterm", | |
429 # endif | |
430 #endif | |
431 | |
7 | 432 #ifdef FEAT_MBYTE_IME |
433 # ifdef DYNAMIC_IME | |
434 "+multi_byte_ime/dyn", | |
435 # else | |
436 "+multi_byte_ime", | |
437 # endif | |
438 #else | |
439 # ifdef FEAT_MBYTE | |
440 "+multi_byte", | |
441 # else | |
442 "-multi_byte", | |
443 # endif | |
444 #endif | |
445 #ifdef FEAT_MULTI_LANG | |
446 "+multi_lang", | |
447 #else | |
448 "-multi_lang", | |
449 #endif | |
14 | 450 #ifdef FEAT_MZSCHEME |
132 | 451 # ifdef DYNAMIC_MZSCHEME |
452 "+mzscheme/dyn", | |
453 # else | |
14 | 454 "+mzscheme", |
132 | 455 # endif |
14 | 456 #else |
457 "-mzscheme", | |
458 #endif | |
7 | 459 #ifdef FEAT_NETBEANS_INTG |
460 "+netbeans_intg", | |
461 #else | |
462 "-netbeans_intg", | |
463 #endif | |
9389
32e34e574716
commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents:
9387
diff
changeset
|
464 #ifdef FEAT_NUM64 |
32e34e574716
commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents:
9387
diff
changeset
|
465 "+num64", |
32e34e574716
commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents:
9387
diff
changeset
|
466 #else |
32e34e574716
commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents:
9387
diff
changeset
|
467 "-num64", |
32e34e574716
commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents:
9387
diff
changeset
|
468 #endif |
7 | 469 #ifdef FEAT_GUI_W32 |
470 # ifdef FEAT_OLE | |
471 "+ole", | |
472 # else | |
473 "-ole", | |
474 # endif | |
475 #endif | |
8182
95d59081580f
commit https://github.com/vim/vim/commit/f6fee0e2d4341c0c2f5339c1268e5877fafd07cf
Christian Brabandt <cb@256bit.org>
parents:
8180
diff
changeset
|
476 "+packages", |
7 | 477 #ifdef FEAT_PATH_EXTRA |
478 "+path_extra", | |
479 #else | |
480 "-path_extra", | |
481 #endif | |
482 #ifdef FEAT_PERL | |
483 # ifdef DYNAMIC_PERL | |
484 "+perl/dyn", | |
485 # else | |
486 "+perl", | |
487 # endif | |
488 #else | |
489 "-perl", | |
490 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
491 #ifdef FEAT_PERSISTENT_UNDO |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
492 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
493 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
494 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
495 #endif |
7 | 496 #ifdef FEAT_PRINTER |
497 # ifdef FEAT_POSTSCRIPT | |
498 "+postscript", | |
499 # else | |
500 "-postscript", | |
501 # endif | |
502 "+printer", | |
503 #else | |
504 "-printer", | |
505 #endif | |
170 | 506 #ifdef FEAT_PROFILE |
507 "+profile", | |
508 #else | |
509 "-profile", | |
510 #endif | |
7 | 511 #ifdef FEAT_PYTHON |
512 # ifdef DYNAMIC_PYTHON | |
513 "+python/dyn", | |
514 # else | |
515 "+python", | |
516 # endif | |
517 #else | |
518 "-python", | |
519 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
520 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
521 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
522 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
523 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
524 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
525 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
526 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
527 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
528 #endif |
7 | 529 #ifdef FEAT_QUICKFIX |
530 "+quickfix", | |
531 #else | |
532 "-quickfix", | |
533 #endif | |
857 | 534 #ifdef FEAT_RELTIME |
535 "+reltime", | |
536 #else | |
537 "-reltime", | |
538 #endif | |
7 | 539 #ifdef FEAT_RIGHTLEFT |
540 "+rightleft", | |
541 #else | |
542 "-rightleft", | |
543 #endif | |
544 #ifdef FEAT_RUBY | |
545 # ifdef DYNAMIC_RUBY | |
546 "+ruby/dyn", | |
547 # else | |
548 "+ruby", | |
549 # endif | |
550 #else | |
551 "-ruby", | |
552 #endif | |
553 #ifdef FEAT_SCROLLBIND | |
554 "+scrollbind", | |
555 #else | |
556 "-scrollbind", | |
557 #endif | |
558 #ifdef FEAT_SIGNS | |
559 "+signs", | |
560 #else | |
561 "-signs", | |
562 #endif | |
563 #ifdef FEAT_SMARTINDENT | |
564 "+smartindent", | |
565 #else | |
566 "-smartindent", | |
567 #endif | |
1989 | 568 #ifdef STARTUPTIME |
569 "+startuptime", | |
570 #else | |
571 "-startuptime", | |
572 #endif | |
7 | 573 #ifdef FEAT_STL_OPT |
574 "+statusline", | |
575 #else | |
576 "-statusline", | |
577 #endif | |
578 #ifdef FEAT_SUN_WORKSHOP | |
579 "+sun_workshop", | |
580 #else | |
581 "-sun_workshop", | |
582 #endif | |
583 #ifdef FEAT_SYN_HL | |
584 "+syntax", | |
585 #else | |
586 "-syntax", | |
587 #endif | |
588 /* only interesting on Unix systems */ | |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9534
diff
changeset
|
589 #if defined(USE_SYSTEM) && defined(UNIX) |
7 | 590 "+system()", |
591 #endif | |
592 #ifdef FEAT_TAG_BINS | |
593 "+tag_binary", | |
594 #else | |
595 "-tag_binary", | |
596 #endif | |
597 #ifdef FEAT_TAG_OLDSTATIC | |
598 "+tag_old_static", | |
599 #else | |
600 "-tag_old_static", | |
601 #endif | |
602 #ifdef FEAT_TAG_ANYWHITE | |
603 "+tag_any_white", | |
604 #else | |
605 "-tag_any_white", | |
606 #endif | |
607 #ifdef FEAT_TCL | |
608 # ifdef DYNAMIC_TCL | |
609 "+tcl/dyn", | |
610 # else | |
611 "+tcl", | |
612 # endif | |
613 #else | |
614 "-tcl", | |
615 #endif | |
9027
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
9025
diff
changeset
|
616 #ifdef FEAT_TERMGUICOLORS |
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
9025
diff
changeset
|
617 "+termguicolors", |
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
9025
diff
changeset
|
618 #else |
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
9025
diff
changeset
|
619 "-termguicolors", |
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
9025
diff
changeset
|
620 #endif |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9534
diff
changeset
|
621 #if defined(UNIX) |
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9534
diff
changeset
|
622 /* only Unix can have terminfo instead of termcap */ |
7 | 623 # ifdef TERMINFO |
624 "+terminfo", | |
625 # else | |
626 "-terminfo", | |
627 # endif | |
628 #else /* unix always includes termcap support */ | |
629 # ifdef HAVE_TGETENT | |
630 "+tgetent", | |
631 # else | |
632 "-tgetent", | |
633 # endif | |
634 #endif | |
635 #ifdef FEAT_TERMRESPONSE | |
636 "+termresponse", | |
637 #else | |
638 "-termresponse", | |
639 #endif | |
640 #ifdef FEAT_TEXTOBJ | |
641 "+textobjects", | |
642 #else | |
643 "-textobjects", | |
644 #endif | |
8577
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8575
diff
changeset
|
645 #ifdef FEAT_TIMERS |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8575
diff
changeset
|
646 "+timers", |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8575
diff
changeset
|
647 #else |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8575
diff
changeset
|
648 "-timers", |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8575
diff
changeset
|
649 #endif |
7 | 650 #ifdef FEAT_TITLE |
651 "+title", | |
652 #else | |
653 "-title", | |
654 #endif | |
655 #ifdef FEAT_TOOLBAR | |
656 "+toolbar", | |
657 #else | |
658 "-toolbar", | |
659 #endif | |
660 #ifdef FEAT_USR_CMDS | |
661 "+user_commands", | |
662 #else | |
663 "-user_commands", | |
664 #endif | |
8643
24b43dd167eb
commit https://github.com/vim/vim/commit/44a2f923c00f1384c9ecde12fb5b4711bc20702e
Christian Brabandt <cb@256bit.org>
parents:
8641
diff
changeset
|
665 #ifdef FEAT_WINDOWS |
7 | 666 "+vertsplit", |
667 #else | |
668 "-vertsplit", | |
669 #endif | |
670 #ifdef FEAT_VIRTUALEDIT | |
671 "+virtualedit", | |
672 #else | |
673 "-virtualedit", | |
674 #endif | |
675 "+visual", | |
5735 | 676 #ifdef FEAT_VISUALEXTRA |
7 | 677 "+visualextra", |
5735 | 678 #else |
7 | 679 "-visualextra", |
680 #endif | |
681 #ifdef FEAT_VIMINFO | |
682 "+viminfo", | |
683 #else | |
684 "-viminfo", | |
685 #endif | |
686 #ifdef FEAT_VREPLACE | |
687 "+vreplace", | |
688 #else | |
689 "-vreplace", | |
690 #endif | |
691 #ifdef FEAT_WILDIGN | |
692 "+wildignore", | |
693 #else | |
694 "-wildignore", | |
695 #endif | |
696 #ifdef FEAT_WILDMENU | |
697 "+wildmenu", | |
698 #else | |
699 "-wildmenu", | |
700 #endif | |
701 #ifdef FEAT_WINDOWS | |
702 "+windows", | |
703 #else | |
704 "-windows", | |
705 #endif | |
706 #ifdef FEAT_WRITEBACKUP | |
707 "+writebackup", | |
708 #else | |
709 "-writebackup", | |
710 #endif | |
711 #if defined(UNIX) || defined(VMS) | |
712 # ifdef FEAT_X11 | |
713 "+X11", | |
714 # else | |
715 "-X11", | |
716 # endif | |
717 #endif | |
718 #ifdef FEAT_XFONTSET | |
719 "+xfontset", | |
720 #else | |
721 "-xfontset", | |
722 #endif | |
723 #ifdef FEAT_XIM | |
724 "+xim", | |
725 #else | |
726 "-xim", | |
727 #endif | |
9865
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
728 #ifdef WIN3264 |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
729 # ifdef FEAT_XPM_W32 |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
730 "+xpm_w32", |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
731 # else |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
732 "-xpm_w32", |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
733 # endif |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
734 #else |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
735 # ifdef HAVE_XPM |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
736 "+xpm", |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
737 # else |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
738 "-xpm", |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
739 # endif |
649a6a3fa714
commit https://github.com/vim/vim/commit/d58b0f982ad758c59abe47627216a15497e9c3c1
Christian Brabandt <cb@256bit.org>
parents:
9863
diff
changeset
|
740 #endif |
7 | 741 #if defined(UNIX) || defined(VMS) |
742 # ifdef USE_XSMP_INTERACT | |
743 "+xsmp_interact", | |
744 # else | |
745 # ifdef USE_XSMP | |
746 "+xsmp", | |
747 # else | |
748 "-xsmp", | |
749 # endif | |
750 # endif | |
751 # ifdef FEAT_XCLIPBOARD | |
752 "+xterm_clipboard", | |
753 # else | |
754 "-xterm_clipboard", | |
755 # endif | |
756 #endif | |
757 #ifdef FEAT_XTERM_SAVE | |
758 "+xterm_save", | |
759 #else | |
760 "-xterm_save", | |
761 #endif | |
762 NULL | |
763 }; | |
764 | |
765 static int included_patches[] = | |
766 { /* Add new patch number below this line */ | |
767 /**/ | |
10309
88331ee68367
commit https://github.com/vim/vim/commit/01688ad545ff0809ddad5c8fa6b149dc5d67312b
Christian Brabandt <cb@256bit.org>
parents:
10307
diff
changeset
|
768 50, |
88331ee68367
commit https://github.com/vim/vim/commit/01688ad545ff0809ddad5c8fa6b149dc5d67312b
Christian Brabandt <cb@256bit.org>
parents:
10307
diff
changeset
|
769 /**/ |
10307
f4798aebef67
commit https://github.com/vim/vim/commit/2f97912800e86a296c001832bbbf2fc425f1e533
Christian Brabandt <cb@256bit.org>
parents:
10304
diff
changeset
|
770 49, |
f4798aebef67
commit https://github.com/vim/vim/commit/2f97912800e86a296c001832bbbf2fc425f1e533
Christian Brabandt <cb@256bit.org>
parents:
10304
diff
changeset
|
771 /**/ |
10304
179794481db4
commit https://github.com/vim/vim/commit/a350bab042605422304161df462b173ffa31dcb9
Christian Brabandt <cb@256bit.org>
parents:
10302
diff
changeset
|
772 48, |
179794481db4
commit https://github.com/vim/vim/commit/a350bab042605422304161df462b173ffa31dcb9
Christian Brabandt <cb@256bit.org>
parents:
10302
diff
changeset
|
773 /**/ |
10302
210af8588e8a
commit https://github.com/vim/vim/commit/50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0
Christian Brabandt <cb@256bit.org>
parents:
10299
diff
changeset
|
774 47, |
210af8588e8a
commit https://github.com/vim/vim/commit/50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0
Christian Brabandt <cb@256bit.org>
parents:
10299
diff
changeset
|
775 /**/ |
10299
7b2f95633e28
commit https://github.com/vim/vim/commit/7756e7465d627ff9cd01e59625484a8c302ef853
Christian Brabandt <cb@256bit.org>
parents:
10297
diff
changeset
|
776 46, |
7b2f95633e28
commit https://github.com/vim/vim/commit/7756e7465d627ff9cd01e59625484a8c302ef853
Christian Brabandt <cb@256bit.org>
parents:
10297
diff
changeset
|
777 /**/ |
10297
c90f4cc9c3fe
commit https://github.com/vim/vim/commit/bb09ceb95477ecc271854b3fdd8d2776eca66adf
Christian Brabandt <cb@256bit.org>
parents:
10295
diff
changeset
|
778 45, |
c90f4cc9c3fe
commit https://github.com/vim/vim/commit/bb09ceb95477ecc271854b3fdd8d2776eca66adf
Christian Brabandt <cb@256bit.org>
parents:
10295
diff
changeset
|
779 /**/ |
10295
d0b74b18e4b5
commit https://github.com/vim/vim/commit/025e3e0bafbc85cc4e365145af711edf99d0a90d
Christian Brabandt <cb@256bit.org>
parents:
10293
diff
changeset
|
780 44, |
d0b74b18e4b5
commit https://github.com/vim/vim/commit/025e3e0bafbc85cc4e365145af711edf99d0a90d
Christian Brabandt <cb@256bit.org>
parents:
10293
diff
changeset
|
781 /**/ |
10293
0bf1d211e441
commit https://github.com/vim/vim/commit/9ec7fa82a2c4f0283862ed704c2940959e6130ee
Christian Brabandt <cb@256bit.org>
parents:
10291
diff
changeset
|
782 43, |
0bf1d211e441
commit https://github.com/vim/vim/commit/9ec7fa82a2c4f0283862ed704c2940959e6130ee
Christian Brabandt <cb@256bit.org>
parents:
10291
diff
changeset
|
783 /**/ |
10291
d9bd03a0d70f
commit https://github.com/vim/vim/commit/cbd3bd6cbed5baf418b037b17ad46e339ff59174
Christian Brabandt <cb@256bit.org>
parents:
10289
diff
changeset
|
784 42, |
d9bd03a0d70f
commit https://github.com/vim/vim/commit/cbd3bd6cbed5baf418b037b17ad46e339ff59174
Christian Brabandt <cb@256bit.org>
parents:
10289
diff
changeset
|
785 /**/ |
10289
af5b6efad23f
commit https://github.com/vim/vim/commit/869e35270ecffd9024958880cb03f6f0bb01ea93
Christian Brabandt <cb@256bit.org>
parents:
10287
diff
changeset
|
786 41, |
af5b6efad23f
commit https://github.com/vim/vim/commit/869e35270ecffd9024958880cb03f6f0bb01ea93
Christian Brabandt <cb@256bit.org>
parents:
10287
diff
changeset
|
787 /**/ |
10287
1c1fcf515607
commit https://github.com/vim/vim/commit/8507747600bddfd6a68aed057840856bf5548e61
Christian Brabandt <cb@256bit.org>
parents:
10285
diff
changeset
|
788 40, |
1c1fcf515607
commit https://github.com/vim/vim/commit/8507747600bddfd6a68aed057840856bf5548e61
Christian Brabandt <cb@256bit.org>
parents:
10285
diff
changeset
|
789 /**/ |
10285
cd16ef948ad1
commit https://github.com/vim/vim/commit/156919f99afd1ac11d19d4270afbc1afb7245640
Christian Brabandt <cb@256bit.org>
parents:
10283
diff
changeset
|
790 39, |
cd16ef948ad1
commit https://github.com/vim/vim/commit/156919f99afd1ac11d19d4270afbc1afb7245640
Christian Brabandt <cb@256bit.org>
parents:
10283
diff
changeset
|
791 /**/ |
10283
146abb526e82
commit https://github.com/vim/vim/commit/ca291aec99b60fe81eaab36aa718e51421bb88d5
Christian Brabandt <cb@256bit.org>
parents:
10281
diff
changeset
|
792 38, |
146abb526e82
commit https://github.com/vim/vim/commit/ca291aec99b60fe81eaab36aa718e51421bb88d5
Christian Brabandt <cb@256bit.org>
parents:
10281
diff
changeset
|
793 /**/ |
10281
92fa8e5ef210
commit https://github.com/vim/vim/commit/0a9046fbcb33770517ab0220b8100c4494bddab2
Christian Brabandt <cb@256bit.org>
parents:
10279
diff
changeset
|
794 37, |
92fa8e5ef210
commit https://github.com/vim/vim/commit/0a9046fbcb33770517ab0220b8100c4494bddab2
Christian Brabandt <cb@256bit.org>
parents:
10279
diff
changeset
|
795 /**/ |
10279
c5c15c818bda
commit https://github.com/vim/vim/commit/97792de2762cc79cc365a8a0b858f27753179577
Christian Brabandt <cb@256bit.org>
parents:
10277
diff
changeset
|
796 36, |
c5c15c818bda
commit https://github.com/vim/vim/commit/97792de2762cc79cc365a8a0b858f27753179577
Christian Brabandt <cb@256bit.org>
parents:
10277
diff
changeset
|
797 /**/ |
10277
154d5a2e7395
commit https://github.com/vim/vim/commit/472e85970ee3a80abd824bef510df12e9cfe9e96
Christian Brabandt <cb@256bit.org>
parents:
10275
diff
changeset
|
798 35, |
154d5a2e7395
commit https://github.com/vim/vim/commit/472e85970ee3a80abd824bef510df12e9cfe9e96
Christian Brabandt <cb@256bit.org>
parents:
10275
diff
changeset
|
799 /**/ |
10275
6d8b2da002e9
commit https://github.com/vim/vim/commit/9e507ca8a3e1535e62de4bd86374b0fcd18ef5b8
Christian Brabandt <cb@256bit.org>
parents:
10273
diff
changeset
|
800 34, |
6d8b2da002e9
commit https://github.com/vim/vim/commit/9e507ca8a3e1535e62de4bd86374b0fcd18ef5b8
Christian Brabandt <cb@256bit.org>
parents:
10273
diff
changeset
|
801 /**/ |
10273
489eae19cad9
commit https://github.com/vim/vim/commit/a6c27ee6db2c328e0ab0e6d143e2a295a0bb9c9a
Christian Brabandt <cb@256bit.org>
parents:
10270
diff
changeset
|
802 33, |
489eae19cad9
commit https://github.com/vim/vim/commit/a6c27ee6db2c328e0ab0e6d143e2a295a0bb9c9a
Christian Brabandt <cb@256bit.org>
parents:
10270
diff
changeset
|
803 /**/ |
10270
e5dddd764fef
commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b
Christian Brabandt <cb@256bit.org>
parents:
10268
diff
changeset
|
804 32, |
e5dddd764fef
commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b
Christian Brabandt <cb@256bit.org>
parents:
10268
diff
changeset
|
805 /**/ |
10268
c55a7232fb48
commit https://github.com/vim/vim/commit/e8ef3a093453b73594e15462d4de50b011c8ba66
Christian Brabandt <cb@256bit.org>
parents:
10266
diff
changeset
|
806 31, |
c55a7232fb48
commit https://github.com/vim/vim/commit/e8ef3a093453b73594e15462d4de50b011c8ba66
Christian Brabandt <cb@256bit.org>
parents:
10266
diff
changeset
|
807 /**/ |
10266
e86f23a078ca
commit https://github.com/vim/vim/commit/0ba407012c63064f03f1a5677677d4da423e5a73
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
808 30, |
e86f23a078ca
commit https://github.com/vim/vim/commit/0ba407012c63064f03f1a5677677d4da423e5a73
Christian Brabandt <cb@256bit.org>
parents:
10264
diff
changeset
|
809 /**/ |
10264
c036c0f636d5
commit https://github.com/vim/vim/commit/cea912af725c54f4727a0565e31661f6b29c6bb1
Christian Brabandt <cb@256bit.org>
parents:
10262
diff
changeset
|
810 29, |
c036c0f636d5
commit https://github.com/vim/vim/commit/cea912af725c54f4727a0565e31661f6b29c6bb1
Christian Brabandt <cb@256bit.org>
parents:
10262
diff
changeset
|
811 /**/ |
10262
d69ee8806ec9
commit https://github.com/vim/vim/commit/a7c023ec88233a2db4c1f53121921e110ece8d43
Christian Brabandt <cb@256bit.org>
parents:
10259
diff
changeset
|
812 28, |
d69ee8806ec9
commit https://github.com/vim/vim/commit/a7c023ec88233a2db4c1f53121921e110ece8d43
Christian Brabandt <cb@256bit.org>
parents:
10259
diff
changeset
|
813 /**/ |
10259
a09db7a4afe0
commit https://github.com/vim/vim/commit/dc0ccaee68ca24d10050117fbec757ad33590a17
Christian Brabandt <cb@256bit.org>
parents:
10257
diff
changeset
|
814 27, |
a09db7a4afe0
commit https://github.com/vim/vim/commit/dc0ccaee68ca24d10050117fbec757ad33590a17
Christian Brabandt <cb@256bit.org>
parents:
10257
diff
changeset
|
815 /**/ |
10257
2d0e6034743a
commit https://github.com/vim/vim/commit/9b4579481892a62e7e002498b9eddaaf75bbda49
Christian Brabandt <cb@256bit.org>
parents:
10255
diff
changeset
|
816 26, |
2d0e6034743a
commit https://github.com/vim/vim/commit/9b4579481892a62e7e002498b9eddaaf75bbda49
Christian Brabandt <cb@256bit.org>
parents:
10255
diff
changeset
|
817 /**/ |
10255
b2c1b7acf92a
commit https://github.com/vim/vim/commit/936c48f8ca82a0257640c8c9d0792538f5a7e813
Christian Brabandt <cb@256bit.org>
parents:
10253
diff
changeset
|
818 25, |
b2c1b7acf92a
commit https://github.com/vim/vim/commit/936c48f8ca82a0257640c8c9d0792538f5a7e813
Christian Brabandt <cb@256bit.org>
parents:
10253
diff
changeset
|
819 /**/ |
10253
a92c4abb8c1f
commit https://github.com/vim/vim/commit/8ddef48d1eade1911b946fdda8c73c80856e6273
Christian Brabandt <cb@256bit.org>
parents:
10251
diff
changeset
|
820 24, |
a92c4abb8c1f
commit https://github.com/vim/vim/commit/8ddef48d1eade1911b946fdda8c73c80856e6273
Christian Brabandt <cb@256bit.org>
parents:
10251
diff
changeset
|
821 /**/ |
10251
bc442c2296a7
commit https://github.com/vim/vim/commit/226630a030c0d41145e1109f09633360fc9c999d
Christian Brabandt <cb@256bit.org>
parents:
10249
diff
changeset
|
822 23, |
bc442c2296a7
commit https://github.com/vim/vim/commit/226630a030c0d41145e1109f09633360fc9c999d
Christian Brabandt <cb@256bit.org>
parents:
10249
diff
changeset
|
823 /**/ |
10249
920c73a27dda
commit https://github.com/vim/vim/commit/ec68a99464055029c01082762517e97245ddae0c
Christian Brabandt <cb@256bit.org>
parents:
10247
diff
changeset
|
824 22, |
920c73a27dda
commit https://github.com/vim/vim/commit/ec68a99464055029c01082762517e97245ddae0c
Christian Brabandt <cb@256bit.org>
parents:
10247
diff
changeset
|
825 /**/ |
10247
d54d4a258b96
commit https://github.com/vim/vim/commit/84dbd494dca599ecff05b2c2279d402c12e6d197
Christian Brabandt <cb@256bit.org>
parents:
10245
diff
changeset
|
826 21, |
d54d4a258b96
commit https://github.com/vim/vim/commit/84dbd494dca599ecff05b2c2279d402c12e6d197
Christian Brabandt <cb@256bit.org>
parents:
10245
diff
changeset
|
827 /**/ |
10245
d76ccdacb41e
commit https://github.com/vim/vim/commit/6100d02aab7c8294b581cb299250eea164b50e9d
Christian Brabandt <cb@256bit.org>
parents:
10242
diff
changeset
|
828 20, |
d76ccdacb41e
commit https://github.com/vim/vim/commit/6100d02aab7c8294b581cb299250eea164b50e9d
Christian Brabandt <cb@256bit.org>
parents:
10242
diff
changeset
|
829 /**/ |
10242
a369d97995ff
commit https://github.com/vim/vim/commit/b3435b0a3a0967115658d0a8c0224a28969cfa02
Christian Brabandt <cb@256bit.org>
parents:
10240
diff
changeset
|
830 19, |
a369d97995ff
commit https://github.com/vim/vim/commit/b3435b0a3a0967115658d0a8c0224a28969cfa02
Christian Brabandt <cb@256bit.org>
parents:
10240
diff
changeset
|
831 /**/ |
10240
175b1116f96a
commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131
Christian Brabandt <cb@256bit.org>
parents:
10237
diff
changeset
|
832 18, |
175b1116f96a
commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131
Christian Brabandt <cb@256bit.org>
parents:
10237
diff
changeset
|
833 /**/ |
10237
197795e3530d
commit https://github.com/vim/vim/commit/890680ca6364386fabb271c85e0755bcaa6a33c1
Christian Brabandt <cb@256bit.org>
parents:
10235
diff
changeset
|
834 17, |
197795e3530d
commit https://github.com/vim/vim/commit/890680ca6364386fabb271c85e0755bcaa6a33c1
Christian Brabandt <cb@256bit.org>
parents:
10235
diff
changeset
|
835 /**/ |
10235
ad6851687158
commit https://github.com/vim/vim/commit/0e77b7691ee7c477facb4c9d9162c8603ada2d84
Christian Brabandt <cb@256bit.org>
parents:
10233
diff
changeset
|
836 16, |
ad6851687158
commit https://github.com/vim/vim/commit/0e77b7691ee7c477facb4c9d9162c8603ada2d84
Christian Brabandt <cb@256bit.org>
parents:
10233
diff
changeset
|
837 /**/ |
10233
d709622a18c9
commit https://github.com/vim/vim/commit/7ef3810d28b7ab2edbfcafab3fe8ad8bc2c2f138
Christian Brabandt <cb@256bit.org>
parents:
10231
diff
changeset
|
838 15, |
d709622a18c9
commit https://github.com/vim/vim/commit/7ef3810d28b7ab2edbfcafab3fe8ad8bc2c2f138
Christian Brabandt <cb@256bit.org>
parents:
10231
diff
changeset
|
839 /**/ |
10231
cbee14cc4da6
commit https://github.com/vim/vim/commit/1eceadaf481e34ed8155011534159775697ce884
Christian Brabandt <cb@256bit.org>
parents:
10229
diff
changeset
|
840 14, |
cbee14cc4da6
commit https://github.com/vim/vim/commit/1eceadaf481e34ed8155011534159775697ce884
Christian Brabandt <cb@256bit.org>
parents:
10229
diff
changeset
|
841 /**/ |
10229
19ced29f773a
commit https://github.com/vim/vim/commit/c79d6aa01d86cd98cffddc80825c1c600e833bbf
Christian Brabandt <cb@256bit.org>
parents:
10226
diff
changeset
|
842 13, |
19ced29f773a
commit https://github.com/vim/vim/commit/c79d6aa01d86cd98cffddc80825c1c600e833bbf
Christian Brabandt <cb@256bit.org>
parents:
10226
diff
changeset
|
843 /**/ |
10226
7a4fb555c83a
commit https://github.com/vim/vim/commit/9af418427652562384744648d7d173a4bfebba95
Christian Brabandt <cb@256bit.org>
parents:
10223
diff
changeset
|
844 12, |
7a4fb555c83a
commit https://github.com/vim/vim/commit/9af418427652562384744648d7d173a4bfebba95
Christian Brabandt <cb@256bit.org>
parents:
10223
diff
changeset
|
845 /**/ |
10223
94d6999443fb
commit https://github.com/vim/vim/commit/947000d6e481042d3869bd65b149d72511c31ab2
Christian Brabandt <cb@256bit.org>
parents:
10221
diff
changeset
|
846 11, |
94d6999443fb
commit https://github.com/vim/vim/commit/947000d6e481042d3869bd65b149d72511c31ab2
Christian Brabandt <cb@256bit.org>
parents:
10221
diff
changeset
|
847 /**/ |
10221
fb1fde4fcff7
commit https://github.com/vim/vim/commit/680e015bfe19be6772d3bd754486fbd45c1a9d3b
Christian Brabandt <cb@256bit.org>
parents:
10219
diff
changeset
|
848 10, |
fb1fde4fcff7
commit https://github.com/vim/vim/commit/680e015bfe19be6772d3bd754486fbd45c1a9d3b
Christian Brabandt <cb@256bit.org>
parents:
10219
diff
changeset
|
849 /**/ |
10219
eeb0b205e909
commit https://github.com/vim/vim/commit/3f1c15b24a3939d193c80c509132db9ee4d8cceb
Christian Brabandt <cb@256bit.org>
parents:
10216
diff
changeset
|
850 9, |
eeb0b205e909
commit https://github.com/vim/vim/commit/3f1c15b24a3939d193c80c509132db9ee4d8cceb
Christian Brabandt <cb@256bit.org>
parents:
10216
diff
changeset
|
851 /**/ |
10216
c41e1736ad47
commit https://github.com/vim/vim/commit/9e02cfa226b2577ec867b544a1a450a428a19880
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
852 8, |
c41e1736ad47
commit https://github.com/vim/vim/commit/9e02cfa226b2577ec867b544a1a450a428a19880
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
853 /**/ |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10212
diff
changeset
|
854 7, |
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10212
diff
changeset
|
855 /**/ |
10212
3e7f2754ff24
commit https://github.com/vim/vim/commit/ebdd90ac282909c0bfcd6e83e70505abbbd5a38d
Christian Brabandt <cb@256bit.org>
parents:
10209
diff
changeset
|
856 6, |
3e7f2754ff24
commit https://github.com/vim/vim/commit/ebdd90ac282909c0bfcd6e83e70505abbbd5a38d
Christian Brabandt <cb@256bit.org>
parents:
10209
diff
changeset
|
857 /**/ |
10209
3bb89aba6064
commit https://github.com/vim/vim/commit/3c4ebeba17399e4ef33d004c269e667f696f0eb6
Christian Brabandt <cb@256bit.org>
parents:
10207
diff
changeset
|
858 5, |
3bb89aba6064
commit https://github.com/vim/vim/commit/3c4ebeba17399e4ef33d004c269e667f696f0eb6
Christian Brabandt <cb@256bit.org>
parents:
10207
diff
changeset
|
859 /**/ |
10207
9415453b7bbd
commit https://github.com/vim/vim/commit/5582ef14384525e8cec86016876d97a6b32dd548
Christian Brabandt <cb@256bit.org>
parents:
10205
diff
changeset
|
860 4, |
9415453b7bbd
commit https://github.com/vim/vim/commit/5582ef14384525e8cec86016876d97a6b32dd548
Christian Brabandt <cb@256bit.org>
parents:
10205
diff
changeset
|
861 /**/ |
10205
22e97a250277
commit https://github.com/vim/vim/commit/789a5c0e3d27f09456678f0cfb6c1bd2d8ab4a35
Christian Brabandt <cb@256bit.org>
parents:
10202
diff
changeset
|
862 3, |
22e97a250277
commit https://github.com/vim/vim/commit/789a5c0e3d27f09456678f0cfb6c1bd2d8ab4a35
Christian Brabandt <cb@256bit.org>
parents:
10202
diff
changeset
|
863 /**/ |
10202
8335fdda6d4d
commit https://github.com/vim/vim/commit/9e1e7afc1f29b67fe3721442b49af3b20644a3ee
Christian Brabandt <cb@256bit.org>
parents:
10200
diff
changeset
|
864 2, |
8335fdda6d4d
commit https://github.com/vim/vim/commit/9e1e7afc1f29b67fe3721442b49af3b20644a3ee
Christian Brabandt <cb@256bit.org>
parents:
10200
diff
changeset
|
865 /**/ |
10200
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
866 1, |
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
867 /**/ |
7 | 868 0 |
869 }; | |
870 | |
1760 | 871 /* |
872 * Place to put a short description when adding a feature with a patch. | |
873 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
874 * Also add a comment marker to separate the lines. | |
875 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 876 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 877 */ |
878 static char *(extra_patches[]) = | |
879 { /* Add your patch description below this line */ | |
880 /**/ | |
881 NULL | |
882 }; | |
883 | |
7 | 884 int |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
885 highest_patch(void) |
7 | 886 { |
887 int i; | |
888 int h = 0; | |
889 | |
890 for (i = 0; included_patches[i] != 0; ++i) | |
891 if (included_patches[i] > h) | |
892 h = included_patches[i]; | |
893 return h; | |
894 } | |
895 | |
896 #if defined(FEAT_EVAL) || defined(PROTO) | |
897 /* | |
898 * Return TRUE if patch "n" has been included. | |
899 */ | |
900 int | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
901 has_patch(int n) |
7 | 902 { |
903 int i; | |
904 | |
905 for (i = 0; included_patches[i] != 0; ++i) | |
906 if (included_patches[i] == n) | |
907 return TRUE; | |
908 return FALSE; | |
909 } | |
910 #endif | |
911 | |
912 void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
913 ex_version(exarg_T *eap) |
7 | 914 { |
915 /* | |
916 * Ignore a ":version 9.99" command. | |
917 */ | |
918 if (*eap->arg == NUL) | |
919 { | |
920 msg_putchar('\n'); | |
921 list_version(); | |
922 } | |
923 } | |
924 | |
4147 | 925 /* |
926 * List all features aligned in columns, dictionary style. | |
927 */ | |
928 static void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
929 list_features(void) |
4147 | 930 { |
931 int i; | |
932 int ncol; | |
933 int nrow; | |
934 int nfeat = 0; | |
935 int width = 0; | |
936 | |
937 /* Find the length of the longest feature name, use that + 1 as the column | |
938 * width */ | |
939 for (i = 0; features[i] != NULL; ++i) | |
940 { | |
4160 | 941 int l = (int)STRLEN(features[i]); |
4147 | 942 |
943 if (l > width) | |
944 width = l; | |
945 ++nfeat; | |
946 } | |
947 width += 1; | |
948 | |
949 if (Columns < width) | |
950 { | |
951 /* Not enough screen columns - show one per line */ | |
952 for (i = 0; features[i] != NULL; ++i) | |
953 { | |
954 version_msg(features[i]); | |
955 if (msg_col > 0) | |
956 msg_putchar('\n'); | |
957 } | |
958 return; | |
959 } | |
960 | |
961 /* The rightmost column doesn't need a separator. | |
962 * Sacrifice it to fit in one more column if possible. */ | |
4170 | 963 ncol = (int) (Columns + 1) / width; |
4147 | 964 nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0); |
965 | |
4170 | 966 /* i counts columns then rows. idx counts rows then columns. */ |
4147 | 967 for (i = 0; !got_int && i < nrow * ncol; ++i) |
968 { | |
969 int idx = (i / ncol) + (i % ncol) * nrow; | |
970 | |
971 if (idx < nfeat) | |
972 { | |
973 int last_col = (i + 1) % ncol == 0; | |
974 | |
975 msg_puts((char_u *)features[idx]); | |
976 if (last_col) | |
977 { | |
978 if (msg_col > 0) | |
979 msg_putchar('\n'); | |
980 } | |
981 else | |
982 { | |
983 while (msg_col % width) | |
984 msg_putchar(' '); | |
985 } | |
986 } | |
987 else | |
4170 | 988 { |
989 if (msg_col > 0) | |
990 msg_putchar('\n'); | |
991 } | |
4147 | 992 } |
993 } | |
4160 | 994 |
7 | 995 void |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
996 list_version(void) |
7 | 997 { |
998 int i; | |
999 int first; | |
1000 char *s = ""; | |
1001 | |
1002 /* | |
1003 * When adding features here, don't forget to update the list of | |
1004 * internal variables in eval.c! | |
1005 */ | |
1006 MSG(longVersion); | |
1007 #ifdef WIN3264 | |
1008 # ifdef FEAT_GUI_W32 | |
10264
c036c0f636d5
commit https://github.com/vim/vim/commit/cea912af725c54f4727a0565e31661f6b29c6bb1
Christian Brabandt <cb@256bit.org>
parents:
10262
diff
changeset
|
1009 # ifdef _WIN64 |
c036c0f636d5
commit https://github.com/vim/vim/commit/cea912af725c54f4727a0565e31661f6b29c6bb1
Christian Brabandt <cb@256bit.org>
parents:
10262
diff
changeset
|
1010 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
7 | 1011 # else |
1607 | 1012 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
7 | 1013 # endif |
1014 # ifdef FEAT_OLE | |
1015 MSG_PUTS(_(" with OLE support")); | |
1016 # endif | |
1017 # else | |
1607 | 1018 # ifdef _WIN64 |
1019 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1020 # else | |
1021 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1022 # endif | |
7 | 1023 # endif |
1024 #endif | |
1025 #ifdef MACOS | |
1026 # ifdef MACOS_X | |
1027 # ifdef MACOS_X_UNIX | |
1028 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1029 # else | |
1030 MSG_PUTS(_("\nMacOS X version")); | |
1031 # endif | |
1032 #else | |
1033 MSG_PUTS(_("\nMacOS version")); | |
1034 # endif | |
1035 #endif | |
1036 | |
1037 #ifdef VMS | |
1705 | 1038 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1039 # ifdef HAVE_PATHDEF |
1040 if (*compiled_arch != NUL) | |
1041 { | |
1042 MSG_PUTS(" - "); | |
1043 MSG_PUTS(compiled_arch); | |
1044 } | |
1045 # endif | |
1046 | |
7 | 1047 #endif |
1048 | |
1049 /* Print the list of patch numbers if there is at least one. */ | |
1050 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1051 if (included_patches[0] != 0) | |
1052 { | |
1053 MSG_PUTS(_("\nIncluded patches: ")); | |
1054 first = -1; | |
1055 /* find last one */ | |
1056 for (i = 0; included_patches[i] != 0; ++i) | |
1057 ; | |
1058 while (--i >= 0) | |
1059 { | |
1060 if (first < 0) | |
1061 first = included_patches[i]; | |
1062 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1063 { | |
1064 MSG_PUTS(s); | |
1065 s = ", "; | |
1066 msg_outnum((long)first); | |
1067 if (first != included_patches[i]) | |
1068 { | |
1069 MSG_PUTS("-"); | |
1070 msg_outnum((long)included_patches[i]); | |
1071 } | |
1072 first = -1; | |
1073 } | |
1074 } | |
1075 } | |
1076 | |
1760 | 1077 /* Print the list of extra patch descriptions if there is at least one. */ |
1078 if (extra_patches[0] != NULL) | |
1079 { | |
1080 MSG_PUTS(_("\nExtra patches: ")); | |
1081 s = ""; | |
1082 for (i = 0; extra_patches[i] != NULL; ++i) | |
1083 { | |
1084 MSG_PUTS(s); | |
1085 s = ", "; | |
1086 MSG_PUTS(extra_patches[i]); | |
1087 } | |
1088 } | |
1089 | |
7 | 1090 #ifdef MODIFIED_BY |
1091 MSG_PUTS("\n"); | |
1092 MSG_PUTS(_("Modified by ")); | |
1093 MSG_PUTS(MODIFIED_BY); | |
1094 #endif | |
1095 | |
1096 #ifdef HAVE_PATHDEF | |
1097 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1098 { | |
1099 MSG_PUTS(_("\nCompiled ")); | |
1100 if (*compiled_user != NUL) | |
1101 { | |
1102 MSG_PUTS(_("by ")); | |
1103 MSG_PUTS(compiled_user); | |
1104 } | |
1105 if (*compiled_sys != NUL) | |
1106 { | |
1107 MSG_PUTS("@"); | |
1108 MSG_PUTS(compiled_sys); | |
1109 } | |
1110 } | |
1111 #endif | |
1112 | |
1113 #ifdef FEAT_HUGE | |
1114 MSG_PUTS(_("\nHuge version ")); | |
1115 #else | |
1116 # ifdef FEAT_BIG | |
1117 MSG_PUTS(_("\nBig version ")); | |
1118 # else | |
1119 # ifdef FEAT_NORMAL | |
1120 MSG_PUTS(_("\nNormal version ")); | |
1121 # else | |
1122 # ifdef FEAT_SMALL | |
1123 MSG_PUTS(_("\nSmall version ")); | |
1124 # else | |
1125 MSG_PUTS(_("\nTiny version ")); | |
1126 # endif | |
1127 # endif | |
1128 # endif | |
1129 #endif | |
1130 #ifndef FEAT_GUI | |
1131 MSG_PUTS(_("without GUI.")); | |
1132 #else | |
1133 # ifdef FEAT_GUI_GTK | |
8218
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1134 # ifdef USE_GTK3 |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1135 MSG_PUTS(_("with GTK3 GUI.")); |
7 | 1136 # else |
8218
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1137 # ifdef FEAT_GUI_GNOME |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1138 MSG_PUTS(_("with GTK2-GNOME GUI.")); |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1139 # else |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1140 MSG_PUTS(_("with GTK2 GUI.")); |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1141 # endif |
3456e2ebebd4
commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517
Christian Brabandt <cb@256bit.org>
parents:
8216
diff
changeset
|
1142 # endif |
7 | 1143 # else |
1144 # ifdef FEAT_GUI_MOTIF | |
1145 MSG_PUTS(_("with X11-Motif GUI.")); | |
1146 # else | |
1147 # ifdef FEAT_GUI_ATHENA | |
1148 # ifdef FEAT_GUI_NEXTAW | |
1149 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
1150 # else | |
1151 MSG_PUTS(_("with X11-Athena GUI.")); | |
1152 # endif | |
1153 # else | |
1154 # ifdef FEAT_GUI_PHOTON | |
1155 MSG_PUTS(_("with Photon GUI.")); | |
1156 # else | |
1157 # if defined(MSWIN) | |
1158 MSG_PUTS(_("with GUI.")); | |
1159 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1160 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 1161 MSG_PUTS(_("with Carbon GUI.")); |
1162 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1163 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 1164 MSG_PUTS(_("with Cocoa GUI.")); |
1165 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1166 # if defined(MACOS) |
7 | 1167 MSG_PUTS(_("with (classic) GUI.")); |
1168 # endif | |
1169 # endif | |
1170 # endif | |
1171 # endif | |
1172 # endif | |
1173 # endif | |
1174 # endif | |
1175 # endif | |
1176 #endif | |
1177 version_msg(_(" Features included (+) or not (-):\n")); | |
1178 | |
4147 | 1179 list_features(); |
7 | 1180 |
1181 #ifdef SYS_VIMRC_FILE | |
1182 version_msg(_(" system vimrc file: \"")); | |
1183 version_msg(SYS_VIMRC_FILE); | |
1184 version_msg("\"\n"); | |
1185 #endif | |
1186 #ifdef USR_VIMRC_FILE | |
1187 version_msg(_(" user vimrc file: \"")); | |
1188 version_msg(USR_VIMRC_FILE); | |
1189 version_msg("\"\n"); | |
1190 #endif | |
1191 #ifdef USR_VIMRC_FILE2 | |
1192 version_msg(_(" 2nd user vimrc file: \"")); | |
1193 version_msg(USR_VIMRC_FILE2); | |
1194 version_msg("\"\n"); | |
1195 #endif | |
1196 #ifdef USR_VIMRC_FILE3 | |
1197 version_msg(_(" 3rd user vimrc file: \"")); | |
1198 version_msg(USR_VIMRC_FILE3); | |
1199 version_msg("\"\n"); | |
1200 #endif | |
1201 #ifdef USR_EXRC_FILE | |
1202 version_msg(_(" user exrc file: \"")); | |
1203 version_msg(USR_EXRC_FILE); | |
1204 version_msg("\"\n"); | |
1205 #endif | |
1206 #ifdef USR_EXRC_FILE2 | |
1207 version_msg(_(" 2nd user exrc file: \"")); | |
1208 version_msg(USR_EXRC_FILE2); | |
1209 version_msg("\"\n"); | |
1210 #endif | |
1211 #ifdef FEAT_GUI | |
1212 # ifdef SYS_GVIMRC_FILE | |
1213 version_msg(_(" system gvimrc file: \"")); | |
1214 version_msg(SYS_GVIMRC_FILE); | |
1215 version_msg("\"\n"); | |
1216 # endif | |
1217 version_msg(_(" user gvimrc file: \"")); | |
1218 version_msg(USR_GVIMRC_FILE); | |
1219 version_msg("\"\n"); | |
1220 # ifdef USR_GVIMRC_FILE2 | |
1221 version_msg(_("2nd user gvimrc file: \"")); | |
1222 version_msg(USR_GVIMRC_FILE2); | |
1223 version_msg("\"\n"); | |
1224 # endif | |
1225 # ifdef USR_GVIMRC_FILE3 | |
1226 version_msg(_("3rd user gvimrc file: \"")); | |
1227 version_msg(USR_GVIMRC_FILE3); | |
1228 version_msg("\"\n"); | |
1229 # endif | |
1230 #endif | |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9667
diff
changeset
|
1231 version_msg(_(" defaults file: \"")); |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9667
diff
changeset
|
1232 version_msg(VIM_DEFAULTS_FILE); |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9667
diff
changeset
|
1233 version_msg("\"\n"); |
7 | 1234 #ifdef FEAT_GUI |
1235 # ifdef SYS_MENU_FILE | |
1236 version_msg(_(" system menu file: \"")); | |
1237 version_msg(SYS_MENU_FILE); | |
1238 version_msg("\"\n"); | |
1239 # endif | |
1240 #endif | |
1241 #ifdef HAVE_PATHDEF | |
1242 if (*default_vim_dir != NUL) | |
1243 { | |
1244 version_msg(_(" fall-back for $VIM: \"")); | |
1245 version_msg((char *)default_vim_dir); | |
1246 version_msg("\"\n"); | |
1247 } | |
1248 if (*default_vimruntime_dir != NUL) | |
1249 { | |
1250 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
1251 version_msg((char *)default_vimruntime_dir); | |
1252 version_msg("\"\n"); | |
1253 } | |
1254 version_msg(_("Compilation: ")); | |
1255 version_msg((char *)all_cflags); | |
1256 version_msg("\n"); | |
1257 #ifdef VMS | |
1258 if (*compiler_version != NUL) | |
1259 { | |
1260 version_msg(_("Compiler: ")); | |
1261 version_msg((char *)compiler_version); | |
1262 version_msg("\n"); | |
1263 } | |
1264 #endif | |
1265 version_msg(_("Linking: ")); | |
1266 version_msg((char *)all_lflags); | |
1267 #endif | |
1268 #ifdef DEBUG | |
1269 version_msg("\n"); | |
1270 version_msg(_(" DEBUG BUILD")); | |
1271 #endif | |
1272 } | |
1273 | |
1274 /* | |
1275 * Output a string for the version message. If it's going to wrap, output a | |
1276 * newline, unless the message is too long to fit on the screen anyway. | |
1277 */ | |
1278 static void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1279 version_msg(char *s) |
7 | 1280 { |
1281 int len = (int)STRLEN(s); | |
1282 | |
1283 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
1284 && *s != '\n') | |
1285 msg_putchar('\n'); | |
1286 if (!got_int) | |
1287 MSG_PUTS(s); | |
1288 } | |
1289 | |
7805
0b6c37dd858d
commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077
Christian Brabandt <cb@256bit.org>
parents:
7803
diff
changeset
|
1290 static void do_intro_line(int row, char_u *mesg, int add_version, int attr); |
7 | 1291 |
1292 /* | |
5126
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1293 * Show the intro message when not editing a file. |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1294 */ |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1295 void |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1296 maybe_intro_message(void) |
5126
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1297 { |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1298 if (bufempty() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1299 && curbuf->b_fname == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1300 #ifdef FEAT_WINDOWS |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1301 && firstwin->w_next == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1302 #endif |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1303 && vim_strchr(p_shm, SHM_INTRO) == NULL) |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1304 intro_message(FALSE); |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1305 } |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1306 |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
1307 /* |
7 | 1308 * Give an introductory message about Vim. |
1309 * Only used when starting Vim on an empty file, without a file name. | |
1310 * Or with the ":intro" command (for Sven :-). | |
1311 */ | |
1312 void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1313 intro_message( |
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1314 int colon) /* TRUE for ":intro" */ |
7 | 1315 { |
1316 int i; | |
1317 int row; | |
1318 int blanklines; | |
1319 int sponsor; | |
1320 char *p; | |
1321 static char *(lines[]) = | |
1322 { | |
1323 N_("VIM - Vi IMproved"), | |
1324 "", | |
1325 N_("version "), | |
1326 N_("by Bram Moolenaar et al."), | |
1327 #ifdef MODIFIED_BY | |
1328 " ", | |
1329 #endif | |
1330 N_("Vim is open source and freely distributable"), | |
1331 "", | |
1332 N_("Help poor children in Uganda!"), | |
1333 N_("type :help iccf<Enter> for information "), | |
1334 "", | |
1335 N_("type :q<Enter> to exit "), | |
1336 N_("type :help<Enter> or <F1> for on-line help"), | |
10200
b85c507b50f3
commit https://github.com/vim/vim/commit/6401024869dcd722ee1b98b4ba58e6caa215201b
Christian Brabandt <cb@256bit.org>
parents:
10198
diff
changeset
|
1337 N_("type :help version8<Enter> for version info"), |
7 | 1338 NULL, |
1339 "", | |
1340 N_("Running in Vi compatible mode"), | |
1341 N_("type :set nocp<Enter> for Vim defaults"), | |
1342 N_("type :help cp-default<Enter> for info on this"), | |
1343 }; | |
1344 #ifdef FEAT_GUI | |
1345 static char *(gui_lines[]) = | |
1346 { | |
1347 NULL, | |
1348 NULL, | |
1349 NULL, | |
1350 NULL, | |
1351 #ifdef MODIFIED_BY | |
1352 NULL, | |
1353 #endif | |
1354 NULL, | |
1355 NULL, | |
1356 NULL, | |
1357 N_("menu Help->Orphans for information "), | |
1358 NULL, | |
1359 N_("Running modeless, typed text is inserted"), | |
1360 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
1361 N_(" for two modes "), | |
1362 NULL, | |
1363 NULL, | |
1364 NULL, | |
1365 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
1366 N_(" for Vim defaults "), | |
1367 }; | |
1368 #endif | |
1369 | |
1370 /* blanklines = screen height - # message lines */ | |
1371 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
1372 if (!p_cp) | |
1373 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
1374 | |
1375 #ifdef FEAT_WINDOWS | |
1376 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
1377 if (p_ls > 1) | |
1378 blanklines -= Rows - topframe->fr_height; | |
1379 #endif | |
1380 if (blanklines < 0) | |
1381 blanklines = 0; | |
1382 | |
1383 /* Show the sponsor and register message one out of four times, the Uganda | |
1384 * message two out of four times. */ | |
615 | 1385 sponsor = (int)time(NULL); |
7 | 1386 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
1387 | |
1388 /* start displaying the message lines after half of the blank lines */ | |
1389 row = blanklines / 2; | |
1390 if ((row >= 2 && Columns >= 50) || colon) | |
1391 { | |
1392 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
1393 { | |
1394 p = lines[i]; | |
1395 #ifdef FEAT_GUI | |
1396 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
1397 p = gui_lines[i]; | |
1398 #endif | |
1399 if (p == NULL) | |
1400 { | |
1401 if (!p_cp) | |
1402 break; | |
1403 continue; | |
1404 } | |
1405 if (sponsor != 0) | |
1406 { | |
1407 if (strstr(p, "children") != NULL) | |
1408 p = sponsor < 0 | |
1409 ? N_("Sponsor Vim development!") | |
1410 : N_("Become a registered Vim user!"); | |
1411 else if (strstr(p, "iccf") != NULL) | |
1412 p = sponsor < 0 | |
1413 ? N_("type :help sponsor<Enter> for information ") | |
1414 : N_("type :help register<Enter> for information "); | |
1415 else if (strstr(p, "Orphans") != NULL) | |
1416 p = N_("menu Help->Sponsor/Register for information "); | |
1417 } | |
1418 if (*p != NUL) | |
1419 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
1420 ++row; | |
1421 } | |
1422 } | |
1423 | |
1424 /* Make the wait-return message appear just below the text. */ | |
1425 if (colon) | |
1426 msg_row = row; | |
1427 } | |
1428 | |
1429 static void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1430 do_intro_line( |
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1431 int row, |
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1432 char_u *mesg, |
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1433 int add_version, |
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1434 int attr) |
7 | 1435 { |
1436 char_u vers[20]; | |
1437 int col; | |
1438 char_u *p; | |
1439 int l; | |
1440 int clen; | |
1441 #ifdef MODIFIED_BY | |
1442 # define MODBY_LEN 150 | |
1443 char_u modby[MODBY_LEN]; | |
1444 | |
1445 if (*mesg == ' ') | |
1446 { | |
1491 | 1447 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
9159
6b003ff07234
commit https://github.com/vim/vim/commit/9b0ac229bcfc91acabd35fc576055a94c1687c32
Christian Brabandt <cb@256bit.org>
parents:
9157
diff
changeset
|
1448 l = (int)STRLEN(modby); |
1491 | 1449 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 1450 mesg = modby; |
1451 } | |
1452 #endif | |
1453 | |
1454 /* Center the message horizontally. */ | |
1455 col = vim_strsize(mesg); | |
1456 if (add_version) | |
1457 { | |
1458 STRCPY(vers, mediumVersion); | |
1459 if (highest_patch()) | |
1460 { | |
1461 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 1462 if (isalpha((int)vers[3])) |
7 | 1463 { |
3396 | 1464 int len = (isalpha((int)vers[4])) ? 5 : 4; |
1465 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
1466 mediumVersion + len); | |
7 | 1467 } |
1468 else | |
1469 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
1470 } | |
1471 col += (int)STRLEN(vers); | |
1472 } | |
1473 col = (Columns - col) / 2; | |
1474 if (col < 0) | |
1475 col = 0; | |
1476 | |
1477 /* Split up in parts to highlight <> items differently. */ | |
1478 for (p = mesg; *p != NUL; p += l) | |
1479 { | |
1480 clen = 0; | |
1481 for (l = 0; p[l] != NUL | |
1482 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
1483 { | |
1484 #ifdef FEAT_MBYTE | |
1485 if (has_mbyte) | |
1486 { | |
1487 clen += ptr2cells(p + l); | |
474 | 1488 l += (*mb_ptr2len)(p + l) - 1; |
7 | 1489 } |
1490 else | |
1491 #endif | |
1492 clen += byte2cells(p[l]); | |
1493 } | |
1494 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
1495 col += clen; | |
1496 } | |
1497 | |
1498 /* Add the version number to the version line. */ | |
1499 if (add_version) | |
1500 screen_puts(vers, row, col, 0); | |
1501 } | |
1502 | |
1503 /* | |
1504 * ":intro": clear screen, display intro screen and wait for return. | |
1505 */ | |
1506 void | |
7837
33ba2adb6065
commit https://github.com/vim/vim/commit/b638a7be952544ceb03052c25b84224577a6494b
Christian Brabandt <cb@256bit.org>
parents:
7835
diff
changeset
|
1507 ex_intro(exarg_T *eap UNUSED) |
7 | 1508 { |
1509 screenclear(); | |
1510 intro_message(TRUE); | |
1511 wait_return(TRUE); | |
1512 } |