Mercurial > vim
annotate src/version.c @ 3376:1632640a24b4 v7.3.454
updated for version 7.3.454
Problem: Re-allocating memory slows Vim down.
Solution: Use realloc() in ga_grow(). (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 22 Feb 2012 18:12:32 +0100 |
parents | 791baa7b35e1 |
children | e6392f2aed4c |
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]; | |
37 void | |
38 make_version() | |
39 { | |
40 /* | |
41 * Construct the long version string. Necessary because | |
42 * VAX C can't catenate strings in the preprocessor. | |
43 */ | |
44 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
45 strcat(longVersion, __DATE__); | |
46 strcat(longVersion, " "); | |
47 strcat(longVersion, __TIME__); | |
48 strcat(longVersion, ")"); | |
49 } | |
50 # else | |
51 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
52 # endif | |
53 #else | |
54 char *longVersion = VIM_VERSION_LONG; | |
55 #endif | |
56 | |
57 static void version_msg __ARGS((char *s)); | |
58 | |
59 static char *(features[]) = | |
60 { | |
61 #ifdef AMIGA /* only for Amiga systems */ | |
62 # ifdef FEAT_ARP | |
63 "+ARP", | |
64 # else | |
65 "-ARP", | |
66 # endif | |
67 #endif | |
68 #ifdef FEAT_ARABIC | |
69 "+arabic", | |
70 #else | |
71 "-arabic", | |
72 #endif | |
73 #ifdef FEAT_AUTOCMD | |
74 "+autocmd", | |
75 #else | |
76 "-autocmd", | |
77 #endif | |
78 #ifdef FEAT_BEVAL | |
79 "+balloon_eval", | |
80 #else | |
81 "-balloon_eval", | |
82 #endif | |
83 #ifdef FEAT_BROWSE | |
84 "+browse", | |
85 #else | |
86 "-browse", | |
87 #endif | |
88 #ifdef NO_BUILTIN_TCAPS | |
89 "-builtin_terms", | |
90 #endif | |
91 #ifdef SOME_BUILTIN_TCAPS | |
92 "+builtin_terms", | |
93 #endif | |
94 #ifdef ALL_BUILTIN_TCAPS | |
95 "++builtin_terms", | |
96 #endif | |
97 #ifdef FEAT_BYTEOFF | |
98 "+byte_offset", | |
99 #else | |
100 "-byte_offset", | |
101 #endif | |
102 #ifdef FEAT_CINDENT | |
103 "+cindent", | |
104 #else | |
105 "-cindent", | |
106 #endif | |
107 #ifdef FEAT_CLIENTSERVER | |
108 "+clientserver", | |
109 #else | |
110 "-clientserver", | |
111 #endif | |
112 #ifdef FEAT_CLIPBOARD | |
113 "+clipboard", | |
114 #else | |
115 "-clipboard", | |
116 #endif | |
117 #ifdef FEAT_CMDL_COMPL | |
118 "+cmdline_compl", | |
119 #else | |
120 "-cmdline_compl", | |
121 #endif | |
122 #ifdef FEAT_CMDHIST | |
123 "+cmdline_hist", | |
124 #else | |
125 "-cmdline_hist", | |
126 #endif | |
127 #ifdef FEAT_CMDL_INFO | |
128 "+cmdline_info", | |
129 #else | |
130 "-cmdline_info", | |
131 #endif | |
132 #ifdef FEAT_COMMENTS | |
133 "+comments", | |
134 #else | |
135 "-comments", | |
136 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
137 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
138 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
139 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
140 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
141 #endif |
7 | 142 #ifdef FEAT_CRYPT |
143 "+cryptv", | |
144 #else | |
145 "-cryptv", | |
146 #endif | |
147 #ifdef FEAT_CSCOPE | |
148 "+cscope", | |
149 #else | |
150 "-cscope", | |
151 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
152 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
153 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
154 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
155 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
156 #endif |
647 | 157 #ifdef CURSOR_SHAPE |
158 "+cursorshape", | |
159 #else | |
160 "-cursorshape", | |
161 #endif | |
7 | 162 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
163 "+dialog_con_gui", | |
164 #else | |
165 # if defined(FEAT_CON_DIALOG) | |
166 "+dialog_con", | |
167 # else | |
168 # if defined(FEAT_GUI_DIALOG) | |
169 "+dialog_gui", | |
170 # else | |
171 "-dialog", | |
172 # endif | |
173 # endif | |
174 #endif | |
175 #ifdef FEAT_DIFF | |
176 "+diff", | |
177 #else | |
178 "-diff", | |
179 #endif | |
180 #ifdef FEAT_DIGRAPHS | |
181 "+digraphs", | |
182 #else | |
183 "-digraphs", | |
184 #endif | |
185 #ifdef FEAT_DND | |
186 "+dnd", | |
187 #else | |
188 "-dnd", | |
189 #endif | |
190 #ifdef EBCDIC | |
191 "+ebcdic", | |
192 #else | |
193 "-ebcdic", | |
194 #endif | |
195 #ifdef FEAT_EMACS_TAGS | |
196 "+emacs_tags", | |
197 #else | |
198 "-emacs_tags", | |
199 #endif | |
200 #ifdef FEAT_EVAL | |
201 "+eval", | |
202 #else | |
203 "-eval", | |
204 #endif | |
205 #ifdef FEAT_EX_EXTRA | |
206 "+ex_extra", | |
207 #else | |
208 "-ex_extra", | |
209 #endif | |
210 #ifdef FEAT_SEARCH_EXTRA | |
211 "+extra_search", | |
212 #else | |
213 "-extra_search", | |
214 #endif | |
215 #ifdef FEAT_FKMAP | |
216 "+farsi", | |
217 #else | |
218 "-farsi", | |
219 #endif | |
220 #ifdef FEAT_SEARCHPATH | |
221 "+file_in_path", | |
222 #else | |
223 "-file_in_path", | |
224 #endif | |
225 #ifdef FEAT_FIND_ID | |
226 "+find_in_path", | |
227 #else | |
228 "-find_in_path", | |
229 #endif | |
1621 | 230 #ifdef FEAT_FLOAT |
231 "+float", | |
232 #else | |
233 "-float", | |
234 #endif | |
7 | 235 #ifdef FEAT_FOLDING |
236 "+folding", | |
237 #else | |
238 "-folding", | |
239 #endif | |
240 #ifdef FEAT_FOOTER | |
241 "+footer", | |
242 #else | |
243 "-footer", | |
244 #endif | |
245 /* only interesting on Unix systems */ | |
246 #if !defined(USE_SYSTEM) && defined(UNIX) | |
247 "+fork()", | |
248 #endif | |
249 #ifdef FEAT_GETTEXT | |
250 # ifdef DYNAMIC_GETTEXT | |
251 "+gettext/dyn", | |
252 # else | |
253 "+gettext", | |
254 # endif | |
255 #else | |
256 "-gettext", | |
257 #endif | |
258 #ifdef FEAT_HANGULIN | |
259 "+hangul_input", | |
260 #else | |
261 "-hangul_input", | |
262 #endif | |
263 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
264 # ifdef DYNAMIC_ICONV | |
265 "+iconv/dyn", | |
266 # else | |
267 "+iconv", | |
268 # endif | |
269 #else | |
270 "-iconv", | |
271 #endif | |
272 #ifdef FEAT_INS_EXPAND | |
273 "+insert_expand", | |
274 #else | |
275 "-insert_expand", | |
276 #endif | |
277 #ifdef FEAT_JUMPLIST | |
278 "+jumplist", | |
279 #else | |
280 "-jumplist", | |
281 #endif | |
282 #ifdef FEAT_KEYMAP | |
283 "+keymap", | |
284 #else | |
285 "-keymap", | |
286 #endif | |
287 #ifdef FEAT_LANGMAP | |
288 "+langmap", | |
289 #else | |
290 "-langmap", | |
291 #endif | |
292 #ifdef FEAT_LIBCALL | |
293 "+libcall", | |
294 #else | |
295 "-libcall", | |
296 #endif | |
297 #ifdef FEAT_LINEBREAK | |
298 "+linebreak", | |
299 #else | |
300 "-linebreak", | |
301 #endif | |
302 #ifdef FEAT_LISP | |
303 "+lispindent", | |
304 #else | |
305 "-lispindent", | |
306 #endif | |
307 #ifdef FEAT_LISTCMDS | |
308 "+listcmds", | |
309 #else | |
310 "-listcmds", | |
311 #endif | |
312 #ifdef FEAT_LOCALMAP | |
313 "+localmap", | |
314 #else | |
315 "-localmap", | |
316 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
317 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
318 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
319 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
320 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
321 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
322 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
323 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
324 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
325 #endif |
7 | 326 #ifdef FEAT_MENU |
327 "+menu", | |
328 #else | |
329 "-menu", | |
330 #endif | |
331 #ifdef FEAT_SESSION | |
332 "+mksession", | |
333 #else | |
334 "-mksession", | |
335 #endif | |
336 #ifdef FEAT_MODIFY_FNAME | |
337 "+modify_fname", | |
338 #else | |
339 "-modify_fname", | |
340 #endif | |
341 #ifdef FEAT_MOUSE | |
342 "+mouse", | |
343 # ifdef FEAT_MOUSESHAPE | |
344 "+mouseshape", | |
345 # else | |
346 "-mouseshape", | |
347 # endif | |
348 # else | |
349 "-mouse", | |
350 #endif | |
351 #if defined(UNIX) || defined(VMS) | |
352 # ifdef FEAT_MOUSE_DEC | |
353 "+mouse_dec", | |
354 # else | |
355 "-mouse_dec", | |
356 # endif | |
357 # ifdef FEAT_MOUSE_GPM | |
358 "+mouse_gpm", | |
359 # else | |
360 "-mouse_gpm", | |
361 # endif | |
362 # ifdef FEAT_MOUSE_JSB | |
363 "+mouse_jsbterm", | |
364 # else | |
365 "-mouse_jsbterm", | |
366 # endif | |
367 # ifdef FEAT_MOUSE_NET | |
368 "+mouse_netterm", | |
369 # else | |
370 "-mouse_netterm", | |
371 # endif | |
1621 | 372 # ifdef FEAT_SYSMOUSE |
373 "+mouse_sysmouse", | |
374 # else | |
375 "-mouse_sysmouse", | |
376 # endif | |
7 | 377 # ifdef FEAT_MOUSE_XTERM |
378 "+mouse_xterm", | |
379 # else | |
380 "-mouse_xterm", | |
381 # endif | |
3145 | 382 # ifdef FEAT_MOUSE_URXVT |
383 "+mouse_urxvt", | |
384 # else | |
385 "-mouse_urxvt", | |
386 # endif | |
7 | 387 #endif |
388 #ifdef __QNX__ | |
389 # ifdef FEAT_MOUSE_PTERM | |
390 "+mouse_pterm", | |
391 # else | |
392 "-mouse_pterm", | |
393 # endif | |
394 #endif | |
395 #ifdef FEAT_MBYTE_IME | |
396 # ifdef DYNAMIC_IME | |
397 "+multi_byte_ime/dyn", | |
398 # else | |
399 "+multi_byte_ime", | |
400 # endif | |
401 #else | |
402 # ifdef FEAT_MBYTE | |
403 "+multi_byte", | |
404 # else | |
405 "-multi_byte", | |
406 # endif | |
407 #endif | |
408 #ifdef FEAT_MULTI_LANG | |
409 "+multi_lang", | |
410 #else | |
411 "-multi_lang", | |
412 #endif | |
14 | 413 #ifdef FEAT_MZSCHEME |
132 | 414 # ifdef DYNAMIC_MZSCHEME |
415 "+mzscheme/dyn", | |
416 # else | |
14 | 417 "+mzscheme", |
132 | 418 # endif |
14 | 419 #else |
420 "-mzscheme", | |
421 #endif | |
7 | 422 #ifdef FEAT_NETBEANS_INTG |
423 "+netbeans_intg", | |
424 #else | |
425 "-netbeans_intg", | |
426 #endif | |
427 #ifdef FEAT_GUI_W32 | |
428 # ifdef FEAT_OLE | |
429 "+ole", | |
430 # else | |
431 "-ole", | |
432 # endif | |
433 #endif | |
434 #ifdef FEAT_PATH_EXTRA | |
435 "+path_extra", | |
436 #else | |
437 "-path_extra", | |
438 #endif | |
439 #ifdef FEAT_PERL | |
440 # ifdef DYNAMIC_PERL | |
441 "+perl/dyn", | |
442 # else | |
443 "+perl", | |
444 # endif | |
445 #else | |
446 "-perl", | |
447 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
448 #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
|
449 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
450 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
451 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
452 #endif |
7 | 453 #ifdef FEAT_PRINTER |
454 # ifdef FEAT_POSTSCRIPT | |
455 "+postscript", | |
456 # else | |
457 "-postscript", | |
458 # endif | |
459 "+printer", | |
460 #else | |
461 "-printer", | |
462 #endif | |
170 | 463 #ifdef FEAT_PROFILE |
464 "+profile", | |
465 #else | |
466 "-profile", | |
467 #endif | |
7 | 468 #ifdef FEAT_PYTHON |
469 # ifdef DYNAMIC_PYTHON | |
470 "+python/dyn", | |
471 # else | |
472 "+python", | |
473 # endif | |
474 #else | |
475 "-python", | |
476 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
477 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
478 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
479 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
480 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
481 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
482 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
483 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
484 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
485 #endif |
7 | 486 #ifdef FEAT_QUICKFIX |
487 "+quickfix", | |
488 #else | |
489 "-quickfix", | |
490 #endif | |
857 | 491 #ifdef FEAT_RELTIME |
492 "+reltime", | |
493 #else | |
494 "-reltime", | |
495 #endif | |
7 | 496 #ifdef FEAT_RIGHTLEFT |
497 "+rightleft", | |
498 #else | |
499 "-rightleft", | |
500 #endif | |
501 #ifdef FEAT_RUBY | |
502 # ifdef DYNAMIC_RUBY | |
503 "+ruby/dyn", | |
504 # else | |
505 "+ruby", | |
506 # endif | |
507 #else | |
508 "-ruby", | |
509 #endif | |
510 #ifdef FEAT_SCROLLBIND | |
511 "+scrollbind", | |
512 #else | |
513 "-scrollbind", | |
514 #endif | |
515 #ifdef FEAT_SIGNS | |
516 "+signs", | |
517 #else | |
518 "-signs", | |
519 #endif | |
520 #ifdef FEAT_SMARTINDENT | |
521 "+smartindent", | |
522 #else | |
523 "-smartindent", | |
524 #endif | |
525 #ifdef FEAT_SNIFF | |
526 "+sniff", | |
527 #else | |
528 "-sniff", | |
529 #endif | |
1989 | 530 #ifdef STARTUPTIME |
531 "+startuptime", | |
532 #else | |
533 "-startuptime", | |
534 #endif | |
7 | 535 #ifdef FEAT_STL_OPT |
536 "+statusline", | |
537 #else | |
538 "-statusline", | |
539 #endif | |
540 #ifdef FEAT_SUN_WORKSHOP | |
541 "+sun_workshop", | |
542 #else | |
543 "-sun_workshop", | |
544 #endif | |
545 #ifdef FEAT_SYN_HL | |
546 "+syntax", | |
547 #else | |
548 "-syntax", | |
549 #endif | |
550 /* only interesting on Unix systems */ | |
551 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
552 "+system()", | |
553 #endif | |
554 #ifdef FEAT_TAG_BINS | |
555 "+tag_binary", | |
556 #else | |
557 "-tag_binary", | |
558 #endif | |
559 #ifdef FEAT_TAG_OLDSTATIC | |
560 "+tag_old_static", | |
561 #else | |
562 "-tag_old_static", | |
563 #endif | |
564 #ifdef FEAT_TAG_ANYWHITE | |
565 "+tag_any_white", | |
566 #else | |
567 "-tag_any_white", | |
568 #endif | |
569 #ifdef FEAT_TCL | |
570 # ifdef DYNAMIC_TCL | |
571 "+tcl/dyn", | |
572 # else | |
573 "+tcl", | |
574 # endif | |
575 #else | |
576 "-tcl", | |
577 #endif | |
578 #if defined(UNIX) || defined(__EMX__) | |
579 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
580 # ifdef TERMINFO | |
581 "+terminfo", | |
582 # else | |
583 "-terminfo", | |
584 # endif | |
585 #else /* unix always includes termcap support */ | |
586 # ifdef HAVE_TGETENT | |
587 "+tgetent", | |
588 # else | |
589 "-tgetent", | |
590 # endif | |
591 #endif | |
592 #ifdef FEAT_TERMRESPONSE | |
593 "+termresponse", | |
594 #else | |
595 "-termresponse", | |
596 #endif | |
597 #ifdef FEAT_TEXTOBJ | |
598 "+textobjects", | |
599 #else | |
600 "-textobjects", | |
601 #endif | |
602 #ifdef FEAT_TITLE | |
603 "+title", | |
604 #else | |
605 "-title", | |
606 #endif | |
607 #ifdef FEAT_TOOLBAR | |
608 "+toolbar", | |
609 #else | |
610 "-toolbar", | |
611 #endif | |
612 #ifdef FEAT_USR_CMDS | |
613 "+user_commands", | |
614 #else | |
615 "-user_commands", | |
616 #endif | |
617 #ifdef FEAT_VERTSPLIT | |
618 "+vertsplit", | |
619 #else | |
620 "-vertsplit", | |
621 #endif | |
622 #ifdef FEAT_VIRTUALEDIT | |
623 "+virtualedit", | |
624 #else | |
625 "-virtualedit", | |
626 #endif | |
627 #ifdef FEAT_VISUAL | |
628 "+visual", | |
629 # ifdef FEAT_VISUALEXTRA | |
630 "+visualextra", | |
631 # else | |
632 "-visualextra", | |
633 # endif | |
634 #else | |
635 "-visual", | |
636 #endif | |
637 #ifdef FEAT_VIMINFO | |
638 "+viminfo", | |
639 #else | |
640 "-viminfo", | |
641 #endif | |
642 #ifdef FEAT_VREPLACE | |
643 "+vreplace", | |
644 #else | |
645 "-vreplace", | |
646 #endif | |
647 #ifdef FEAT_WILDIGN | |
648 "+wildignore", | |
649 #else | |
650 "-wildignore", | |
651 #endif | |
652 #ifdef FEAT_WILDMENU | |
653 "+wildmenu", | |
654 #else | |
655 "-wildmenu", | |
656 #endif | |
657 #ifdef FEAT_WINDOWS | |
658 "+windows", | |
659 #else | |
660 "-windows", | |
661 #endif | |
662 #ifdef FEAT_WRITEBACKUP | |
663 "+writebackup", | |
664 #else | |
665 "-writebackup", | |
666 #endif | |
667 #if defined(UNIX) || defined(VMS) | |
668 # ifdef FEAT_X11 | |
669 "+X11", | |
670 # else | |
671 "-X11", | |
672 # endif | |
673 #endif | |
674 #ifdef FEAT_XFONTSET | |
675 "+xfontset", | |
676 #else | |
677 "-xfontset", | |
678 #endif | |
679 #ifdef FEAT_XIM | |
680 "+xim", | |
681 #else | |
682 "-xim", | |
683 #endif | |
684 #if defined(UNIX) || defined(VMS) | |
685 # ifdef USE_XSMP_INTERACT | |
686 "+xsmp_interact", | |
687 # else | |
688 # ifdef USE_XSMP | |
689 "+xsmp", | |
690 # else | |
691 "-xsmp", | |
692 # endif | |
693 # endif | |
694 # ifdef FEAT_XCLIPBOARD | |
695 "+xterm_clipboard", | |
696 # else | |
697 "-xterm_clipboard", | |
698 # endif | |
699 #endif | |
700 #ifdef FEAT_XTERM_SAVE | |
701 "+xterm_save", | |
702 #else | |
703 "-xterm_save", | |
704 #endif | |
705 #ifdef WIN3264 | |
706 # ifdef FEAT_XPM_W32 | |
707 "+xpm_w32", | |
708 # else | |
709 "-xpm_w32", | |
710 # endif | |
711 #endif | |
712 NULL | |
713 }; | |
714 | |
715 static int included_patches[] = | |
716 { /* Add new patch number below this line */ | |
717 /**/ | |
3376 | 718 454, |
719 /**/ | |
3374 | 720 453, |
721 /**/ | |
3372 | 722 452, |
723 /**/ | |
3369 | 724 451, |
725 /**/ | |
3367 | 726 450, |
727 /**/ | |
3365 | 728 449, |
729 /**/ | |
3363 | 730 448, |
731 /**/ | |
3361 | 732 447, |
733 /**/ | |
3359 | 734 446, |
735 /**/ | |
3357 | 736 445, |
737 /**/ | |
3354 | 738 444, |
739 /**/ | |
3352 | 740 443, |
741 /**/ | |
3350 | 742 442, |
743 /**/ | |
3348 | 744 441, |
745 /**/ | |
3346 | 746 440, |
747 /**/ | |
3344 | 748 439, |
749 /**/ | |
3342 | 750 438, |
751 /**/ | |
3340 | 752 437, |
753 /**/ | |
3338 | 754 436, |
755 /**/ | |
3336 | 756 435, |
757 /**/ | |
3334 | 758 434, |
759 /**/ | |
3332 | 760 433, |
761 /**/ | |
3330 | 762 432, |
763 /**/ | |
3328 | 764 431, |
765 /**/ | |
3326 | 766 430, |
767 /**/ | |
3324 | 768 429, |
769 /**/ | |
3322 | 770 428, |
771 /**/ | |
3320 | 772 427, |
773 /**/ | |
3318 | 774 426, |
775 /**/ | |
3316 | 776 425, |
777 /**/ | |
3314 | 778 424, |
779 /**/ | |
3312 | 780 423, |
781 /**/ | |
3310 | 782 422, |
783 /**/ | |
3308 | 784 421, |
785 /**/ | |
3306 | 786 420, |
787 /**/ | |
3304 | 788 419, |
789 /**/ | |
3302 | 790 418, |
791 /**/ | |
3300 | 792 417, |
793 /**/ | |
3298 | 794 416, |
795 /**/ | |
3294 | 796 415, |
797 /**/ | |
3292 | 798 414, |
799 /**/ | |
3290 | 800 413, |
801 /**/ | |
3288 | 802 412, |
803 /**/ | |
3286 | 804 411, |
805 /**/ | |
3284 | 806 410, |
807 /**/ | |
3282 | 808 409, |
809 /**/ | |
3279 | 810 408, |
811 /**/ | |
3277 | 812 407, |
813 /**/ | |
3275 | 814 406, |
815 /**/ | |
3273 | 816 405, |
817 /**/ | |
3271 | 818 404, |
819 /**/ | |
3269 | 820 403, |
821 /**/ | |
3267 | 822 402, |
823 /**/ | |
3265 | 824 401, |
825 /**/ | |
3263 | 826 400, |
827 /**/ | |
3261 | 828 399, |
829 /**/ | |
3259 | 830 398, |
831 /**/ | |
3257 | 832 397, |
833 /**/ | |
3254 | 834 396, |
835 /**/ | |
3252 | 836 395, |
837 /**/ | |
3250 | 838 394, |
839 /**/ | |
3248 | 840 393, |
841 /**/ | |
3246 | 842 392, |
843 /**/ | |
3244 | 844 391, |
845 /**/ | |
3242 | 846 390, |
847 /**/ | |
3240 | 848 389, |
849 /**/ | |
3238 | 850 388, |
851 /**/ | |
3235 | 852 387, |
853 /**/ | |
3233 | 854 386, |
855 /**/ | |
3231 | 856 385, |
857 /**/ | |
3229 | 858 384, |
859 /**/ | |
3227 | 860 383, |
861 /**/ | |
3225 | 862 382, |
863 /**/ | |
3222 | 864 381, |
865 /**/ | |
3220 | 866 380, |
867 /**/ | |
3218 | 868 379, |
869 /**/ | |
3216 | 870 378, |
871 /**/ | |
3214 | 872 377, |
873 /**/ | |
3212 | 874 376, |
875 /**/ | |
3210 | 876 375, |
877 /**/ | |
3208 | 878 374, |
879 /**/ | |
3206 | 880 373, |
881 /**/ | |
3204 | 882 372, |
883 /**/ | |
3202 | 884 371, |
885 /**/ | |
3200 | 886 370, |
887 /**/ | |
3198 | 888 369, |
889 /**/ | |
3196 | 890 368, |
891 /**/ | |
3194 | 892 367, |
893 /**/ | |
3192 | 894 366, |
895 /**/ | |
3190 | 896 365, |
897 /**/ | |
3188 | 898 364, |
899 /**/ | |
3186 | 900 363, |
901 /**/ | |
3184 | 902 362, |
903 /**/ | |
3182 | 904 361, |
905 /**/ | |
3180 | 906 360, |
907 /**/ | |
3178 | 908 359, |
909 /**/ | |
3176 | 910 358, |
911 /**/ | |
3174 | 912 357, |
913 /**/ | |
3172 | 914 356, |
915 /**/ | |
3170 | 916 355, |
917 /**/ | |
3168 | 918 354, |
919 /**/ | |
3166 | 920 353, |
921 /**/ | |
3164 | 922 352, |
923 /**/ | |
3162 | 924 351, |
925 /**/ | |
3160 | 926 350, |
927 /**/ | |
3158 | 928 349, |
929 /**/ | |
3156 | 930 348, |
931 /**/ | |
3154 | 932 347, |
933 /**/ | |
3151 | 934 346, |
935 /**/ | |
3149 | 936 345, |
937 /**/ | |
3147 | 938 344, |
939 /**/ | |
3145 | 940 343, |
941 /**/ | |
3143 | 942 342, |
943 /**/ | |
3141 | 944 341, |
945 /**/ | |
3139 | 946 340, |
947 /**/ | |
3137 | 948 339, |
949 /**/ | |
3135 | 950 338, |
951 /**/ | |
3133 | 952 337, |
953 /**/ | |
3131 | 954 336, |
955 /**/ | |
3129 | 956 335, |
957 /**/ | |
3127 | 958 334, |
959 /**/ | |
3125 | 960 333, |
961 /**/ | |
3123 | 962 332, |
963 /**/ | |
3121 | 964 331, |
965 /**/ | |
3119 | 966 330, |
967 /**/ | |
3116 | 968 329, |
969 /**/ | |
3114 | 970 328, |
971 /**/ | |
3112 | 972 327, |
973 /**/ | |
3110 | 974 326, |
975 /**/ | |
3108 | 976 325, |
977 /**/ | |
3106 | 978 324, |
979 /**/ | |
3104 | 980 323, |
981 /**/ | |
3102 | 982 322, |
983 /**/ | |
3100 | 984 321, |
985 /**/ | |
3097 | 986 320, |
987 /**/ | |
3095 | 988 319, |
989 /**/ | |
3093 | 990 318, |
991 /**/ | |
3091 | 992 317, |
993 /**/ | |
3089 | 994 316, |
995 /**/ | |
3087 | 996 315, |
997 /**/ | |
3085 | 998 314, |
999 /**/ | |
3083 | 1000 313, |
1001 /**/ | |
3080 | 1002 312, |
1003 /**/ | |
3078 | 1004 311, |
1005 /**/ | |
3076 | 1006 310, |
1007 /**/ | |
3074 | 1008 309, |
1009 /**/ | |
3072 | 1010 308, |
1011 /**/ | |
3070 | 1012 307, |
1013 /**/ | |
3068 | 1014 306, |
1015 /**/ | |
3066 | 1016 305, |
1017 /**/ | |
3064 | 1018 304, |
1019 /**/ | |
3062 | 1020 303, |
1021 /**/ | |
3060 | 1022 302, |
1023 /**/ | |
3058 | 1024 301, |
1025 /**/ | |
3056 | 1026 300, |
1027 /**/ | |
3054 | 1028 299, |
1029 /**/ | |
3052 | 1030 298, |
1031 /**/ | |
3050 | 1032 297, |
1033 /**/ | |
3048 | 1034 296, |
1035 /**/ | |
3046 | 1036 295, |
1037 /**/ | |
3044 | 1038 294, |
1039 /**/ | |
3042 | 1040 293, |
1041 /**/ | |
3040 | 1042 292, |
1043 /**/ | |
3038 | 1044 291, |
1045 /**/ | |
3036 | 1046 290, |
1047 /**/ | |
3034 | 1048 289, |
1049 /**/ | |
3032 | 1050 288, |
1051 /**/ | |
3030 | 1052 287, |
1053 /**/ | |
3028 | 1054 286, |
1055 /**/ | |
3026 | 1056 285, |
1057 /**/ | |
3024 | 1058 284, |
1059 /**/ | |
3022 | 1060 283, |
1061 /**/ | |
3020 | 1062 282, |
1063 /**/ | |
3018 | 1064 281, |
1065 /**/ | |
3016 | 1066 280, |
1067 /**/ | |
3014 | 1068 279, |
1069 /**/ | |
3012 | 1070 278, |
1071 /**/ | |
3010 | 1072 277, |
1073 /**/ | |
3008 | 1074 276, |
1075 /**/ | |
3006 | 1076 275, |
1077 /**/ | |
3004 | 1078 274, |
1079 /**/ | |
3002 | 1080 273, |
1081 /**/ | |
3000 | 1082 272, |
1083 /**/ | |
2998 | 1084 271, |
1085 /**/ | |
2996 | 1086 270, |
1087 /**/ | |
2994 | 1088 269, |
1089 /**/ | |
2992 | 1090 268, |
1091 /**/ | |
2990 | 1092 267, |
1093 /**/ | |
2988 | 1094 266, |
1095 /**/ | |
2986 | 1096 265, |
1097 /**/ | |
2984 | 1098 264, |
1099 /**/ | |
2982 | 1100 263, |
1101 /**/ | |
2980 | 1102 262, |
1103 /**/ | |
2978 | 1104 261, |
1105 /**/ | |
2976 | 1106 260, |
1107 /**/ | |
2974 | 1108 259, |
1109 /**/ | |
2972 | 1110 258, |
1111 /**/ | |
2970 | 1112 257, |
1113 /**/ | |
2968 | 1114 256, |
1115 /**/ | |
2966 | 1116 255, |
1117 /**/ | |
2963 | 1118 254, |
1119 /**/ | |
2961 | 1120 253, |
1121 /**/ | |
2959 | 1122 252, |
1123 /**/ | |
2957 | 1124 251, |
1125 /**/ | |
2955 | 1126 250, |
1127 /**/ | |
2953 | 1128 249, |
1129 /**/ | |
2951 | 1130 248, |
1131 /**/ | |
2949 | 1132 247, |
1133 /**/ | |
2947 | 1134 246, |
1135 /**/ | |
2945 | 1136 245, |
1137 /**/ | |
2943 | 1138 244, |
1139 /**/ | |
2941 | 1140 243, |
1141 /**/ | |
2939 | 1142 242, |
1143 /**/ | |
2937 | 1144 241, |
1145 /**/ | |
2935 | 1146 240, |
1147 /**/ | |
2933 | 1148 239, |
1149 /**/ | |
2931 | 1150 238, |
1151 /**/ | |
2929 | 1152 237, |
1153 /**/ | |
2927 | 1154 236, |
1155 /**/ | |
2925 | 1156 235, |
1157 /**/ | |
2923 | 1158 234, |
1159 /**/ | |
2921 | 1160 233, |
1161 /**/ | |
2919 | 1162 232, |
1163 /**/ | |
2917 | 1164 231, |
1165 /**/ | |
2915 | 1166 230, |
1167 /**/ | |
2913 | 1168 229, |
1169 /**/ | |
2911 | 1170 228, |
1171 /**/ | |
2909 | 1172 227, |
1173 /**/ | |
2906 | 1174 226, |
1175 /**/ | |
2904 | 1176 225, |
1177 /**/ | |
2902 | 1178 224, |
1179 /**/ | |
2900 | 1180 223, |
1181 /**/ | |
2898 | 1182 222, |
1183 /**/ | |
2896 | 1184 221, |
1185 /**/ | |
2894 | 1186 220, |
1187 /**/ | |
2891 | 1188 219, |
1189 /**/ | |
2889 | 1190 218, |
1191 /**/ | |
2887 | 1192 217, |
1193 /**/ | |
2885 | 1194 216, |
1195 /**/ | |
2883 | 1196 215, |
1197 /**/ | |
2881 | 1198 214, |
1199 /**/ | |
2879 | 1200 213, |
1201 /**/ | |
2877 | 1202 212, |
1203 /**/ | |
2875 | 1204 211, |
1205 /**/ | |
2873 | 1206 210, |
1207 /**/ | |
2871 | 1208 209, |
1209 /**/ | |
2869 | 1210 208, |
1211 /**/ | |
2867 | 1212 207, |
1213 /**/ | |
2865 | 1214 206, |
1215 /**/ | |
2863 | 1216 205, |
1217 /**/ | |
2861 | 1218 204, |
1219 /**/ | |
2859 | 1220 203, |
1221 /**/ | |
2857 | 1222 202, |
1223 /**/ | |
2855 | 1224 201, |
1225 /**/ | |
2853 | 1226 200, |
1227 /**/ | |
2851 | 1228 199, |
1229 /**/ | |
2849 | 1230 198, |
1231 /**/ | |
2847 | 1232 197, |
1233 /**/ | |
2845 | 1234 196, |
1235 /**/ | |
2843 | 1236 195, |
1237 /**/ | |
2841 | 1238 194, |
1239 /**/ | |
2839 | 1240 193, |
1241 /**/ | |
2837 | 1242 192, |
1243 /**/ | |
2834 | 1244 191, |
1245 /**/ | |
2831 | 1246 190, |
1247 /**/ | |
2829 | 1248 189, |
1249 /**/ | |
2827 | 1250 188, |
1251 /**/ | |
2823 | 1252 187, |
1253 /**/ | |
2821 | 1254 186, |
1255 /**/ | |
2819 | 1256 185, |
1257 /**/ | |
2817 | 1258 184, |
1259 /**/ | |
2815 | 1260 183, |
1261 /**/ | |
2813 | 1262 182, |
1263 /**/ | |
2811 | 1264 181, |
1265 /**/ | |
2809 | 1266 180, |
1267 /**/ | |
2807 | 1268 179, |
1269 /**/ | |
2805 | 1270 178, |
1271 /**/ | |
2803 | 1272 177, |
1273 /**/ | |
2801 | 1274 176, |
1275 /**/ | |
2799 | 1276 175, |
1277 /**/ | |
2797 | 1278 174, |
1279 /**/ | |
2795 | 1280 173, |
1281 /**/ | |
2793 | 1282 172, |
1283 /**/ | |
2791 | 1284 171, |
1285 /**/ | |
2789 | 1286 170, |
1287 /**/ | |
2786 | 1288 169, |
1289 /**/ | |
2784 | 1290 168, |
1291 /**/ | |
2782 | 1292 167, |
1293 /**/ | |
2780 | 1294 166, |
1295 /**/ | |
2778 | 1296 165, |
1297 /**/ | |
2776 | 1298 164, |
1299 /**/ | |
2774 | 1300 163, |
1301 /**/ | |
2772 | 1302 162, |
1303 /**/ | |
2770 | 1304 161, |
1305 /**/ | |
2768 | 1306 160, |
1307 /**/ | |
2766 | 1308 159, |
1309 /**/ | |
2764 | 1310 158, |
1311 /**/ | |
2762 | 1312 157, |
1313 /**/ | |
2760 | 1314 156, |
1315 /**/ | |
2758 | 1316 155, |
1317 /**/ | |
2756 | 1318 154, |
1319 /**/ | |
2754 | 1320 153, |
1321 /**/ | |
2752 | 1322 152, |
1323 /**/ | |
2749 | 1324 151, |
1325 /**/ | |
2747 | 1326 150, |
1327 /**/ | |
2745 | 1328 149, |
1329 /**/ | |
2743 | 1330 148, |
1331 /**/ | |
2741 | 1332 147, |
1333 /**/ | |
2739 | 1334 146, |
1335 /**/ | |
2737 | 1336 145, |
1337 /**/ | |
2735 | 1338 144, |
1339 /**/ | |
2730 | 1340 143, |
1341 /**/ | |
2727 | 1342 142, |
1343 /**/ | |
2726 | 1344 141, |
1345 /**/ | |
2724 | 1346 140, |
1347 /**/ | |
2723 | 1348 139, |
1349 /**/ | |
2722 | 1350 138, |
1351 /**/ | |
2721 | 1352 137, |
1353 /**/ | |
2720 | 1354 136, |
1355 /**/ | |
2719 | 1356 135, |
1357 /**/ | |
2718 | 1358 134, |
1359 /**/ | |
2717 | 1360 133, |
1361 /**/ | |
2716 | 1362 132, |
1363 /**/ | |
2715 | 1364 131, |
1365 /**/ | |
2714 | 1366 130, |
1367 /**/ | |
2713 | 1368 129, |
1369 /**/ | |
2712 | 1370 128, |
1371 /**/ | |
2711 | 1372 127, |
1373 /**/ | |
2710 | 1374 126, |
1375 /**/ | |
2708 | 1376 125, |
1377 /**/ | |
2707 | 1378 124, |
1379 /**/ | |
2706 | 1380 123, |
1381 /**/ | |
2705 | 1382 122, |
1383 /**/ | |
2704 | 1384 121, |
1385 /**/ | |
2703 | 1386 120, |
1387 /**/ | |
2702 | 1388 119, |
1389 /**/ | |
2701 | 1390 118, |
1391 /**/ | |
2700 | 1392 117, |
1393 /**/ | |
2699 | 1394 116, |
1395 /**/ | |
2697 | 1396 115, |
1397 /**/ | |
2696 | 1398 114, |
1399 /**/ | |
2695 | 1400 113, |
1401 /**/ | |
2694 | 1402 112, |
1403 /**/ | |
2693 | 1404 111, |
1405 /**/ | |
2692 | 1406 110, |
1407 /**/ | |
2691 | 1408 109, |
1409 /**/ | |
2690 | 1410 108, |
1411 /**/ | |
2689 | 1412 107, |
1413 /**/ | |
2688 | 1414 106, |
1415 /**/ | |
2687 | 1416 105, |
1417 /**/ | |
2686 | 1418 104, |
1419 /**/ | |
2685 | 1420 103, |
1421 /**/ | |
2684 | 1422 102, |
1423 /**/ | |
2683 | 1424 101, |
1425 /**/ | |
2682 | 1426 100, |
1427 /**/ | |
2680 | 1428 99, |
1429 /**/ | |
2679 | 1430 98, |
1431 /**/ | |
2678 | 1432 97, |
1433 /**/ | |
2677 | 1434 96, |
1435 /**/ | |
2676 | 1436 95, |
1437 /**/ | |
2675 | 1438 94, |
1439 /**/ | |
2674 | 1440 93, |
1441 /**/ | |
2673 | 1442 92, |
1443 /**/ | |
2672 | 1444 91, |
1445 /**/ | |
2671 | 1446 90, |
1447 /**/ | |
2670 | 1448 89, |
1449 /**/ | |
2669 | 1450 88, |
1451 /**/ | |
2668 | 1452 87, |
1453 /**/ | |
2667 | 1454 86, |
1455 /**/ | |
2666 | 1456 85, |
1457 /**/ | |
2665 | 1458 84, |
1459 /**/ | |
2664 | 1460 83, |
1461 /**/ | |
2663 | 1462 82, |
1463 /**/ | |
2661 | 1464 81, |
1465 /**/ | |
2660 | 1466 80, |
1467 /**/ | |
2659 | 1468 79, |
1469 /**/ | |
2658 | 1470 78, |
1471 /**/ | |
2657 | 1472 77, |
1473 /**/ | |
2656 | 1474 76, |
1475 /**/ | |
2655 | 1476 75, |
1477 /**/ | |
2654 | 1478 74, |
1479 /**/ | |
2653 | 1480 73, |
1481 /**/ | |
2652 | 1482 72, |
1483 /**/ | |
2651 | 1484 71, |
1485 /**/ | |
2650 | 1486 70, |
1487 /**/ | |
2649 | 1488 69, |
1489 /**/ | |
2648 | 1490 68, |
1491 /**/ | |
2647 | 1492 67, |
1493 /**/ | |
2646 | 1494 66, |
1495 /**/ | |
2645 | 1496 65, |
1497 /**/ | |
2644 | 1498 64, |
1499 /**/ | |
2643 | 1500 63, |
1501 /**/ | |
2641 | 1502 62, |
1503 /**/ | |
2640 | 1504 61, |
1505 /**/ | |
2639 | 1506 60, |
1507 /**/ | |
2638 | 1508 59, |
1509 /**/ | |
2637 | 1510 58, |
1511 /**/ | |
2636 | 1512 57, |
1513 /**/ | |
2635 | 1514 56, |
1515 /**/ | |
2634 | 1516 55, |
1517 /**/ | |
2633 | 1518 54, |
1519 /**/ | |
2632 | 1520 53, |
1521 /**/ | |
2631 | 1522 52, |
1523 /**/ | |
2630 | 1524 51, |
1525 /**/ | |
2629 | 1526 50, |
1527 /**/ | |
2628 | 1528 49, |
1529 /**/ | |
2627 | 1530 48, |
1531 /**/ | |
2626 | 1532 47, |
1533 /**/ | |
2624 | 1534 46, |
1535 /**/ | |
2623 | 1536 45, |
1537 /**/ | |
2622 | 1538 44, |
1539 /**/ | |
2621 | 1540 43, |
1541 /**/ | |
2620 | 1542 42, |
1543 /**/ | |
2619 | 1544 41, |
1545 /**/ | |
2618 | 1546 40, |
1547 /**/ | |
2617 | 1548 39, |
1549 /**/ | |
2616 | 1550 38, |
1551 /**/ | |
2615 | 1552 37, |
1553 /**/ | |
2614 | 1554 36, |
1555 /**/ | |
2613 | 1556 35, |
1557 /**/ | |
2612 | 1558 34, |
1559 /**/ | |
2611 | 1560 33, |
1561 /**/ | |
2610 | 1562 32, |
1563 /**/ | |
2609 | 1564 31, |
1565 /**/ | |
2607 | 1566 30, |
1567 /**/ | |
2606 | 1568 29, |
1569 /**/ | |
2605 | 1570 28, |
1571 /**/ | |
2604 | 1572 27, |
1573 /**/ | |
2603 | 1574 26, |
1575 /**/ | |
2602 | 1576 25, |
1577 /**/ | |
2601 | 1578 24, |
1579 /**/ | |
2600 | 1580 23, |
1581 /**/ | |
2599 | 1582 22, |
1583 /**/ | |
2598 | 1584 21, |
1585 /**/ | |
2597 | 1586 20, |
1587 /**/ | |
2595 | 1588 19, |
1589 /**/ | |
2594 | 1590 18, |
1591 /**/ | |
2593 | 1592 17, |
1593 /**/ | |
2592 | 1594 16, |
1595 /**/ | |
2591 | 1596 15, |
1597 /**/ | |
2590 | 1598 14, |
1599 /**/ | |
2589 | 1600 13, |
1601 /**/ | |
2588 | 1602 12, |
1603 /**/ | |
2586 | 1604 11, |
1605 /**/ | |
2585 | 1606 10, |
1607 /**/ | |
2584 | 1608 9, |
1609 /**/ | |
2583 | 1610 8, |
1611 /**/ | |
2582 | 1612 7, |
1613 /**/ | |
2580 | 1614 6, |
1615 /**/ | |
2579 | 1616 5, |
1617 /**/ | |
2578 | 1618 4, |
1619 /**/ | |
2165
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1620 3, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1621 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1622 2, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1623 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1624 1, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1625 /**/ |
7 | 1626 0 |
1627 }; | |
1628 | |
1760 | 1629 /* |
1630 * Place to put a short description when adding a feature with a patch. | |
1631 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
1632 * Also add a comment marker to separate the lines. | |
1633 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 1634 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 1635 */ |
1636 static char *(extra_patches[]) = | |
1637 { /* Add your patch description below this line */ | |
1638 /**/ | |
1639 NULL | |
1640 }; | |
1641 | |
7 | 1642 int |
1643 highest_patch() | |
1644 { | |
1645 int i; | |
1646 int h = 0; | |
1647 | |
1648 for (i = 0; included_patches[i] != 0; ++i) | |
1649 if (included_patches[i] > h) | |
1650 h = included_patches[i]; | |
1651 return h; | |
1652 } | |
1653 | |
1654 #if defined(FEAT_EVAL) || defined(PROTO) | |
1655 /* | |
1656 * Return TRUE if patch "n" has been included. | |
1657 */ | |
1658 int | |
1659 has_patch(n) | |
1660 int n; | |
1661 { | |
1662 int i; | |
1663 | |
1664 for (i = 0; included_patches[i] != 0; ++i) | |
1665 if (included_patches[i] == n) | |
1666 return TRUE; | |
1667 return FALSE; | |
1668 } | |
1669 #endif | |
1670 | |
1671 void | |
1672 ex_version(eap) | |
1673 exarg_T *eap; | |
1674 { | |
1675 /* | |
1676 * Ignore a ":version 9.99" command. | |
1677 */ | |
1678 if (*eap->arg == NUL) | |
1679 { | |
1680 msg_putchar('\n'); | |
1681 list_version(); | |
1682 } | |
1683 } | |
1684 | |
1685 void | |
1686 list_version() | |
1687 { | |
1688 int i; | |
1689 int first; | |
1690 char *s = ""; | |
1691 | |
1692 /* | |
1693 * When adding features here, don't forget to update the list of | |
1694 * internal variables in eval.c! | |
1695 */ | |
1696 MSG(longVersion); | |
1697 #ifdef WIN3264 | |
1698 # ifdef FEAT_GUI_W32 | |
1699 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
1700 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 1701 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 1702 # else |
990 | 1703 # ifdef _WIN64 |
1607 | 1704 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 1705 # else |
1607 | 1706 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 1707 # endif |
7 | 1708 # endif |
1709 if (gui_is_win32s()) | |
1710 MSG_PUTS(_(" in Win32s mode")); | |
1711 # ifdef FEAT_OLE | |
1712 MSG_PUTS(_(" with OLE support")); | |
1713 # endif | |
1714 # else | |
1607 | 1715 # ifdef _WIN64 |
1716 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1717 # else | |
1718 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1719 # endif | |
7 | 1720 # endif |
1721 #endif | |
1722 #ifdef WIN16 | |
1607 | 1723 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 1724 #endif |
1725 #ifdef MSDOS | |
1726 # ifdef DJGPP | |
1607 | 1727 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 1728 # else |
1607 | 1729 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 1730 # endif |
1731 #endif | |
1732 #ifdef MACOS | |
1733 # ifdef MACOS_X | |
1734 # ifdef MACOS_X_UNIX | |
1735 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1736 # else | |
1737 MSG_PUTS(_("\nMacOS X version")); | |
1738 # endif | |
1739 #else | |
1740 MSG_PUTS(_("\nMacOS version")); | |
1741 # endif | |
1742 #endif | |
1743 | |
1744 #ifdef VMS | |
1705 | 1745 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1746 # ifdef HAVE_PATHDEF |
1747 if (*compiled_arch != NUL) | |
1748 { | |
1749 MSG_PUTS(" - "); | |
1750 MSG_PUTS(compiled_arch); | |
1751 } | |
1752 # endif | |
1753 | |
7 | 1754 #endif |
1755 | |
1756 /* Print the list of patch numbers if there is at least one. */ | |
1757 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1758 if (included_patches[0] != 0) | |
1759 { | |
1760 MSG_PUTS(_("\nIncluded patches: ")); | |
1761 first = -1; | |
1762 /* find last one */ | |
1763 for (i = 0; included_patches[i] != 0; ++i) | |
1764 ; | |
1765 while (--i >= 0) | |
1766 { | |
1767 if (first < 0) | |
1768 first = included_patches[i]; | |
1769 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1770 { | |
1771 MSG_PUTS(s); | |
1772 s = ", "; | |
1773 msg_outnum((long)first); | |
1774 if (first != included_patches[i]) | |
1775 { | |
1776 MSG_PUTS("-"); | |
1777 msg_outnum((long)included_patches[i]); | |
1778 } | |
1779 first = -1; | |
1780 } | |
1781 } | |
1782 } | |
1783 | |
1760 | 1784 /* Print the list of extra patch descriptions if there is at least one. */ |
1785 if (extra_patches[0] != NULL) | |
1786 { | |
1787 MSG_PUTS(_("\nExtra patches: ")); | |
1788 s = ""; | |
1789 for (i = 0; extra_patches[i] != NULL; ++i) | |
1790 { | |
1791 MSG_PUTS(s); | |
1792 s = ", "; | |
1793 MSG_PUTS(extra_patches[i]); | |
1794 } | |
1795 } | |
1796 | |
7 | 1797 #ifdef MODIFIED_BY |
1798 MSG_PUTS("\n"); | |
1799 MSG_PUTS(_("Modified by ")); | |
1800 MSG_PUTS(MODIFIED_BY); | |
1801 #endif | |
1802 | |
1803 #ifdef HAVE_PATHDEF | |
1804 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1805 { | |
1806 MSG_PUTS(_("\nCompiled ")); | |
1807 if (*compiled_user != NUL) | |
1808 { | |
1809 MSG_PUTS(_("by ")); | |
1810 MSG_PUTS(compiled_user); | |
1811 } | |
1812 if (*compiled_sys != NUL) | |
1813 { | |
1814 MSG_PUTS("@"); | |
1815 MSG_PUTS(compiled_sys); | |
1816 } | |
1817 } | |
1818 #endif | |
1819 | |
1820 #ifdef FEAT_HUGE | |
1821 MSG_PUTS(_("\nHuge version ")); | |
1822 #else | |
1823 # ifdef FEAT_BIG | |
1824 MSG_PUTS(_("\nBig version ")); | |
1825 # else | |
1826 # ifdef FEAT_NORMAL | |
1827 MSG_PUTS(_("\nNormal version ")); | |
1828 # else | |
1829 # ifdef FEAT_SMALL | |
1830 MSG_PUTS(_("\nSmall version ")); | |
1831 # else | |
1832 MSG_PUTS(_("\nTiny version ")); | |
1833 # endif | |
1834 # endif | |
1835 # endif | |
1836 #endif | |
1837 #ifndef FEAT_GUI | |
1838 MSG_PUTS(_("without GUI.")); | |
1839 #else | |
1840 # ifdef FEAT_GUI_GTK | |
1841 # ifdef FEAT_GUI_GNOME | |
1842 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
1843 # else | |
1844 MSG_PUTS(_("with GTK2 GUI.")); | |
1845 # endif | |
1846 # else | |
1847 # ifdef FEAT_GUI_MOTIF | |
1848 MSG_PUTS(_("with X11-Motif GUI.")); | |
1849 # else | |
1850 # ifdef FEAT_GUI_ATHENA | |
1851 # ifdef FEAT_GUI_NEXTAW | |
1852 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
1853 # else | |
1854 MSG_PUTS(_("with X11-Athena GUI.")); | |
1855 # endif | |
1856 # else | |
1857 # ifdef FEAT_GUI_PHOTON | |
1858 MSG_PUTS(_("with Photon GUI.")); | |
1859 # else | |
1860 # if defined(MSWIN) | |
1861 MSG_PUTS(_("with GUI.")); | |
1862 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1863 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 1864 MSG_PUTS(_("with Carbon GUI.")); |
1865 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1866 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 1867 MSG_PUTS(_("with Cocoa GUI.")); |
1868 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
1869 # if defined(MACOS) |
7 | 1870 MSG_PUTS(_("with (classic) GUI.")); |
1871 # endif | |
1872 # endif | |
1873 # endif | |
1874 # endif | |
1875 # endif | |
1876 # endif | |
1877 # endif | |
1878 # endif | |
1879 #endif | |
1880 version_msg(_(" Features included (+) or not (-):\n")); | |
1881 | |
1882 /* print all the features */ | |
1883 for (i = 0; features[i] != NULL; ++i) | |
1884 { | |
1885 version_msg(features[i]); | |
1886 if (msg_col > 0) | |
1887 version_msg(" "); | |
1888 } | |
1889 | |
1890 version_msg("\n"); | |
1891 #ifdef SYS_VIMRC_FILE | |
1892 version_msg(_(" system vimrc file: \"")); | |
1893 version_msg(SYS_VIMRC_FILE); | |
1894 version_msg("\"\n"); | |
1895 #endif | |
1896 #ifdef USR_VIMRC_FILE | |
1897 version_msg(_(" user vimrc file: \"")); | |
1898 version_msg(USR_VIMRC_FILE); | |
1899 version_msg("\"\n"); | |
1900 #endif | |
1901 #ifdef USR_VIMRC_FILE2 | |
1902 version_msg(_(" 2nd user vimrc file: \"")); | |
1903 version_msg(USR_VIMRC_FILE2); | |
1904 version_msg("\"\n"); | |
1905 #endif | |
1906 #ifdef USR_VIMRC_FILE3 | |
1907 version_msg(_(" 3rd user vimrc file: \"")); | |
1908 version_msg(USR_VIMRC_FILE3); | |
1909 version_msg("\"\n"); | |
1910 #endif | |
1911 #ifdef USR_EXRC_FILE | |
1912 version_msg(_(" user exrc file: \"")); | |
1913 version_msg(USR_EXRC_FILE); | |
1914 version_msg("\"\n"); | |
1915 #endif | |
1916 #ifdef USR_EXRC_FILE2 | |
1917 version_msg(_(" 2nd user exrc file: \"")); | |
1918 version_msg(USR_EXRC_FILE2); | |
1919 version_msg("\"\n"); | |
1920 #endif | |
1921 #ifdef FEAT_GUI | |
1922 # ifdef SYS_GVIMRC_FILE | |
1923 version_msg(_(" system gvimrc file: \"")); | |
1924 version_msg(SYS_GVIMRC_FILE); | |
1925 version_msg("\"\n"); | |
1926 # endif | |
1927 version_msg(_(" user gvimrc file: \"")); | |
1928 version_msg(USR_GVIMRC_FILE); | |
1929 version_msg("\"\n"); | |
1930 # ifdef USR_GVIMRC_FILE2 | |
1931 version_msg(_("2nd user gvimrc file: \"")); | |
1932 version_msg(USR_GVIMRC_FILE2); | |
1933 version_msg("\"\n"); | |
1934 # endif | |
1935 # ifdef USR_GVIMRC_FILE3 | |
1936 version_msg(_("3rd user gvimrc file: \"")); | |
1937 version_msg(USR_GVIMRC_FILE3); | |
1938 version_msg("\"\n"); | |
1939 # endif | |
1940 #endif | |
1941 #ifdef FEAT_GUI | |
1942 # ifdef SYS_MENU_FILE | |
1943 version_msg(_(" system menu file: \"")); | |
1944 version_msg(SYS_MENU_FILE); | |
1945 version_msg("\"\n"); | |
1946 # endif | |
1947 #endif | |
1948 #ifdef HAVE_PATHDEF | |
1949 if (*default_vim_dir != NUL) | |
1950 { | |
1951 version_msg(_(" fall-back for $VIM: \"")); | |
1952 version_msg((char *)default_vim_dir); | |
1953 version_msg("\"\n"); | |
1954 } | |
1955 if (*default_vimruntime_dir != NUL) | |
1956 { | |
1957 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
1958 version_msg((char *)default_vimruntime_dir); | |
1959 version_msg("\"\n"); | |
1960 } | |
1961 version_msg(_("Compilation: ")); | |
1962 version_msg((char *)all_cflags); | |
1963 version_msg("\n"); | |
1964 #ifdef VMS | |
1965 if (*compiler_version != NUL) | |
1966 { | |
1967 version_msg(_("Compiler: ")); | |
1968 version_msg((char *)compiler_version); | |
1969 version_msg("\n"); | |
1970 } | |
1971 #endif | |
1972 version_msg(_("Linking: ")); | |
1973 version_msg((char *)all_lflags); | |
1974 #endif | |
1975 #ifdef DEBUG | |
1976 version_msg("\n"); | |
1977 version_msg(_(" DEBUG BUILD")); | |
1978 #endif | |
1979 } | |
1980 | |
1981 /* | |
1982 * Output a string for the version message. If it's going to wrap, output a | |
1983 * newline, unless the message is too long to fit on the screen anyway. | |
1984 */ | |
1985 static void | |
1986 version_msg(s) | |
1987 char *s; | |
1988 { | |
1989 int len = (int)STRLEN(s); | |
1990 | |
1991 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
1992 && *s != '\n') | |
1993 msg_putchar('\n'); | |
1994 if (!got_int) | |
1995 MSG_PUTS(s); | |
1996 } | |
1997 | |
1998 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
1999 | |
2000 /* | |
2001 * Give an introductory message about Vim. | |
2002 * Only used when starting Vim on an empty file, without a file name. | |
2003 * Or with the ":intro" command (for Sven :-). | |
2004 */ | |
2005 void | |
2006 intro_message(colon) | |
2007 int colon; /* TRUE for ":intro" */ | |
2008 { | |
2009 int i; | |
2010 int row; | |
2011 int blanklines; | |
2012 int sponsor; | |
2013 char *p; | |
2014 static char *(lines[]) = | |
2015 { | |
2016 N_("VIM - Vi IMproved"), | |
2017 "", | |
2018 N_("version "), | |
2019 N_("by Bram Moolenaar et al."), | |
2020 #ifdef MODIFIED_BY | |
2021 " ", | |
2022 #endif | |
2023 N_("Vim is open source and freely distributable"), | |
2024 "", | |
2025 N_("Help poor children in Uganda!"), | |
2026 N_("type :help iccf<Enter> for information "), | |
2027 "", | |
2028 N_("type :q<Enter> to exit "), | |
2029 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2030 N_("type :help version7<Enter> for version info"), |
7 | 2031 NULL, |
2032 "", | |
2033 N_("Running in Vi compatible mode"), | |
2034 N_("type :set nocp<Enter> for Vim defaults"), | |
2035 N_("type :help cp-default<Enter> for info on this"), | |
2036 }; | |
2037 #ifdef FEAT_GUI | |
2038 static char *(gui_lines[]) = | |
2039 { | |
2040 NULL, | |
2041 NULL, | |
2042 NULL, | |
2043 NULL, | |
2044 #ifdef MODIFIED_BY | |
2045 NULL, | |
2046 #endif | |
2047 NULL, | |
2048 NULL, | |
2049 NULL, | |
2050 N_("menu Help->Orphans for information "), | |
2051 NULL, | |
2052 N_("Running modeless, typed text is inserted"), | |
2053 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2054 N_(" for two modes "), | |
2055 NULL, | |
2056 NULL, | |
2057 NULL, | |
2058 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2059 N_(" for Vim defaults "), | |
2060 }; | |
2061 #endif | |
2062 | |
2063 /* blanklines = screen height - # message lines */ | |
2064 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2065 if (!p_cp) | |
2066 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2067 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2068 if (mch_windows95()) | |
2069 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2070 #endif | |
2071 | |
2072 #ifdef FEAT_WINDOWS | |
2073 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2074 if (p_ls > 1) | |
2075 blanklines -= Rows - topframe->fr_height; | |
2076 #endif | |
2077 if (blanklines < 0) | |
2078 blanklines = 0; | |
2079 | |
2080 /* Show the sponsor and register message one out of four times, the Uganda | |
2081 * message two out of four times. */ | |
615 | 2082 sponsor = (int)time(NULL); |
7 | 2083 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2084 | |
2085 /* start displaying the message lines after half of the blank lines */ | |
2086 row = blanklines / 2; | |
2087 if ((row >= 2 && Columns >= 50) || colon) | |
2088 { | |
2089 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2090 { | |
2091 p = lines[i]; | |
2092 #ifdef FEAT_GUI | |
2093 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2094 p = gui_lines[i]; | |
2095 #endif | |
2096 if (p == NULL) | |
2097 { | |
2098 if (!p_cp) | |
2099 break; | |
2100 continue; | |
2101 } | |
2102 if (sponsor != 0) | |
2103 { | |
2104 if (strstr(p, "children") != NULL) | |
2105 p = sponsor < 0 | |
2106 ? N_("Sponsor Vim development!") | |
2107 : N_("Become a registered Vim user!"); | |
2108 else if (strstr(p, "iccf") != NULL) | |
2109 p = sponsor < 0 | |
2110 ? N_("type :help sponsor<Enter> for information ") | |
2111 : N_("type :help register<Enter> for information "); | |
2112 else if (strstr(p, "Orphans") != NULL) | |
2113 p = N_("menu Help->Sponsor/Register for information "); | |
2114 } | |
2115 if (*p != NUL) | |
2116 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2117 ++row; | |
2118 } | |
2119 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2120 if (mch_windows95()) | |
2121 { | |
2122 do_intro_line(++row, | |
2123 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2124 FALSE, hl_attr(HLF_E)); | |
2125 do_intro_line(++row, | |
2126 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2127 FALSE, 0); | |
2128 } | |
2129 #endif | |
2130 } | |
2131 | |
2132 /* Make the wait-return message appear just below the text. */ | |
2133 if (colon) | |
2134 msg_row = row; | |
2135 } | |
2136 | |
2137 static void | |
2138 do_intro_line(row, mesg, add_version, attr) | |
2139 int row; | |
2140 char_u *mesg; | |
2141 int add_version; | |
2142 int attr; | |
2143 { | |
2144 char_u vers[20]; | |
2145 int col; | |
2146 char_u *p; | |
2147 int l; | |
2148 int clen; | |
2149 #ifdef MODIFIED_BY | |
2150 # define MODBY_LEN 150 | |
2151 char_u modby[MODBY_LEN]; | |
2152 | |
2153 if (*mesg == ' ') | |
2154 { | |
1491 | 2155 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2156 l = STRLEN(modby); |
1491 | 2157 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2158 mesg = modby; |
2159 } | |
2160 #endif | |
2161 | |
2162 /* Center the message horizontally. */ | |
2163 col = vim_strsize(mesg); | |
2164 if (add_version) | |
2165 { | |
2166 STRCPY(vers, mediumVersion); | |
2167 if (highest_patch()) | |
2168 { | |
2169 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2170 if (isalpha((int)vers[3])) |
7 | 2171 { |
2619 | 2172 if (isalpha((int)vers[4])) |
7 | 2173 sprintf((char *)vers + 5, ".%d%s", highest_patch(), |
2174 mediumVersion + 5); | |
2175 else | |
2176 sprintf((char *)vers + 4, ".%d%s", highest_patch(), | |
2177 mediumVersion + 4); | |
2178 } | |
2179 else | |
2180 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2181 } | |
2182 col += (int)STRLEN(vers); | |
2183 } | |
2184 col = (Columns - col) / 2; | |
2185 if (col < 0) | |
2186 col = 0; | |
2187 | |
2188 /* Split up in parts to highlight <> items differently. */ | |
2189 for (p = mesg; *p != NUL; p += l) | |
2190 { | |
2191 clen = 0; | |
2192 for (l = 0; p[l] != NUL | |
2193 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2194 { | |
2195 #ifdef FEAT_MBYTE | |
2196 if (has_mbyte) | |
2197 { | |
2198 clen += ptr2cells(p + l); | |
474 | 2199 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2200 } |
2201 else | |
2202 #endif | |
2203 clen += byte2cells(p[l]); | |
2204 } | |
2205 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2206 col += clen; | |
2207 } | |
2208 | |
2209 /* Add the version number to the version line. */ | |
2210 if (add_version) | |
2211 screen_puts(vers, row, col, 0); | |
2212 } | |
2213 | |
2214 /* | |
2215 * ":intro": clear screen, display intro screen and wait for return. | |
2216 */ | |
2217 void | |
2218 ex_intro(eap) | |
1876 | 2219 exarg_T *eap UNUSED; |
7 | 2220 { |
2221 screenclear(); | |
2222 intro_message(TRUE); | |
2223 wait_return(TRUE); | |
2224 } |