Mercurial > vim
annotate src/version.c @ 6151:121613e72e39 v7.4.413
updated for version 7.4.413
Problem: MS-Windows: Using US international keyboard layout, inserting dead
key by pressing space does not always work. Issue 250.
Solution: Let MS-Windows translate the message. (John Wellesz)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 22 Aug 2014 18:44:33 +0200 |
parents | 4c845a1600d2 |
children | 67edf731a240 |
rev | line source |
---|---|
7 | 1 /* vi:set ts=8 sts=4 sw=4: |
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 * | |
26 | 20 * Differences between version 6.x and 7.x can be found with ":help version7". |
7 | 21 * Differences between version 5.x and 6.x can be found with ":help version6". |
22 * Differences between version 4.x and 5.x can be found with ":help version5". | |
23 * Differences between version 3.0 and 4.x can be found with ":help version4". | |
24 * All the remarks about older versions have been removed, they are not very | |
25 * interesting. | |
26 */ | |
27 | |
28 #include "version.h" | |
29 | |
378 | 30 char *Version = VIM_VERSION_SHORT; |
31 static char *mediumVersion = VIM_VERSION_MEDIUM; | |
7 | 32 |
33 #if defined(HAVE_DATE_TIME) || defined(PROTO) | |
34 # if (defined(VMS) && defined(VAXC)) || defined(PROTO) | |
35 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) | |
36 + sizeof(__TIME__) + 3]; | |
4147 | 37 |
7 | 38 void |
39 make_version() | |
40 { | |
41 /* | |
42 * Construct the long version string. Necessary because | |
43 * VAX C can't catenate strings in the preprocessor. | |
44 */ | |
45 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
46 strcat(longVersion, __DATE__); | |
47 strcat(longVersion, " "); | |
48 strcat(longVersion, __TIME__); | |
49 strcat(longVersion, ")"); | |
50 } | |
51 # else | |
52 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
53 # endif | |
54 #else | |
55 char *longVersion = VIM_VERSION_LONG; | |
56 #endif | |
57 | |
5166
467efeee8f9e
updated for version 7.4a.009
Bram Moolenaar <bram@vim.org>
parents:
5164
diff
changeset
|
58 static void list_features __ARGS((void)); |
7 | 59 static void version_msg __ARGS((char *s)); |
60 | |
61 static char *(features[]) = | |
62 { | |
5316 | 63 #ifdef HAVE_ACL |
64 "+acl", | |
65 #else | |
66 "-acl", | |
67 #endif | |
7 | 68 #ifdef AMIGA /* only for Amiga systems */ |
69 # ifdef FEAT_ARP | |
70 "+ARP", | |
71 # else | |
72 "-ARP", | |
73 # endif | |
74 #endif | |
75 #ifdef FEAT_ARABIC | |
76 "+arabic", | |
77 #else | |
78 "-arabic", | |
79 #endif | |
80 #ifdef FEAT_AUTOCMD | |
81 "+autocmd", | |
82 #else | |
83 "-autocmd", | |
84 #endif | |
85 #ifdef FEAT_BEVAL | |
86 "+balloon_eval", | |
87 #else | |
88 "-balloon_eval", | |
89 #endif | |
90 #ifdef FEAT_BROWSE | |
91 "+browse", | |
92 #else | |
93 "-browse", | |
94 #endif | |
95 #ifdef NO_BUILTIN_TCAPS | |
96 "-builtin_terms", | |
97 #endif | |
98 #ifdef SOME_BUILTIN_TCAPS | |
99 "+builtin_terms", | |
100 #endif | |
101 #ifdef ALL_BUILTIN_TCAPS | |
102 "++builtin_terms", | |
103 #endif | |
104 #ifdef FEAT_BYTEOFF | |
105 "+byte_offset", | |
106 #else | |
107 "-byte_offset", | |
108 #endif | |
109 #ifdef FEAT_CINDENT | |
110 "+cindent", | |
111 #else | |
112 "-cindent", | |
113 #endif | |
114 #ifdef FEAT_CLIENTSERVER | |
115 "+clientserver", | |
116 #else | |
117 "-clientserver", | |
118 #endif | |
119 #ifdef FEAT_CLIPBOARD | |
120 "+clipboard", | |
121 #else | |
122 "-clipboard", | |
123 #endif | |
124 #ifdef FEAT_CMDL_COMPL | |
125 "+cmdline_compl", | |
126 #else | |
127 "-cmdline_compl", | |
128 #endif | |
129 #ifdef FEAT_CMDHIST | |
130 "+cmdline_hist", | |
131 #else | |
132 "-cmdline_hist", | |
133 #endif | |
134 #ifdef FEAT_CMDL_INFO | |
135 "+cmdline_info", | |
136 #else | |
137 "-cmdline_info", | |
138 #endif | |
139 #ifdef FEAT_COMMENTS | |
140 "+comments", | |
141 #else | |
142 "-comments", | |
143 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
144 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
145 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
146 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
147 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
148 #endif |
7 | 149 #ifdef FEAT_CRYPT |
150 "+cryptv", | |
151 #else | |
152 "-cryptv", | |
153 #endif | |
154 #ifdef FEAT_CSCOPE | |
155 "+cscope", | |
156 #else | |
157 "-cscope", | |
158 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
159 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
160 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
161 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
162 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
163 #endif |
647 | 164 #ifdef CURSOR_SHAPE |
165 "+cursorshape", | |
166 #else | |
167 "-cursorshape", | |
168 #endif | |
7 | 169 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
170 "+dialog_con_gui", | |
171 #else | |
172 # if defined(FEAT_CON_DIALOG) | |
173 "+dialog_con", | |
174 # else | |
175 # if defined(FEAT_GUI_DIALOG) | |
176 "+dialog_gui", | |
177 # else | |
178 "-dialog", | |
179 # endif | |
180 # endif | |
181 #endif | |
182 #ifdef FEAT_DIFF | |
183 "+diff", | |
184 #else | |
185 "-diff", | |
186 #endif | |
187 #ifdef FEAT_DIGRAPHS | |
188 "+digraphs", | |
189 #else | |
190 "-digraphs", | |
191 #endif | |
6110 | 192 #ifdef FEAT_GUI_W32 |
193 # ifdef FEAT_DIRECTX | |
194 "+directx", | |
195 # else | |
196 "-directx", | |
197 # endif | |
198 #endif | |
7 | 199 #ifdef FEAT_DND |
200 "+dnd", | |
201 #else | |
202 "-dnd", | |
203 #endif | |
204 #ifdef EBCDIC | |
205 "+ebcdic", | |
206 #else | |
207 "-ebcdic", | |
208 #endif | |
209 #ifdef FEAT_EMACS_TAGS | |
210 "+emacs_tags", | |
211 #else | |
212 "-emacs_tags", | |
213 #endif | |
214 #ifdef FEAT_EVAL | |
215 "+eval", | |
216 #else | |
217 "-eval", | |
218 #endif | |
219 #ifdef FEAT_EX_EXTRA | |
220 "+ex_extra", | |
221 #else | |
222 "-ex_extra", | |
223 #endif | |
224 #ifdef FEAT_SEARCH_EXTRA | |
225 "+extra_search", | |
226 #else | |
227 "-extra_search", | |
228 #endif | |
229 #ifdef FEAT_FKMAP | |
230 "+farsi", | |
231 #else | |
232 "-farsi", | |
233 #endif | |
234 #ifdef FEAT_SEARCHPATH | |
235 "+file_in_path", | |
236 #else | |
237 "-file_in_path", | |
238 #endif | |
239 #ifdef FEAT_FIND_ID | |
240 "+find_in_path", | |
241 #else | |
242 "-find_in_path", | |
243 #endif | |
1621 | 244 #ifdef FEAT_FLOAT |
245 "+float", | |
246 #else | |
247 "-float", | |
248 #endif | |
7 | 249 #ifdef FEAT_FOLDING |
250 "+folding", | |
251 #else | |
252 "-folding", | |
253 #endif | |
254 #ifdef FEAT_FOOTER | |
255 "+footer", | |
256 #else | |
257 "-footer", | |
258 #endif | |
259 /* only interesting on Unix systems */ | |
260 #if !defined(USE_SYSTEM) && defined(UNIX) | |
261 "+fork()", | |
262 #endif | |
263 #ifdef FEAT_GETTEXT | |
264 # ifdef DYNAMIC_GETTEXT | |
265 "+gettext/dyn", | |
266 # else | |
267 "+gettext", | |
268 # endif | |
269 #else | |
270 "-gettext", | |
271 #endif | |
272 #ifdef FEAT_HANGULIN | |
273 "+hangul_input", | |
274 #else | |
275 "-hangul_input", | |
276 #endif | |
277 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
278 # ifdef DYNAMIC_ICONV | |
279 "+iconv/dyn", | |
280 # else | |
281 "+iconv", | |
282 # endif | |
283 #else | |
284 "-iconv", | |
285 #endif | |
286 #ifdef FEAT_INS_EXPAND | |
287 "+insert_expand", | |
288 #else | |
289 "-insert_expand", | |
290 #endif | |
291 #ifdef FEAT_JUMPLIST | |
292 "+jumplist", | |
293 #else | |
294 "-jumplist", | |
295 #endif | |
296 #ifdef FEAT_KEYMAP | |
297 "+keymap", | |
298 #else | |
299 "-keymap", | |
300 #endif | |
301 #ifdef FEAT_LANGMAP | |
302 "+langmap", | |
303 #else | |
304 "-langmap", | |
305 #endif | |
306 #ifdef FEAT_LIBCALL | |
307 "+libcall", | |
308 #else | |
309 "-libcall", | |
310 #endif | |
311 #ifdef FEAT_LINEBREAK | |
312 "+linebreak", | |
313 #else | |
314 "-linebreak", | |
315 #endif | |
316 #ifdef FEAT_LISP | |
317 "+lispindent", | |
318 #else | |
319 "-lispindent", | |
320 #endif | |
321 #ifdef FEAT_LISTCMDS | |
322 "+listcmds", | |
323 #else | |
324 "-listcmds", | |
325 #endif | |
326 #ifdef FEAT_LOCALMAP | |
327 "+localmap", | |
328 #else | |
329 "-localmap", | |
330 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
331 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
332 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
333 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
334 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
335 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
336 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
337 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
338 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
339 #endif |
7 | 340 #ifdef FEAT_MENU |
341 "+menu", | |
342 #else | |
343 "-menu", | |
344 #endif | |
345 #ifdef FEAT_SESSION | |
346 "+mksession", | |
347 #else | |
348 "-mksession", | |
349 #endif | |
350 #ifdef FEAT_MODIFY_FNAME | |
351 "+modify_fname", | |
352 #else | |
353 "-modify_fname", | |
354 #endif | |
355 #ifdef FEAT_MOUSE | |
356 "+mouse", | |
357 # ifdef FEAT_MOUSESHAPE | |
358 "+mouseshape", | |
359 # else | |
360 "-mouseshape", | |
361 # endif | |
362 # else | |
363 "-mouse", | |
364 #endif | |
3898 | 365 |
7 | 366 #if defined(UNIX) || defined(VMS) |
367 # ifdef FEAT_MOUSE_DEC | |
368 "+mouse_dec", | |
369 # else | |
370 "-mouse_dec", | |
371 # endif | |
372 # ifdef FEAT_MOUSE_GPM | |
373 "+mouse_gpm", | |
374 # else | |
375 "-mouse_gpm", | |
376 # endif | |
377 # ifdef FEAT_MOUSE_JSB | |
378 "+mouse_jsbterm", | |
379 # else | |
380 "-mouse_jsbterm", | |
381 # endif | |
382 # ifdef FEAT_MOUSE_NET | |
383 "+mouse_netterm", | |
384 # else | |
385 "-mouse_netterm", | |
386 # endif | |
387 #endif | |
3898 | 388 |
7 | 389 #ifdef __QNX__ |
390 # ifdef FEAT_MOUSE_PTERM | |
391 "+mouse_pterm", | |
392 # else | |
393 "-mouse_pterm", | |
394 # endif | |
395 #endif | |
3898 | 396 |
397 #if defined(UNIX) || defined(VMS) | |
398 # ifdef FEAT_MOUSE_SGR | |
399 "+mouse_sgr", | |
400 # else | |
401 "-mouse_sgr", | |
402 # endif | |
403 # ifdef FEAT_SYSMOUSE | |
404 "+mouse_sysmouse", | |
405 # else | |
406 "-mouse_sysmouse", | |
407 # endif | |
408 # ifdef FEAT_MOUSE_URXVT | |
409 "+mouse_urxvt", | |
410 # else | |
411 "-mouse_urxvt", | |
412 # endif | |
413 # ifdef FEAT_MOUSE_XTERM | |
414 "+mouse_xterm", | |
415 # else | |
416 "-mouse_xterm", | |
417 # endif | |
418 #endif | |
419 | |
7 | 420 #ifdef FEAT_MBYTE_IME |
421 # ifdef DYNAMIC_IME | |
422 "+multi_byte_ime/dyn", | |
423 # else | |
424 "+multi_byte_ime", | |
425 # endif | |
426 #else | |
427 # ifdef FEAT_MBYTE | |
428 "+multi_byte", | |
429 # else | |
430 "-multi_byte", | |
431 # endif | |
432 #endif | |
433 #ifdef FEAT_MULTI_LANG | |
434 "+multi_lang", | |
435 #else | |
436 "-multi_lang", | |
437 #endif | |
14 | 438 #ifdef FEAT_MZSCHEME |
132 | 439 # ifdef DYNAMIC_MZSCHEME |
440 "+mzscheme/dyn", | |
441 # else | |
14 | 442 "+mzscheme", |
132 | 443 # endif |
14 | 444 #else |
445 "-mzscheme", | |
446 #endif | |
7 | 447 #ifdef FEAT_NETBEANS_INTG |
448 "+netbeans_intg", | |
449 #else | |
450 "-netbeans_intg", | |
451 #endif | |
452 #ifdef FEAT_GUI_W32 | |
453 # ifdef FEAT_OLE | |
454 "+ole", | |
455 # else | |
456 "-ole", | |
457 # endif | |
458 #endif | |
459 #ifdef FEAT_PATH_EXTRA | |
460 "+path_extra", | |
461 #else | |
462 "-path_extra", | |
463 #endif | |
464 #ifdef FEAT_PERL | |
465 # ifdef DYNAMIC_PERL | |
466 "+perl/dyn", | |
467 # else | |
468 "+perl", | |
469 # endif | |
470 #else | |
471 "-perl", | |
472 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
473 #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
|
474 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
475 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
476 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
477 #endif |
7 | 478 #ifdef FEAT_PRINTER |
479 # ifdef FEAT_POSTSCRIPT | |
480 "+postscript", | |
481 # else | |
482 "-postscript", | |
483 # endif | |
484 "+printer", | |
485 #else | |
486 "-printer", | |
487 #endif | |
170 | 488 #ifdef FEAT_PROFILE |
489 "+profile", | |
490 #else | |
491 "-profile", | |
492 #endif | |
7 | 493 #ifdef FEAT_PYTHON |
494 # ifdef DYNAMIC_PYTHON | |
495 "+python/dyn", | |
496 # else | |
497 "+python", | |
498 # endif | |
499 #else | |
500 "-python", | |
501 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
502 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
503 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
504 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
505 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
506 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
507 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
508 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
509 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
510 #endif |
7 | 511 #ifdef FEAT_QUICKFIX |
512 "+quickfix", | |
513 #else | |
514 "-quickfix", | |
515 #endif | |
857 | 516 #ifdef FEAT_RELTIME |
517 "+reltime", | |
518 #else | |
519 "-reltime", | |
520 #endif | |
7 | 521 #ifdef FEAT_RIGHTLEFT |
522 "+rightleft", | |
523 #else | |
524 "-rightleft", | |
525 #endif | |
526 #ifdef FEAT_RUBY | |
527 # ifdef DYNAMIC_RUBY | |
528 "+ruby/dyn", | |
529 # else | |
530 "+ruby", | |
531 # endif | |
532 #else | |
533 "-ruby", | |
534 #endif | |
535 #ifdef FEAT_SCROLLBIND | |
536 "+scrollbind", | |
537 #else | |
538 "-scrollbind", | |
539 #endif | |
540 #ifdef FEAT_SIGNS | |
541 "+signs", | |
542 #else | |
543 "-signs", | |
544 #endif | |
545 #ifdef FEAT_SMARTINDENT | |
546 "+smartindent", | |
547 #else | |
548 "-smartindent", | |
549 #endif | |
550 #ifdef FEAT_SNIFF | |
551 "+sniff", | |
552 #else | |
553 "-sniff", | |
554 #endif | |
1989 | 555 #ifdef STARTUPTIME |
556 "+startuptime", | |
557 #else | |
558 "-startuptime", | |
559 #endif | |
7 | 560 #ifdef FEAT_STL_OPT |
561 "+statusline", | |
562 #else | |
563 "-statusline", | |
564 #endif | |
565 #ifdef FEAT_SUN_WORKSHOP | |
566 "+sun_workshop", | |
567 #else | |
568 "-sun_workshop", | |
569 #endif | |
570 #ifdef FEAT_SYN_HL | |
571 "+syntax", | |
572 #else | |
573 "-syntax", | |
574 #endif | |
575 /* only interesting on Unix systems */ | |
576 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
577 "+system()", | |
578 #endif | |
579 #ifdef FEAT_TAG_BINS | |
580 "+tag_binary", | |
581 #else | |
582 "-tag_binary", | |
583 #endif | |
584 #ifdef FEAT_TAG_OLDSTATIC | |
585 "+tag_old_static", | |
586 #else | |
587 "-tag_old_static", | |
588 #endif | |
589 #ifdef FEAT_TAG_ANYWHITE | |
590 "+tag_any_white", | |
591 #else | |
592 "-tag_any_white", | |
593 #endif | |
594 #ifdef FEAT_TCL | |
595 # ifdef DYNAMIC_TCL | |
596 "+tcl/dyn", | |
597 # else | |
598 "+tcl", | |
599 # endif | |
600 #else | |
601 "-tcl", | |
602 #endif | |
603 #if defined(UNIX) || defined(__EMX__) | |
604 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
605 # ifdef TERMINFO | |
606 "+terminfo", | |
607 # else | |
608 "-terminfo", | |
609 # endif | |
610 #else /* unix always includes termcap support */ | |
611 # ifdef HAVE_TGETENT | |
612 "+tgetent", | |
613 # else | |
614 "-tgetent", | |
615 # endif | |
616 #endif | |
617 #ifdef FEAT_TERMRESPONSE | |
618 "+termresponse", | |
619 #else | |
620 "-termresponse", | |
621 #endif | |
622 #ifdef FEAT_TEXTOBJ | |
623 "+textobjects", | |
624 #else | |
625 "-textobjects", | |
626 #endif | |
627 #ifdef FEAT_TITLE | |
628 "+title", | |
629 #else | |
630 "-title", | |
631 #endif | |
632 #ifdef FEAT_TOOLBAR | |
633 "+toolbar", | |
634 #else | |
635 "-toolbar", | |
636 #endif | |
637 #ifdef FEAT_USR_CMDS | |
638 "+user_commands", | |
639 #else | |
640 "-user_commands", | |
641 #endif | |
642 #ifdef FEAT_VERTSPLIT | |
643 "+vertsplit", | |
644 #else | |
645 "-vertsplit", | |
646 #endif | |
647 #ifdef FEAT_VIRTUALEDIT | |
648 "+virtualedit", | |
649 #else | |
650 "-virtualedit", | |
651 #endif | |
652 "+visual", | |
5735 | 653 #ifdef FEAT_VISUALEXTRA |
7 | 654 "+visualextra", |
5735 | 655 #else |
7 | 656 "-visualextra", |
657 #endif | |
658 #ifdef FEAT_VIMINFO | |
659 "+viminfo", | |
660 #else | |
661 "-viminfo", | |
662 #endif | |
663 #ifdef FEAT_VREPLACE | |
664 "+vreplace", | |
665 #else | |
666 "-vreplace", | |
667 #endif | |
668 #ifdef FEAT_WILDIGN | |
669 "+wildignore", | |
670 #else | |
671 "-wildignore", | |
672 #endif | |
673 #ifdef FEAT_WILDMENU | |
674 "+wildmenu", | |
675 #else | |
676 "-wildmenu", | |
677 #endif | |
678 #ifdef FEAT_WINDOWS | |
679 "+windows", | |
680 #else | |
681 "-windows", | |
682 #endif | |
683 #ifdef FEAT_WRITEBACKUP | |
684 "+writebackup", | |
685 #else | |
686 "-writebackup", | |
687 #endif | |
688 #if defined(UNIX) || defined(VMS) | |
689 # ifdef FEAT_X11 | |
690 "+X11", | |
691 # else | |
692 "-X11", | |
693 # endif | |
694 #endif | |
695 #ifdef FEAT_XFONTSET | |
696 "+xfontset", | |
697 #else | |
698 "-xfontset", | |
699 #endif | |
700 #ifdef FEAT_XIM | |
701 "+xim", | |
702 #else | |
703 "-xim", | |
704 #endif | |
705 #if defined(UNIX) || defined(VMS) | |
706 # ifdef USE_XSMP_INTERACT | |
707 "+xsmp_interact", | |
708 # else | |
709 # ifdef USE_XSMP | |
710 "+xsmp", | |
711 # else | |
712 "-xsmp", | |
713 # endif | |
714 # endif | |
715 # ifdef FEAT_XCLIPBOARD | |
716 "+xterm_clipboard", | |
717 # else | |
718 "-xterm_clipboard", | |
719 # endif | |
720 #endif | |
721 #ifdef FEAT_XTERM_SAVE | |
722 "+xterm_save", | |
723 #else | |
724 "-xterm_save", | |
725 #endif | |
726 #ifdef WIN3264 | |
727 # ifdef FEAT_XPM_W32 | |
728 "+xpm_w32", | |
729 # else | |
730 "-xpm_w32", | |
731 # endif | |
5316 | 732 #else |
733 # ifdef HAVE_XPM | |
734 "+xpm", | |
735 # else | |
736 "-xpm", | |
737 # endif | |
7 | 738 #endif |
739 NULL | |
740 }; | |
741 | |
742 static int included_patches[] = | |
743 { /* Add new patch number below this line */ | |
744 /**/ | |
6151 | 745 413, |
746 /**/ | |
6149 | 747 412, |
748 /**/ | |
6147 | 749 411, |
750 /**/ | |
6145 | 751 410, |
752 /**/ | |
6143 | 753 409, |
754 /**/ | |
6140 | 755 408, |
756 /**/ | |
6138 | 757 407, |
758 /**/ | |
6136 | 759 406, |
760 /**/ | |
6134 | 761 405, |
762 /**/ | |
6132 | 763 404, |
764 /**/ | |
6130 | 765 403, |
766 /**/ | |
6128 | 767 402, |
768 /**/ | |
6126 | 769 401, |
770 /**/ | |
6124 | 771 400, |
772 /**/ | |
6122 | 773 399, |
774 /**/ | |
6120 | 775 398, |
776 /**/ | |
6118 | 777 397, |
778 /**/ | |
6116 | 779 396, |
780 /**/ | |
6114 | 781 395, |
782 /**/ | |
6112 | 783 394, |
784 /**/ | |
6110 | 785 393, |
786 /**/ | |
6108 | 787 392, |
788 /**/ | |
6106 | 789 391, |
790 /**/ | |
6104 | 791 390, |
792 /**/ | |
6102 | 793 389, |
794 /**/ | |
6100 | 795 388, |
796 /**/ | |
6098 | 797 387, |
798 /**/ | |
6096 | 799 386, |
800 /**/ | |
6094 | 801 385, |
802 /**/ | |
6092 | 803 384, |
804 /**/ | |
6089 | 805 383, |
806 /**/ | |
6087 | 807 382, |
808 /**/ | |
6085 | 809 381, |
810 /**/ | |
6083 | 811 380, |
812 /**/ | |
6081 | 813 379, |
814 /**/ | |
6079 | 815 378, |
816 /**/ | |
6077 | 817 377, |
818 /**/ | |
6075 | 819 376, |
820 /**/ | |
6073 | 821 375, |
822 /**/ | |
6071 | 823 374, |
824 /**/ | |
6068 | 825 373, |
826 /**/ | |
6066 | 827 372, |
828 /**/ | |
6064 | 829 371, |
830 /**/ | |
6062 | 831 370, |
832 /**/ | |
6060 | 833 369, |
834 /**/ | |
6058 | 835 368, |
836 /**/ | |
6056 | 837 367, |
838 /**/ | |
6054 | 839 366, |
840 /**/ | |
6052 | 841 365, |
842 /**/ | |
6049 | 843 364, |
844 /**/ | |
6047 | 845 363, |
846 /**/ | |
6045 | 847 362, |
848 /**/ | |
6043 | 849 361, |
850 /**/ | |
6041 | 851 360, |
852 /**/ | |
6039 | 853 359, |
854 /**/ | |
6037 | 855 358, |
856 /**/ | |
6035 | 857 357, |
858 /**/ | |
6033 | 859 356, |
860 /**/ | |
6030 | 861 355, |
862 /**/ | |
6028 | 863 354, |
864 /**/ | |
6026 | 865 353, |
866 /**/ | |
6024 | 867 352, |
868 /**/ | |
6022 | 869 351, |
870 /**/ | |
6020 | 871 350, |
872 /**/ | |
6018 | 873 349, |
874 /**/ | |
6016 | 875 348, |
876 /**/ | |
6014 | 877 347, |
878 /**/ | |
6012 | 879 346, |
880 /**/ | |
6010 | 881 345, |
882 /**/ | |
6007 | 883 344, |
884 /**/ | |
6005 | 885 343, |
886 /**/ | |
6003 | 887 342, |
888 /**/ | |
6001 | 889 341, |
890 /**/ | |
5999 | 891 340, |
892 /**/ | |
5997 | 893 339, |
894 /**/ | |
5995 | 895 338, |
896 /**/ | |
5993 | 897 337, |
898 /**/ | |
5991 | 899 336, |
900 /**/ | |
5989 | 901 335, |
902 /**/ | |
5987 | 903 334, |
904 /**/ | |
5985 | 905 333, |
906 /**/ | |
5983 | 907 332, |
908 /**/ | |
5981 | 909 331, |
910 /**/ | |
5979 | 911 330, |
912 /**/ | |
5977 | 913 329, |
914 /**/ | |
5975 | 915 328, |
916 /**/ | |
5973 | 917 327, |
918 /**/ | |
5971 | 919 326, |
920 /**/ | |
5969 | 921 325, |
922 /**/ | |
5966 | 923 324, |
924 /**/ | |
5964 | 925 323, |
926 /**/ | |
5962 | 927 322, |
928 /**/ | |
5960 | 929 321, |
930 /**/ | |
5958 | 931 320, |
932 /**/ | |
5956 | 933 319, |
934 /**/ | |
5954 | 935 318, |
936 /**/ | |
5952 | 937 317, |
938 /**/ | |
5950 | 939 316, |
940 /**/ | |
5948 | 941 315, |
942 /**/ | |
5946 | 943 314, |
944 /**/ | |
5944 | 945 313, |
946 /**/ | |
5942 | 947 312, |
948 /**/ | |
5940 | 949 311, |
950 /**/ | |
5938 | 951 310, |
952 /**/ | |
5936 | 953 309, |
954 /**/ | |
5934 | 955 308, |
956 /**/ | |
5932 | 957 307, |
958 /**/ | |
5930 | 959 306, |
960 /**/ | |
5927 | 961 305, |
962 /**/ | |
5925 | 963 304, |
964 /**/ | |
5923 | 965 303, |
966 /**/ | |
5921 | 967 302, |
968 /**/ | |
5919 | 969 301, |
970 /**/ | |
5917 | 971 300, |
972 /**/ | |
5915 | 973 299, |
974 /**/ | |
5913 | 975 298, |
976 /**/ | |
5911 | 977 297, |
978 /**/ | |
5909 | 979 296, |
980 /**/ | |
5905 | 981 295, |
982 /**/ | |
5903 | 983 294, |
984 /**/ | |
5901 | 985 293, |
986 /**/ | |
5899 | 987 292, |
988 /**/ | |
5897 | 989 291, |
990 /**/ | |
5895 | 991 290, |
992 /**/ | |
5893 | 993 289, |
994 /**/ | |
5891 | 995 288, |
996 /**/ | |
5889 | 997 287, |
998 /**/ | |
5887 | 999 286, |
1000 /**/ | |
5885 | 1001 285, |
1002 /**/ | |
5883 | 1003 284, |
1004 /**/ | |
5881 | 1005 283, |
1006 /**/ | |
5879 | 1007 282, |
1008 /**/ | |
5877 | 1009 281, |
1010 /**/ | |
5875 | 1011 280, |
1012 /**/ | |
5873 | 1013 279, |
1014 /**/ | |
5871 | 1015 278, |
1016 /**/ | |
5869 | 1017 277, |
1018 /**/ | |
5867 | 1019 276, |
1020 /**/ | |
5865 | 1021 275, |
1022 /**/ | |
5863 | 1023 274, |
1024 /**/ | |
5860 | 1025 273, |
1026 /**/ | |
5858 | 1027 272, |
1028 /**/ | |
5856 | 1029 271, |
1030 /**/ | |
5854 | 1031 270, |
1032 /**/ | |
5852 | 1033 269, |
1034 /**/ | |
5850 | 1035 268, |
1036 /**/ | |
5848 | 1037 267, |
1038 /**/ | |
5846 | 1039 266, |
1040 /**/ | |
5844 | 1041 265, |
1042 /**/ | |
5842 | 1043 264, |
1044 /**/ | |
5840 | 1045 263, |
1046 /**/ | |
5838 | 1047 262, |
1048 /**/ | |
5836 | 1049 261, |
1050 /**/ | |
5834 | 1051 260, |
1052 /**/ | |
5832 | 1053 259, |
1054 /**/ | |
5830 | 1055 258, |
1056 /**/ | |
5828 | 1057 257, |
1058 /**/ | |
5826 | 1059 256, |
1060 /**/ | |
5824 | 1061 255, |
1062 /**/ | |
5822 | 1063 254, |
1064 /**/ | |
5820 | 1065 253, |
1066 /**/ | |
5818 | 1067 252, |
1068 /**/ | |
5816 | 1069 251, |
1070 /**/ | |
5812 | 1071 250, |
1072 /**/ | |
5810 | 1073 249, |
1074 /**/ | |
5808 | 1075 248, |
1076 /**/ | |
5806 | 1077 247, |
1078 /**/ | |
5804 | 1079 246, |
1080 /**/ | |
5802 | 1081 245, |
1082 /**/ | |
5800 | 1083 244, |
1084 /**/ | |
5798 | 1085 243, |
1086 /**/ | |
5796 | 1087 242, |
1088 /**/ | |
5794 | 1089 241, |
1090 /**/ | |
5792 | 1091 240, |
1092 /**/ | |
5790 | 1093 239, |
1094 /**/ | |
5788 | 1095 238, |
1096 /**/ | |
5786 | 1097 237, |
1098 /**/ | |
5784 | 1099 236, |
1100 /**/ | |
5782 | 1101 235, |
1102 /**/ | |
5780 | 1103 234, |
1104 /**/ | |
5778 | 1105 233, |
1106 /**/ | |
5776 | 1107 232, |
1108 /**/ | |
5774 | 1109 231, |
1110 /**/ | |
5772 | 1111 230, |
1112 /**/ | |
5770 | 1113 229, |
1114 /**/ | |
5768 | 1115 228, |
1116 /**/ | |
5766 | 1117 227, |
1118 /**/ | |
5764 | 1119 226, |
1120 /**/ | |
5761 | 1121 225, |
1122 /**/ | |
5759 | 1123 224, |
1124 /**/ | |
5757 | 1125 223, |
1126 /**/ | |
5755 | 1127 222, |
1128 /**/ | |
5753 | 1129 221, |
1130 /**/ | |
5751 | 1131 220, |
1132 /**/ | |
5749 | 1133 219, |
1134 /**/ | |
5747 | 1135 218, |
1136 /**/ | |
5745 | 1137 217, |
1138 /**/ | |
5743 | 1139 216, |
1140 /**/ | |
5741 | 1141 215, |
1142 /**/ | |
5739 | 1143 214, |
1144 /**/ | |
5737 | 1145 213, |
1146 /**/ | |
5735 | 1147 212, |
1148 /**/ | |
5732 | 1149 211, |
1150 /**/ | |
5730 | 1151 210, |
1152 /**/ | |
5728 | 1153 209, |
1154 /**/ | |
5726 | 1155 208, |
1156 /**/ | |
5724 | 1157 207, |
1158 /**/ | |
5722 | 1159 206, |
1160 /**/ | |
5720 | 1161 205, |
1162 /**/ | |
5718 | 1163 204, |
1164 /**/ | |
5716 | 1165 203, |
1166 /**/ | |
5714 | 1167 202, |
1168 /**/ | |
5712 | 1169 201, |
1170 /**/ | |
5710 | 1171 200, |
1172 /**/ | |
5708 | 1173 199, |
1174 /**/ | |
5706 | 1175 198, |
1176 /**/ | |
5704 | 1177 197, |
1178 /**/ | |
5702 | 1179 196, |
1180 /**/ | |
5700 | 1181 195, |
1182 /**/ | |
5698 | 1183 194, |
1184 /**/ | |
5695 | 1185 193, |
1186 /**/ | |
5693 | 1187 192, |
1188 /**/ | |
5690 | 1189 191, |
1190 /**/ | |
5688 | 1191 190, |
1192 /**/ | |
5686 | 1193 189, |
1194 /**/ | |
5684 | 1195 188, |
1196 /**/ | |
5682 | 1197 187, |
1198 /**/ | |
5680 | 1199 186, |
1200 /**/ | |
5678 | 1201 185, |
1202 /**/ | |
5676 | 1203 184, |
1204 /**/ | |
5674 | 1205 183, |
1206 /**/ | |
5672 | 1207 182, |
1208 /**/ | |
5670 | 1209 181, |
1210 /**/ | |
5668 | 1211 180, |
1212 /**/ | |
5666 | 1213 179, |
1214 /**/ | |
5664 | 1215 178, |
1216 /**/ | |
5661 | 1217 177, |
1218 /**/ | |
5659 | 1219 176, |
1220 /**/ | |
5657 | 1221 175, |
1222 /**/ | |
5655 | 1223 174, |
1224 /**/ | |
5653 | 1225 173, |
1226 /**/ | |
5651 | 1227 172, |
1228 /**/ | |
5649 | 1229 171, |
1230 /**/ | |
5647 | 1231 170, |
1232 /**/ | |
5645 | 1233 169, |
1234 /**/ | |
5643 | 1235 168, |
1236 /**/ | |
5641 | 1237 167, |
1238 /**/ | |
5639 | 1239 166, |
1240 /**/ | |
5637 | 1241 165, |
1242 /**/ | |
5635 | 1243 164, |
1244 /**/ | |
5633 | 1245 163, |
1246 /**/ | |
5631 | 1247 162, |
1248 /**/ | |
5629 | 1249 161, |
1250 /**/ | |
5627 | 1251 160, |
1252 /**/ | |
5625 | 1253 159, |
1254 /**/ | |
5623 | 1255 158, |
1256 /**/ | |
5621 | 1257 157, |
1258 /**/ | |
5619 | 1259 156, |
1260 /**/ | |
5616 | 1261 155, |
1262 /**/ | |
5614 | 1263 154, |
1264 /**/ | |
5612 | 1265 153, |
1266 /**/ | |
5610 | 1267 152, |
1268 /**/ | |
5608 | 1269 151, |
1270 /**/ | |
5606 | 1271 150, |
1272 /**/ | |
5604 | 1273 149, |
1274 /**/ | |
5602 | 1275 148, |
1276 /**/ | |
5600 | 1277 147, |
1278 /**/ | |
5598 | 1279 146, |
1280 /**/ | |
5596 | 1281 145, |
1282 /**/ | |
5594 | 1283 144, |
1284 /**/ | |
5592 | 1285 143, |
1286 /**/ | |
5590 | 1287 142, |
1288 /**/ | |
5588 | 1289 141, |
1290 /**/ | |
5586 | 1291 140, |
1292 /**/ | |
5584 | 1293 139, |
1294 /**/ | |
5582 | 1295 138, |
1296 /**/ | |
5580 | 1297 137, |
1298 /**/ | |
5578 | 1299 136, |
1300 /**/ | |
5575 | 1301 135, |
1302 /**/ | |
5573 | 1303 134, |
1304 /**/ | |
5571 | 1305 133, |
1306 /**/ | |
5569 | 1307 132, |
1308 /**/ | |
5566 | 1309 131, |
1310 /**/ | |
5564 | 1311 130, |
1312 /**/ | |
5562 | 1313 129, |
1314 /**/ | |
5560 | 1315 128, |
1316 /**/ | |
5558 | 1317 127, |
1318 /**/ | |
5556 | 1319 126, |
1320 /**/ | |
5553 | 1321 125, |
1322 /**/ | |
5551 | 1323 124, |
1324 /**/ | |
5549 | 1325 123, |
1326 /**/ | |
5547 | 1327 122, |
1328 /**/ | |
5545 | 1329 121, |
1330 /**/ | |
5543 | 1331 120, |
1332 /**/ | |
5541 | 1333 119, |
1334 /**/ | |
5539 | 1335 118, |
1336 /**/ | |
5537 | 1337 117, |
1338 /**/ | |
5535 | 1339 116, |
1340 /**/ | |
5533 | 1341 115, |
1342 /**/ | |
5531 | 1343 114, |
1344 /**/ | |
5529 | 1345 113, |
1346 /**/ | |
5527 | 1347 112, |
1348 /**/ | |
5525 | 1349 111, |
1350 /**/ | |
5523 | 1351 110, |
1352 /**/ | |
5521 | 1353 109, |
1354 /**/ | |
5519 | 1355 108, |
1356 /**/ | |
5517 | 1357 107, |
1358 /**/ | |
5515 | 1359 106, |
1360 /**/ | |
5513 | 1361 105, |
1362 /**/ | |
5511 | 1363 104, |
1364 /**/ | |
5508 | 1365 103, |
1366 /**/ | |
5506 | 1367 102, |
1368 /**/ | |
5504 | 1369 101, |
1370 /**/ | |
5502 | 1371 100, |
1372 /**/ | |
5500 | 1373 99, |
1374 /**/ | |
5498 | 1375 98, |
1376 /**/ | |
5496 | 1377 97, |
1378 /**/ | |
5494 | 1379 96, |
1380 /**/ | |
5492 | 1381 95, |
1382 /**/ | |
5490 | 1383 94, |
1384 /**/ | |
5488 | 1385 93, |
1386 /**/ | |
5485 | 1387 92, |
1388 /**/ | |
5483 | 1389 91, |
1390 /**/ | |
5481 | 1391 90, |
1392 /**/ | |
5479 | 1393 89, |
1394 /**/ | |
5477 | 1395 88, |
1396 /**/ | |
5475 | 1397 87, |
1398 /**/ | |
5473 | 1399 86, |
1400 /**/ | |
5471 | 1401 85, |
1402 /**/ | |
5469 | 1403 84, |
1404 /**/ | |
5467 | 1405 83, |
1406 /**/ | |
5464 | 1407 82, |
1408 /**/ | |
5462 | 1409 81, |
1410 /**/ | |
5460 | 1411 80, |
1412 /**/ | |
5458 | 1413 79, |
1414 /**/ | |
5456 | 1415 78, |
1416 /**/ | |
5454 | 1417 77, |
1418 /**/ | |
5452 | 1419 76, |
1420 /**/ | |
5450 | 1421 75, |
1422 /**/ | |
5448 | 1423 74, |
1424 /**/ | |
5446 | 1425 73, |
1426 /**/ | |
5444 | 1427 72, |
1428 /**/ | |
5442 | 1429 71, |
1430 /**/ | |
5440 | 1431 70, |
1432 /**/ | |
5438 | 1433 69, |
1434 /**/ | |
5436 | 1435 68, |
1436 /**/ | |
5434 | 1437 67, |
1438 /**/ | |
5432 | 1439 66, |
1440 /**/ | |
5430 | 1441 65, |
1442 /**/ | |
5428 | 1443 64, |
1444 /**/ | |
5426 | 1445 63, |
1446 /**/ | |
5423 | 1447 62, |
1448 /**/ | |
5421 | 1449 61, |
1450 /**/ | |
5419 | 1451 60, |
1452 /**/ | |
5417 | 1453 59, |
1454 /**/ | |
5415 | 1455 58, |
1456 /**/ | |
5413 | 1457 57, |
1458 /**/ | |
5411 | 1459 56, |
1460 /**/ | |
5409 | 1461 55, |
1462 /**/ | |
5407 | 1463 54, |
1464 /**/ | |
5405 | 1465 53, |
1466 /**/ | |
5403 | 1467 52, |
1468 /**/ | |
5401 | 1469 51, |
1470 /**/ | |
5398 | 1471 50, |
1472 /**/ | |
5396 | 1473 49, |
1474 /**/ | |
5394 | 1475 48, |
1476 /**/ | |
5392 | 1477 47, |
1478 /**/ | |
5390 | 1479 46, |
1480 /**/ | |
5388 | 1481 45, |
1482 /**/ | |
5386 | 1483 44, |
1484 /**/ | |
5384 | 1485 43, |
1486 /**/ | |
5382 | 1487 42, |
1488 /**/ | |
5380 | 1489 41, |
1490 /**/ | |
5378 | 1491 40, |
1492 /**/ | |
5376 | 1493 39, |
1494 /**/ | |
5374 | 1495 38, |
1496 /**/ | |
5372 | 1497 37, |
1498 /**/ | |
5370 | 1499 36, |
1500 /**/ | |
5367 | 1501 35, |
1502 /**/ | |
5365 | 1503 34, |
1504 /**/ | |
5363 | 1505 33, |
1506 /**/ | |
5360 | 1507 32, |
1508 /**/ | |
5358 | 1509 31, |
1510 /**/ | |
5356 | 1511 30, |
1512 /**/ | |
5353 | 1513 29, |
1514 /**/ | |
5351 | 1515 28, |
1516 /**/ | |
5349 | 1517 27, |
1518 /**/ | |
5347 | 1519 26, |
1520 /**/ | |
5345 | 1521 25, |
1522 /**/ | |
5343 | 1523 24, |
1524 /**/ | |
5341 | 1525 23, |
1526 /**/ | |
5338 | 1527 22, |
1528 /**/ | |
5336 | 1529 21, |
1530 /**/ | |
5334 | 1531 20, |
1532 /**/ | |
5332 | 1533 19, |
1534 /**/ | |
5330 | 1535 18, |
1536 /**/ | |
5328 | 1537 17, |
1538 /**/ | |
5326 | 1539 16, |
1540 /**/ | |
5324 | 1541 15, |
1542 /**/ | |
5322 | 1543 14, |
1544 /**/ | |
5320 | 1545 13, |
1546 /**/ | |
5318 | 1547 12, |
1548 /**/ | |
5316 | 1549 11, |
1550 /**/ | |
5314 | 1551 10, |
1552 /**/ | |
5312 | 1553 9, |
1554 /**/ | |
5310 | 1555 8, |
1556 /**/ | |
5308 | 1557 7, |
1558 /**/ | |
5306 | 1559 6, |
1560 /**/ | |
5304 | 1561 5, |
1562 /**/ | |
5302 | 1563 4, |
1564 /**/ | |
5300 | 1565 3, |
1566 /**/ | |
5298 | 1567 2, |
1568 /**/ | |
5296 | 1569 1, |
1570 /**/ | |
7 | 1571 0 |
1572 }; | |
1573 | |
1760 | 1574 /* |
1575 * Place to put a short description when adding a feature with a patch. | |
1576 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
1577 * Also add a comment marker to separate the lines. | |
1578 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 1579 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 1580 */ |
1581 static char *(extra_patches[]) = | |
1582 { /* Add your patch description below this line */ | |
1583 /**/ | |
1584 NULL | |
1585 }; | |
1586 | |
7 | 1587 int |
1588 highest_patch() | |
1589 { | |
1590 int i; | |
1591 int h = 0; | |
1592 | |
1593 for (i = 0; included_patches[i] != 0; ++i) | |
1594 if (included_patches[i] > h) | |
1595 h = included_patches[i]; | |
1596 return h; | |
1597 } | |
1598 | |
1599 #if defined(FEAT_EVAL) || defined(PROTO) | |
1600 /* | |
1601 * Return TRUE if patch "n" has been included. | |
1602 */ | |
1603 int | |
1604 has_patch(n) | |
1605 int n; | |
1606 { | |
1607 int i; | |
1608 | |
1609 for (i = 0; included_patches[i] != 0; ++i) | |
1610 if (included_patches[i] == n) | |
1611 return TRUE; | |
1612 return FALSE; | |
1613 } | |
1614 #endif | |
1615 | |
1616 void | |
1617 ex_version(eap) | |
1618 exarg_T *eap; | |
1619 { | |
1620 /* | |
1621 * Ignore a ":version 9.99" command. | |
1622 */ | |
1623 if (*eap->arg == NUL) | |
1624 { | |
1625 msg_putchar('\n'); | |
1626 list_version(); | |
1627 } | |
1628 } | |
1629 | |
4147 | 1630 /* |
1631 * List all features aligned in columns, dictionary style. | |
1632 */ | |
1633 static void | |
1634 list_features() | |
1635 { | |
1636 int i; | |
1637 int ncol; | |
1638 int nrow; | |
1639 int nfeat = 0; | |
1640 int width = 0; | |
1641 | |
1642 /* Find the length of the longest feature name, use that + 1 as the column | |
1643 * width */ | |
1644 for (i = 0; features[i] != NULL; ++i) | |
1645 { | |
4160 | 1646 int l = (int)STRLEN(features[i]); |
4147 | 1647 |
1648 if (l > width) | |
1649 width = l; | |
1650 ++nfeat; | |
1651 } | |
1652 width += 1; | |
1653 | |
1654 if (Columns < width) | |
1655 { | |
1656 /* Not enough screen columns - show one per line */ | |
1657 for (i = 0; features[i] != NULL; ++i) | |
1658 { | |
1659 version_msg(features[i]); | |
1660 if (msg_col > 0) | |
1661 msg_putchar('\n'); | |
1662 } | |
1663 return; | |
1664 } | |
1665 | |
1666 /* The rightmost column doesn't need a separator. | |
1667 * Sacrifice it to fit in one more column if possible. */ | |
4170 | 1668 ncol = (int) (Columns + 1) / width; |
4147 | 1669 nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0); |
1670 | |
4170 | 1671 /* i counts columns then rows. idx counts rows then columns. */ |
4147 | 1672 for (i = 0; !got_int && i < nrow * ncol; ++i) |
1673 { | |
1674 int idx = (i / ncol) + (i % ncol) * nrow; | |
1675 | |
1676 if (idx < nfeat) | |
1677 { | |
1678 int last_col = (i + 1) % ncol == 0; | |
1679 | |
1680 msg_puts((char_u *)features[idx]); | |
1681 if (last_col) | |
1682 { | |
1683 if (msg_col > 0) | |
1684 msg_putchar('\n'); | |
1685 } | |
1686 else | |
1687 { | |
1688 while (msg_col % width) | |
1689 msg_putchar(' '); | |
1690 } | |
1691 } | |
1692 else | |
4170 | 1693 { |
1694 if (msg_col > 0) | |
1695 msg_putchar('\n'); | |
1696 } | |
4147 | 1697 } |
1698 } | |
4160 | 1699 |
7 | 1700 void |
1701 list_version() | |
1702 { | |
1703 int i; | |
1704 int first; | |
1705 char *s = ""; | |
1706 | |
1707 /* | |
1708 * When adding features here, don't forget to update the list of | |
1709 * internal variables in eval.c! | |
1710 */ | |
1711 MSG(longVersion); | |
1712 #ifdef WIN3264 | |
1713 # ifdef FEAT_GUI_W32 | |
1714 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
1715 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 1716 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 1717 # else |
990 | 1718 # ifdef _WIN64 |
1607 | 1719 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 1720 # else |
1607 | 1721 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 1722 # endif |
7 | 1723 # endif |
1724 if (gui_is_win32s()) | |
1725 MSG_PUTS(_(" in Win32s mode")); | |
1726 # ifdef FEAT_OLE | |
1727 MSG_PUTS(_(" with OLE support")); | |
1728 # endif | |
1729 # else | |
1607 | 1730 # ifdef _WIN64 |
1731 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1732 # else | |
1733 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1734 # endif | |
7 | 1735 # endif |
1736 #endif | |
1737 #ifdef WIN16 | |
1607 | 1738 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 1739 #endif |
1740 #ifdef MSDOS | |
1741 # ifdef DJGPP | |
1607 | 1742 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 1743 # else |
1607 | 1744 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 1745 # endif |
1746 #endif | |
1747 #ifdef MACOS | |
1748 # ifdef MACOS_X | |
1749 # ifdef MACOS_X_UNIX | |
1750 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1751 # else | |
1752 MSG_PUTS(_("\nMacOS X version")); | |
1753 # endif | |
1754 #else | |
1755 MSG_PUTS(_("\nMacOS version")); | |
1756 # endif | |
1757 #endif | |
1758 | |
1759 #ifdef VMS | |
1705 | 1760 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1761 # ifdef HAVE_PATHDEF |
1762 if (*compiled_arch != NUL) | |
1763 { | |
1764 MSG_PUTS(" - "); | |
1765 MSG_PUTS(compiled_arch); | |
1766 } | |
1767 # endif | |
1768 | |
7 | 1769 #endif |
1770 | |
1771 /* Print the list of patch numbers if there is at least one. */ | |
1772 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1773 if (included_patches[0] != 0) | |
1774 { | |
1775 MSG_PUTS(_("\nIncluded patches: ")); | |
1776 first = -1; | |
1777 /* find last one */ | |
1778 for (i = 0; included_patches[i] != 0; ++i) | |
1779 ; | |
1780 while (--i >= 0) | |
1781 { | |
1782 if (first < 0) | |
1783 first = included_patches[i]; | |
1784 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1785 { | |
1786 MSG_PUTS(s); | |
1787 s = ", "; | |
1788 msg_outnum((long)first); | |
1789 if (first != included_patches[i]) | |
1790 { | |
1791 MSG_PUTS("-"); | |
1792 msg_outnum((long)included_patches[i]); | |
1793 } | |
1794 first = -1; | |
1795 } | |
1796 } | |
1797 } | |
1798 | |
1760 | 1799 /* Print the list of extra patch descriptions if there is at least one. */ |
1800 if (extra_patches[0] != NULL) | |
1801 { | |
1802 MSG_PUTS(_("\nExtra patches: ")); | |
1803 s = ""; | |
1804 for (i = 0; extra_patches[i] != NULL; ++i) | |
1805 { | |
1806 MSG_PUTS(s); | |
1807 s = ", "; | |
1808 MSG_PUTS(extra_patches[i]); | |
1809 } | |
1810 } | |
1811 | |
7 | 1812 #ifdef MODIFIED_BY |
1813 MSG_PUTS("\n"); | |
1814 MSG_PUTS(_("Modified by ")); | |
1815 MSG_PUTS(MODIFIED_BY); | |
1816 #endif | |
1817 | |
1818 #ifdef HAVE_PATHDEF | |
1819 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1820 { | |
1821 MSG_PUTS(_("\nCompiled ")); | |
1822 if (*compiled_user != NUL) | |
1823 { | |
1824 MSG_PUTS(_("by ")); | |
1825 MSG_PUTS(compiled_user); | |
1826 } | |
1827 if (*compiled_sys != NUL) | |
1828 { | |
1829 MSG_PUTS("@"); | |
1830 MSG_PUTS(compiled_sys); | |
1831 } | |
1832 } | |
1833 #endif | |
1834 | |
1835 #ifdef FEAT_HUGE | |
1836 MSG_PUTS(_("\nHuge version ")); | |
1837 #else | |
1838 # ifdef FEAT_BIG | |
1839 MSG_PUTS(_("\nBig version ")); | |
1840 # else | |
1841 # ifdef FEAT_NORMAL | |
1842 MSG_PUTS(_("\nNormal version ")); | |
1843 # else | |
1844 # ifdef FEAT_SMALL | |
1845 MSG_PUTS(_("\nSmall version ")); | |
1846 # else | |
1847 MSG_PUTS(_("\nTiny version ")); | |
1848 # endif | |
1849 # endif | |
1850 # endif | |
1851 #endif | |
1852 #ifndef FEAT_GUI | |
1853 MSG_PUTS(_("without GUI.")); | |
1854 #else | |
1855 # ifdef FEAT_GUI_GTK | |
1856 # ifdef FEAT_GUI_GNOME | |
1857 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
1858 # else | |
1859 MSG_PUTS(_("with GTK2 GUI.")); | |
1860 # endif | |
1861 # else | |
1862 # ifdef FEAT_GUI_MOTIF | |
1863 MSG_PUTS(_("with X11-Motif GUI.")); | |
1864 # else | |
1865 # ifdef FEAT_GUI_ATHENA | |
1866 # ifdef FEAT_GUI_NEXTAW | |
1867 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
1868 # else | |
1869 MSG_PUTS(_("with X11-Athena GUI.")); | |
1870 # endif | |
1871 # else | |
1872 # ifdef FEAT_GUI_PHOTON | |
1873 MSG_PUTS(_("with Photon GUI.")); | |
1874 # else | |
1875 # if defined(MSWIN) | |
1876 MSG_PUTS(_("with GUI.")); | |
1877 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1878 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 1879 MSG_PUTS(_("with Carbon GUI.")); |
1880 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1881 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 1882 MSG_PUTS(_("with Cocoa GUI.")); |
1883 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1884 # if defined(MACOS) |
7 | 1885 MSG_PUTS(_("with (classic) GUI.")); |
1886 # endif | |
1887 # endif | |
1888 # endif | |
1889 # endif | |
1890 # endif | |
1891 # endif | |
1892 # endif | |
1893 # endif | |
1894 #endif | |
1895 version_msg(_(" Features included (+) or not (-):\n")); | |
1896 | |
4147 | 1897 list_features(); |
7 | 1898 |
1899 #ifdef SYS_VIMRC_FILE | |
1900 version_msg(_(" system vimrc file: \"")); | |
1901 version_msg(SYS_VIMRC_FILE); | |
1902 version_msg("\"\n"); | |
1903 #endif | |
1904 #ifdef USR_VIMRC_FILE | |
1905 version_msg(_(" user vimrc file: \"")); | |
1906 version_msg(USR_VIMRC_FILE); | |
1907 version_msg("\"\n"); | |
1908 #endif | |
1909 #ifdef USR_VIMRC_FILE2 | |
1910 version_msg(_(" 2nd user vimrc file: \"")); | |
1911 version_msg(USR_VIMRC_FILE2); | |
1912 version_msg("\"\n"); | |
1913 #endif | |
1914 #ifdef USR_VIMRC_FILE3 | |
1915 version_msg(_(" 3rd user vimrc file: \"")); | |
1916 version_msg(USR_VIMRC_FILE3); | |
1917 version_msg("\"\n"); | |
1918 #endif | |
1919 #ifdef USR_EXRC_FILE | |
1920 version_msg(_(" user exrc file: \"")); | |
1921 version_msg(USR_EXRC_FILE); | |
1922 version_msg("\"\n"); | |
1923 #endif | |
1924 #ifdef USR_EXRC_FILE2 | |
1925 version_msg(_(" 2nd user exrc file: \"")); | |
1926 version_msg(USR_EXRC_FILE2); | |
1927 version_msg("\"\n"); | |
1928 #endif | |
1929 #ifdef FEAT_GUI | |
1930 # ifdef SYS_GVIMRC_FILE | |
1931 version_msg(_(" system gvimrc file: \"")); | |
1932 version_msg(SYS_GVIMRC_FILE); | |
1933 version_msg("\"\n"); | |
1934 # endif | |
1935 version_msg(_(" user gvimrc file: \"")); | |
1936 version_msg(USR_GVIMRC_FILE); | |
1937 version_msg("\"\n"); | |
1938 # ifdef USR_GVIMRC_FILE2 | |
1939 version_msg(_("2nd user gvimrc file: \"")); | |
1940 version_msg(USR_GVIMRC_FILE2); | |
1941 version_msg("\"\n"); | |
1942 # endif | |
1943 # ifdef USR_GVIMRC_FILE3 | |
1944 version_msg(_("3rd user gvimrc file: \"")); | |
1945 version_msg(USR_GVIMRC_FILE3); | |
1946 version_msg("\"\n"); | |
1947 # endif | |
1948 #endif | |
1949 #ifdef FEAT_GUI | |
1950 # ifdef SYS_MENU_FILE | |
1951 version_msg(_(" system menu file: \"")); | |
1952 version_msg(SYS_MENU_FILE); | |
1953 version_msg("\"\n"); | |
1954 # endif | |
1955 #endif | |
1956 #ifdef HAVE_PATHDEF | |
1957 if (*default_vim_dir != NUL) | |
1958 { | |
1959 version_msg(_(" fall-back for $VIM: \"")); | |
1960 version_msg((char *)default_vim_dir); | |
1961 version_msg("\"\n"); | |
1962 } | |
1963 if (*default_vimruntime_dir != NUL) | |
1964 { | |
1965 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
1966 version_msg((char *)default_vimruntime_dir); | |
1967 version_msg("\"\n"); | |
1968 } | |
1969 version_msg(_("Compilation: ")); | |
1970 version_msg((char *)all_cflags); | |
1971 version_msg("\n"); | |
1972 #ifdef VMS | |
1973 if (*compiler_version != NUL) | |
1974 { | |
1975 version_msg(_("Compiler: ")); | |
1976 version_msg((char *)compiler_version); | |
1977 version_msg("\n"); | |
1978 } | |
1979 #endif | |
1980 version_msg(_("Linking: ")); | |
1981 version_msg((char *)all_lflags); | |
1982 #endif | |
1983 #ifdef DEBUG | |
1984 version_msg("\n"); | |
1985 version_msg(_(" DEBUG BUILD")); | |
1986 #endif | |
1987 } | |
1988 | |
1989 /* | |
1990 * Output a string for the version message. If it's going to wrap, output a | |
1991 * newline, unless the message is too long to fit on the screen anyway. | |
1992 */ | |
1993 static void | |
1994 version_msg(s) | |
1995 char *s; | |
1996 { | |
1997 int len = (int)STRLEN(s); | |
1998 | |
1999 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
2000 && *s != '\n') | |
2001 msg_putchar('\n'); | |
2002 if (!got_int) | |
2003 MSG_PUTS(s); | |
2004 } | |
2005 | |
2006 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
2007 | |
2008 /* | |
5126
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2009 * 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
|
2010 */ |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2011 void |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2012 maybe_intro_message() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2013 { |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2014 if (bufempty() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2015 && curbuf->b_fname == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2016 #ifdef FEAT_WINDOWS |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2017 && firstwin->w_next == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2018 #endif |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2019 && vim_strchr(p_shm, SHM_INTRO) == NULL) |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2020 intro_message(FALSE); |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2021 } |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2022 |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2023 /* |
7 | 2024 * Give an introductory message about Vim. |
2025 * Only used when starting Vim on an empty file, without a file name. | |
2026 * Or with the ":intro" command (for Sven :-). | |
2027 */ | |
2028 void | |
2029 intro_message(colon) | |
2030 int colon; /* TRUE for ":intro" */ | |
2031 { | |
2032 int i; | |
2033 int row; | |
2034 int blanklines; | |
2035 int sponsor; | |
2036 char *p; | |
2037 static char *(lines[]) = | |
2038 { | |
2039 N_("VIM - Vi IMproved"), | |
2040 "", | |
2041 N_("version "), | |
2042 N_("by Bram Moolenaar et al."), | |
2043 #ifdef MODIFIED_BY | |
2044 " ", | |
2045 #endif | |
2046 N_("Vim is open source and freely distributable"), | |
2047 "", | |
2048 N_("Help poor children in Uganda!"), | |
2049 N_("type :help iccf<Enter> for information "), | |
2050 "", | |
2051 N_("type :q<Enter> to exit "), | |
2052 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2053 N_("type :help version7<Enter> for version info"), |
7 | 2054 NULL, |
2055 "", | |
2056 N_("Running in Vi compatible mode"), | |
2057 N_("type :set nocp<Enter> for Vim defaults"), | |
2058 N_("type :help cp-default<Enter> for info on this"), | |
2059 }; | |
2060 #ifdef FEAT_GUI | |
2061 static char *(gui_lines[]) = | |
2062 { | |
2063 NULL, | |
2064 NULL, | |
2065 NULL, | |
2066 NULL, | |
2067 #ifdef MODIFIED_BY | |
2068 NULL, | |
2069 #endif | |
2070 NULL, | |
2071 NULL, | |
2072 NULL, | |
2073 N_("menu Help->Orphans for information "), | |
2074 NULL, | |
2075 N_("Running modeless, typed text is inserted"), | |
2076 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2077 N_(" for two modes "), | |
2078 NULL, | |
2079 NULL, | |
2080 NULL, | |
2081 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2082 N_(" for Vim defaults "), | |
2083 }; | |
2084 #endif | |
2085 | |
2086 /* blanklines = screen height - # message lines */ | |
2087 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2088 if (!p_cp) | |
2089 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2090 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2091 if (mch_windows95()) | |
2092 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2093 #endif | |
2094 | |
2095 #ifdef FEAT_WINDOWS | |
2096 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2097 if (p_ls > 1) | |
2098 blanklines -= Rows - topframe->fr_height; | |
2099 #endif | |
2100 if (blanklines < 0) | |
2101 blanklines = 0; | |
2102 | |
2103 /* Show the sponsor and register message one out of four times, the Uganda | |
2104 * message two out of four times. */ | |
615 | 2105 sponsor = (int)time(NULL); |
7 | 2106 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2107 | |
2108 /* start displaying the message lines after half of the blank lines */ | |
2109 row = blanklines / 2; | |
2110 if ((row >= 2 && Columns >= 50) || colon) | |
2111 { | |
2112 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2113 { | |
2114 p = lines[i]; | |
2115 #ifdef FEAT_GUI | |
2116 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2117 p = gui_lines[i]; | |
2118 #endif | |
2119 if (p == NULL) | |
2120 { | |
2121 if (!p_cp) | |
2122 break; | |
2123 continue; | |
2124 } | |
2125 if (sponsor != 0) | |
2126 { | |
2127 if (strstr(p, "children") != NULL) | |
2128 p = sponsor < 0 | |
2129 ? N_("Sponsor Vim development!") | |
2130 : N_("Become a registered Vim user!"); | |
2131 else if (strstr(p, "iccf") != NULL) | |
2132 p = sponsor < 0 | |
2133 ? N_("type :help sponsor<Enter> for information ") | |
2134 : N_("type :help register<Enter> for information "); | |
2135 else if (strstr(p, "Orphans") != NULL) | |
2136 p = N_("menu Help->Sponsor/Register for information "); | |
2137 } | |
2138 if (*p != NUL) | |
2139 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2140 ++row; | |
2141 } | |
2142 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2143 if (mch_windows95()) | |
2144 { | |
2145 do_intro_line(++row, | |
2146 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2147 FALSE, hl_attr(HLF_E)); | |
2148 do_intro_line(++row, | |
2149 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2150 FALSE, 0); | |
2151 } | |
2152 #endif | |
2153 } | |
2154 | |
2155 /* Make the wait-return message appear just below the text. */ | |
2156 if (colon) | |
2157 msg_row = row; | |
2158 } | |
2159 | |
2160 static void | |
2161 do_intro_line(row, mesg, add_version, attr) | |
2162 int row; | |
2163 char_u *mesg; | |
2164 int add_version; | |
2165 int attr; | |
2166 { | |
2167 char_u vers[20]; | |
2168 int col; | |
2169 char_u *p; | |
2170 int l; | |
2171 int clen; | |
2172 #ifdef MODIFIED_BY | |
2173 # define MODBY_LEN 150 | |
2174 char_u modby[MODBY_LEN]; | |
2175 | |
2176 if (*mesg == ' ') | |
2177 { | |
1491 | 2178 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2179 l = STRLEN(modby); |
1491 | 2180 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2181 mesg = modby; |
2182 } | |
2183 #endif | |
2184 | |
2185 /* Center the message horizontally. */ | |
2186 col = vim_strsize(mesg); | |
2187 if (add_version) | |
2188 { | |
2189 STRCPY(vers, mediumVersion); | |
2190 if (highest_patch()) | |
2191 { | |
2192 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2193 if (isalpha((int)vers[3])) |
7 | 2194 { |
3396 | 2195 int len = (isalpha((int)vers[4])) ? 5 : 4; |
2196 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
2197 mediumVersion + len); | |
7 | 2198 } |
2199 else | |
2200 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2201 } | |
2202 col += (int)STRLEN(vers); | |
2203 } | |
2204 col = (Columns - col) / 2; | |
2205 if (col < 0) | |
2206 col = 0; | |
2207 | |
2208 /* Split up in parts to highlight <> items differently. */ | |
2209 for (p = mesg; *p != NUL; p += l) | |
2210 { | |
2211 clen = 0; | |
2212 for (l = 0; p[l] != NUL | |
2213 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2214 { | |
2215 #ifdef FEAT_MBYTE | |
2216 if (has_mbyte) | |
2217 { | |
2218 clen += ptr2cells(p + l); | |
474 | 2219 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2220 } |
2221 else | |
2222 #endif | |
2223 clen += byte2cells(p[l]); | |
2224 } | |
2225 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2226 col += clen; | |
2227 } | |
2228 | |
2229 /* Add the version number to the version line. */ | |
2230 if (add_version) | |
2231 screen_puts(vers, row, col, 0); | |
2232 } | |
2233 | |
2234 /* | |
2235 * ":intro": clear screen, display intro screen and wait for return. | |
2236 */ | |
2237 void | |
2238 ex_intro(eap) | |
1876 | 2239 exarg_T *eap UNUSED; |
7 | 2240 { |
2241 screenclear(); | |
2242 intro_message(TRUE); | |
2243 wait_return(TRUE); | |
2244 } |