Mercurial > vim
annotate src/version.c @ 3582:e83c5dcea112 v7.3.551
updated for version 7.3.551
Problem: When using :tablose a TabEnter autocommand is triggered too early.
(Karthick)
Solution: Don't trigger *Enter autocommands before closing the tab.
(Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 13 Jun 2012 14:28:20 +0200 |
parents | 297771eff080 |
children | 443c50cd3e88 |
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 /**/ | |
3582 | 718 551, |
719 /**/ | |
3580 | 720 550, |
721 /**/ | |
3578 | 722 549, |
723 /**/ | |
3576 | 724 548, |
725 /**/ | |
3574 | 726 547, |
727 /**/ | |
3572 | 728 546, |
729 /**/ | |
3570 | 730 545, |
731 /**/ | |
3568 | 732 544, |
733 /**/ | |
3566 | 734 543, |
735 /**/ | |
3564 | 736 542, |
737 /**/ | |
3562 | 738 541, |
739 /**/ | |
3560 | 740 540, |
741 /**/ | |
3558 | 742 539, |
743 /**/ | |
3555 | 744 538, |
745 /**/ | |
3553 | 746 537, |
747 /**/ | |
3551 | 748 536, |
749 /**/ | |
3549 | 750 535, |
751 /**/ | |
3547 | 752 534, |
753 /**/ | |
3545 | 754 533, |
755 /**/ | |
3543 | 756 532, |
757 /**/ | |
3541 | 758 531, |
759 /**/ | |
3539 | 760 530, |
761 /**/ | |
3537 | 762 529, |
763 /**/ | |
3535 | 764 528, |
765 /**/ | |
3533 | 766 527, |
767 /**/ | |
3531 | 768 526, |
769 /**/ | |
3529 | 770 525, |
771 /**/ | |
3527 | 772 524, |
773 /**/ | |
774 523, | |
3524 | 775 /**/ |
3522 | 776 522, |
777 /**/ | |
3520 | 778 521, |
779 /**/ | |
3518 | 780 520, |
781 /**/ | |
3516 | 782 519, |
783 /**/ | |
3514 | 784 518, |
785 /**/ | |
3510 | 786 517, |
787 /**/ | |
3508 | 788 516, |
789 /**/ | |
3505 | 790 515, |
791 /**/ | |
3503 | 792 514, |
793 /**/ | |
3501 | 794 513, |
795 /**/ | |
3499 | 796 512, |
797 /**/ | |
3497 | 798 511, |
799 /**/ | |
3494 | 800 510, |
801 /**/ | |
3490 | 802 509, |
803 /**/ | |
3488 | 804 508, |
805 /**/ | |
3486 | 806 507, |
807 /**/ | |
3484 | 808 506, |
809 /**/ | |
3482 | 810 505, |
811 /**/ | |
3480 | 812 504, |
813 /**/ | |
3478 | 814 503, |
815 /**/ | |
3476 | 816 502, |
817 /**/ | |
3474 | 818 501, |
819 /**/ | |
3472 | 820 500, |
821 /**/ | |
3470 | 822 499, |
823 /**/ | |
3468 | 824 498, |
825 /**/ | |
3466 | 826 497, |
827 /**/ | |
3463 | 828 496, |
829 /**/ | |
3461 | 830 495, |
831 /**/ | |
3459 | 832 494, |
833 /**/ | |
3457 | 834 493, |
835 /**/ | |
3454 | 836 492, |
837 /**/ | |
3452 | 838 491, |
839 /**/ | |
3450 | 840 490, |
841 /**/ | |
3448 | 842 489, |
843 /**/ | |
3446 | 844 488, |
845 /**/ | |
3443 | 846 487, |
847 /**/ | |
3441 | 848 486, |
849 /**/ | |
3439 | 850 485, |
851 /**/ | |
3437 | 852 484, |
853 /**/ | |
3435 | 854 483, |
855 /**/ | |
3433 | 856 482, |
857 /**/ | |
3431 | 858 481, |
859 /**/ | |
3429 | 860 480, |
861 /**/ | |
3427 | 862 479, |
863 /**/ | |
3425 | 864 478, |
865 /**/ | |
3423 | 866 477, |
867 /**/ | |
3421 | 868 476, |
869 /**/ | |
3419 | 870 475, |
871 /**/ | |
3417 | 872 474, |
873 /**/ | |
3415 | 874 473, |
875 /**/ | |
3413 | 876 472, |
877 /**/ | |
3411 | 878 471, |
879 /**/ | |
3408 | 880 470, |
881 /**/ | |
3406 | 882 469, |
883 /**/ | |
3404 | 884 468, |
885 /**/ | |
3402 | 886 467, |
887 /**/ | |
3400 | 888 466, |
889 /**/ | |
3398 | 890 465, |
3396 | 891 /**/ |
892 464, | |
893 /**/ | |
3394 | 894 463, |
895 /**/ | |
3392 | 896 462, |
897 /**/ | |
3390 | 898 461, |
899 /**/ | |
3388 | 900 460, |
901 /**/ | |
3386 | 902 459, |
903 /**/ | |
3384 | 904 458, |
905 /**/ | |
3382 | 906 457, |
907 /**/ | |
3380 | 908 456, |
909 /**/ | |
3378 | 910 455, |
911 /**/ | |
3376 | 912 454, |
913 /**/ | |
3374 | 914 453, |
915 /**/ | |
3372 | 916 452, |
917 /**/ | |
3369 | 918 451, |
919 /**/ | |
3367 | 920 450, |
921 /**/ | |
3365 | 922 449, |
923 /**/ | |
3363 | 924 448, |
925 /**/ | |
3361 | 926 447, |
927 /**/ | |
3359 | 928 446, |
929 /**/ | |
3357 | 930 445, |
931 /**/ | |
3354 | 932 444, |
933 /**/ | |
3352 | 934 443, |
935 /**/ | |
3350 | 936 442, |
937 /**/ | |
3348 | 938 441, |
939 /**/ | |
3346 | 940 440, |
941 /**/ | |
3344 | 942 439, |
943 /**/ | |
3342 | 944 438, |
945 /**/ | |
3340 | 946 437, |
947 /**/ | |
3338 | 948 436, |
949 /**/ | |
3336 | 950 435, |
951 /**/ | |
3334 | 952 434, |
953 /**/ | |
3332 | 954 433, |
955 /**/ | |
3330 | 956 432, |
957 /**/ | |
3328 | 958 431, |
959 /**/ | |
3326 | 960 430, |
961 /**/ | |
3324 | 962 429, |
963 /**/ | |
3322 | 964 428, |
965 /**/ | |
3320 | 966 427, |
967 /**/ | |
3318 | 968 426, |
969 /**/ | |
3316 | 970 425, |
971 /**/ | |
3314 | 972 424, |
973 /**/ | |
3312 | 974 423, |
975 /**/ | |
3310 | 976 422, |
977 /**/ | |
3308 | 978 421, |
979 /**/ | |
3306 | 980 420, |
981 /**/ | |
3304 | 982 419, |
983 /**/ | |
3302 | 984 418, |
985 /**/ | |
3300 | 986 417, |
987 /**/ | |
3298 | 988 416, |
989 /**/ | |
3294 | 990 415, |
991 /**/ | |
3292 | 992 414, |
993 /**/ | |
3290 | 994 413, |
995 /**/ | |
3288 | 996 412, |
997 /**/ | |
3286 | 998 411, |
999 /**/ | |
3284 | 1000 410, |
1001 /**/ | |
3282 | 1002 409, |
1003 /**/ | |
3279 | 1004 408, |
1005 /**/ | |
3277 | 1006 407, |
1007 /**/ | |
3275 | 1008 406, |
1009 /**/ | |
3273 | 1010 405, |
1011 /**/ | |
3271 | 1012 404, |
1013 /**/ | |
3269 | 1014 403, |
1015 /**/ | |
3267 | 1016 402, |
1017 /**/ | |
3265 | 1018 401, |
1019 /**/ | |
3263 | 1020 400, |
1021 /**/ | |
3261 | 1022 399, |
1023 /**/ | |
3259 | 1024 398, |
1025 /**/ | |
3257 | 1026 397, |
1027 /**/ | |
3254 | 1028 396, |
1029 /**/ | |
3252 | 1030 395, |
1031 /**/ | |
3250 | 1032 394, |
1033 /**/ | |
3248 | 1034 393, |
1035 /**/ | |
3246 | 1036 392, |
1037 /**/ | |
3244 | 1038 391, |
1039 /**/ | |
3242 | 1040 390, |
1041 /**/ | |
3240 | 1042 389, |
1043 /**/ | |
3238 | 1044 388, |
1045 /**/ | |
3235 | 1046 387, |
1047 /**/ | |
3233 | 1048 386, |
1049 /**/ | |
3231 | 1050 385, |
1051 /**/ | |
3229 | 1052 384, |
1053 /**/ | |
3227 | 1054 383, |
1055 /**/ | |
3225 | 1056 382, |
1057 /**/ | |
3222 | 1058 381, |
1059 /**/ | |
3220 | 1060 380, |
1061 /**/ | |
3218 | 1062 379, |
1063 /**/ | |
3216 | 1064 378, |
1065 /**/ | |
3214 | 1066 377, |
1067 /**/ | |
3212 | 1068 376, |
1069 /**/ | |
3210 | 1070 375, |
1071 /**/ | |
3208 | 1072 374, |
1073 /**/ | |
3206 | 1074 373, |
1075 /**/ | |
3204 | 1076 372, |
1077 /**/ | |
3202 | 1078 371, |
1079 /**/ | |
3200 | 1080 370, |
1081 /**/ | |
3198 | 1082 369, |
1083 /**/ | |
3196 | 1084 368, |
1085 /**/ | |
3194 | 1086 367, |
1087 /**/ | |
3192 | 1088 366, |
1089 /**/ | |
3190 | 1090 365, |
1091 /**/ | |
3188 | 1092 364, |
1093 /**/ | |
3186 | 1094 363, |
1095 /**/ | |
3184 | 1096 362, |
1097 /**/ | |
3182 | 1098 361, |
1099 /**/ | |
3180 | 1100 360, |
1101 /**/ | |
3178 | 1102 359, |
1103 /**/ | |
3176 | 1104 358, |
1105 /**/ | |
3174 | 1106 357, |
1107 /**/ | |
3172 | 1108 356, |
1109 /**/ | |
3170 | 1110 355, |
1111 /**/ | |
3168 | 1112 354, |
1113 /**/ | |
3166 | 1114 353, |
1115 /**/ | |
3164 | 1116 352, |
1117 /**/ | |
3162 | 1118 351, |
1119 /**/ | |
3160 | 1120 350, |
1121 /**/ | |
3158 | 1122 349, |
1123 /**/ | |
3156 | 1124 348, |
1125 /**/ | |
3154 | 1126 347, |
1127 /**/ | |
3151 | 1128 346, |
1129 /**/ | |
3149 | 1130 345, |
1131 /**/ | |
3147 | 1132 344, |
1133 /**/ | |
3145 | 1134 343, |
1135 /**/ | |
3143 | 1136 342, |
1137 /**/ | |
3141 | 1138 341, |
1139 /**/ | |
3139 | 1140 340, |
1141 /**/ | |
3137 | 1142 339, |
1143 /**/ | |
3135 | 1144 338, |
1145 /**/ | |
3133 | 1146 337, |
1147 /**/ | |
3131 | 1148 336, |
1149 /**/ | |
3129 | 1150 335, |
1151 /**/ | |
3127 | 1152 334, |
1153 /**/ | |
3125 | 1154 333, |
1155 /**/ | |
3123 | 1156 332, |
1157 /**/ | |
3121 | 1158 331, |
1159 /**/ | |
3119 | 1160 330, |
1161 /**/ | |
3116 | 1162 329, |
1163 /**/ | |
3114 | 1164 328, |
1165 /**/ | |
3112 | 1166 327, |
1167 /**/ | |
3110 | 1168 326, |
1169 /**/ | |
3108 | 1170 325, |
1171 /**/ | |
3106 | 1172 324, |
1173 /**/ | |
3104 | 1174 323, |
1175 /**/ | |
3102 | 1176 322, |
1177 /**/ | |
3100 | 1178 321, |
1179 /**/ | |
3097 | 1180 320, |
1181 /**/ | |
3095 | 1182 319, |
1183 /**/ | |
3093 | 1184 318, |
1185 /**/ | |
3091 | 1186 317, |
1187 /**/ | |
3089 | 1188 316, |
1189 /**/ | |
3087 | 1190 315, |
1191 /**/ | |
3085 | 1192 314, |
1193 /**/ | |
3083 | 1194 313, |
1195 /**/ | |
3080 | 1196 312, |
1197 /**/ | |
3078 | 1198 311, |
1199 /**/ | |
3076 | 1200 310, |
1201 /**/ | |
3074 | 1202 309, |
1203 /**/ | |
3072 | 1204 308, |
1205 /**/ | |
3070 | 1206 307, |
1207 /**/ | |
3068 | 1208 306, |
1209 /**/ | |
3066 | 1210 305, |
1211 /**/ | |
3064 | 1212 304, |
1213 /**/ | |
3062 | 1214 303, |
1215 /**/ | |
3060 | 1216 302, |
1217 /**/ | |
3058 | 1218 301, |
1219 /**/ | |
3056 | 1220 300, |
1221 /**/ | |
3054 | 1222 299, |
1223 /**/ | |
3052 | 1224 298, |
1225 /**/ | |
3050 | 1226 297, |
1227 /**/ | |
3048 | 1228 296, |
1229 /**/ | |
3046 | 1230 295, |
1231 /**/ | |
3044 | 1232 294, |
1233 /**/ | |
3042 | 1234 293, |
1235 /**/ | |
3040 | 1236 292, |
1237 /**/ | |
3038 | 1238 291, |
1239 /**/ | |
3036 | 1240 290, |
1241 /**/ | |
3034 | 1242 289, |
1243 /**/ | |
3032 | 1244 288, |
1245 /**/ | |
3030 | 1246 287, |
1247 /**/ | |
3028 | 1248 286, |
1249 /**/ | |
3026 | 1250 285, |
1251 /**/ | |
3024 | 1252 284, |
1253 /**/ | |
3022 | 1254 283, |
1255 /**/ | |
3020 | 1256 282, |
1257 /**/ | |
3018 | 1258 281, |
1259 /**/ | |
3016 | 1260 280, |
1261 /**/ | |
3014 | 1262 279, |
1263 /**/ | |
3012 | 1264 278, |
1265 /**/ | |
3010 | 1266 277, |
1267 /**/ | |
3008 | 1268 276, |
1269 /**/ | |
3006 | 1270 275, |
1271 /**/ | |
3004 | 1272 274, |
1273 /**/ | |
3002 | 1274 273, |
1275 /**/ | |
3000 | 1276 272, |
1277 /**/ | |
2998 | 1278 271, |
1279 /**/ | |
2996 | 1280 270, |
1281 /**/ | |
2994 | 1282 269, |
1283 /**/ | |
2992 | 1284 268, |
1285 /**/ | |
2990 | 1286 267, |
1287 /**/ | |
2988 | 1288 266, |
1289 /**/ | |
2986 | 1290 265, |
1291 /**/ | |
2984 | 1292 264, |
1293 /**/ | |
2982 | 1294 263, |
1295 /**/ | |
2980 | 1296 262, |
1297 /**/ | |
2978 | 1298 261, |
1299 /**/ | |
2976 | 1300 260, |
1301 /**/ | |
2974 | 1302 259, |
1303 /**/ | |
2972 | 1304 258, |
1305 /**/ | |
2970 | 1306 257, |
1307 /**/ | |
2968 | 1308 256, |
1309 /**/ | |
2966 | 1310 255, |
1311 /**/ | |
2963 | 1312 254, |
1313 /**/ | |
2961 | 1314 253, |
1315 /**/ | |
2959 | 1316 252, |
1317 /**/ | |
2957 | 1318 251, |
1319 /**/ | |
2955 | 1320 250, |
1321 /**/ | |
2953 | 1322 249, |
1323 /**/ | |
2951 | 1324 248, |
1325 /**/ | |
2949 | 1326 247, |
1327 /**/ | |
2947 | 1328 246, |
1329 /**/ | |
2945 | 1330 245, |
1331 /**/ | |
2943 | 1332 244, |
1333 /**/ | |
2941 | 1334 243, |
1335 /**/ | |
2939 | 1336 242, |
1337 /**/ | |
2937 | 1338 241, |
1339 /**/ | |
2935 | 1340 240, |
1341 /**/ | |
2933 | 1342 239, |
1343 /**/ | |
2931 | 1344 238, |
1345 /**/ | |
2929 | 1346 237, |
1347 /**/ | |
2927 | 1348 236, |
1349 /**/ | |
2925 | 1350 235, |
1351 /**/ | |
2923 | 1352 234, |
1353 /**/ | |
2921 | 1354 233, |
1355 /**/ | |
2919 | 1356 232, |
1357 /**/ | |
2917 | 1358 231, |
1359 /**/ | |
2915 | 1360 230, |
1361 /**/ | |
2913 | 1362 229, |
1363 /**/ | |
2911 | 1364 228, |
1365 /**/ | |
2909 | 1366 227, |
1367 /**/ | |
2906 | 1368 226, |
1369 /**/ | |
2904 | 1370 225, |
1371 /**/ | |
2902 | 1372 224, |
1373 /**/ | |
2900 | 1374 223, |
1375 /**/ | |
2898 | 1376 222, |
1377 /**/ | |
2896 | 1378 221, |
1379 /**/ | |
2894 | 1380 220, |
1381 /**/ | |
2891 | 1382 219, |
1383 /**/ | |
2889 | 1384 218, |
1385 /**/ | |
2887 | 1386 217, |
1387 /**/ | |
2885 | 1388 216, |
1389 /**/ | |
2883 | 1390 215, |
1391 /**/ | |
2881 | 1392 214, |
1393 /**/ | |
2879 | 1394 213, |
1395 /**/ | |
2877 | 1396 212, |
1397 /**/ | |
2875 | 1398 211, |
1399 /**/ | |
2873 | 1400 210, |
1401 /**/ | |
2871 | 1402 209, |
1403 /**/ | |
2869 | 1404 208, |
1405 /**/ | |
2867 | 1406 207, |
1407 /**/ | |
2865 | 1408 206, |
1409 /**/ | |
2863 | 1410 205, |
1411 /**/ | |
2861 | 1412 204, |
1413 /**/ | |
2859 | 1414 203, |
1415 /**/ | |
2857 | 1416 202, |
1417 /**/ | |
2855 | 1418 201, |
1419 /**/ | |
2853 | 1420 200, |
1421 /**/ | |
2851 | 1422 199, |
1423 /**/ | |
2849 | 1424 198, |
1425 /**/ | |
2847 | 1426 197, |
1427 /**/ | |
2845 | 1428 196, |
1429 /**/ | |
2843 | 1430 195, |
1431 /**/ | |
2841 | 1432 194, |
1433 /**/ | |
2839 | 1434 193, |
1435 /**/ | |
2837 | 1436 192, |
1437 /**/ | |
2834 | 1438 191, |
1439 /**/ | |
2831 | 1440 190, |
1441 /**/ | |
2829 | 1442 189, |
1443 /**/ | |
2827 | 1444 188, |
1445 /**/ | |
2823 | 1446 187, |
1447 /**/ | |
2821 | 1448 186, |
1449 /**/ | |
2819 | 1450 185, |
1451 /**/ | |
2817 | 1452 184, |
1453 /**/ | |
2815 | 1454 183, |
1455 /**/ | |
2813 | 1456 182, |
1457 /**/ | |
2811 | 1458 181, |
1459 /**/ | |
2809 | 1460 180, |
1461 /**/ | |
2807 | 1462 179, |
1463 /**/ | |
2805 | 1464 178, |
1465 /**/ | |
2803 | 1466 177, |
1467 /**/ | |
2801 | 1468 176, |
1469 /**/ | |
2799 | 1470 175, |
1471 /**/ | |
2797 | 1472 174, |
1473 /**/ | |
2795 | 1474 173, |
1475 /**/ | |
2793 | 1476 172, |
1477 /**/ | |
2791 | 1478 171, |
1479 /**/ | |
2789 | 1480 170, |
1481 /**/ | |
2786 | 1482 169, |
1483 /**/ | |
2784 | 1484 168, |
1485 /**/ | |
2782 | 1486 167, |
1487 /**/ | |
2780 | 1488 166, |
1489 /**/ | |
2778 | 1490 165, |
1491 /**/ | |
2776 | 1492 164, |
1493 /**/ | |
2774 | 1494 163, |
1495 /**/ | |
2772 | 1496 162, |
1497 /**/ | |
2770 | 1498 161, |
1499 /**/ | |
2768 | 1500 160, |
1501 /**/ | |
2766 | 1502 159, |
1503 /**/ | |
2764 | 1504 158, |
1505 /**/ | |
2762 | 1506 157, |
1507 /**/ | |
2760 | 1508 156, |
1509 /**/ | |
2758 | 1510 155, |
1511 /**/ | |
2756 | 1512 154, |
1513 /**/ | |
2754 | 1514 153, |
1515 /**/ | |
2752 | 1516 152, |
1517 /**/ | |
2749 | 1518 151, |
1519 /**/ | |
2747 | 1520 150, |
1521 /**/ | |
2745 | 1522 149, |
1523 /**/ | |
2743 | 1524 148, |
1525 /**/ | |
2741 | 1526 147, |
1527 /**/ | |
2739 | 1528 146, |
1529 /**/ | |
2737 | 1530 145, |
1531 /**/ | |
2735 | 1532 144, |
1533 /**/ | |
2730 | 1534 143, |
1535 /**/ | |
2727 | 1536 142, |
1537 /**/ | |
2726 | 1538 141, |
1539 /**/ | |
2724 | 1540 140, |
1541 /**/ | |
2723 | 1542 139, |
1543 /**/ | |
2722 | 1544 138, |
1545 /**/ | |
2721 | 1546 137, |
1547 /**/ | |
2720 | 1548 136, |
1549 /**/ | |
2719 | 1550 135, |
1551 /**/ | |
2718 | 1552 134, |
1553 /**/ | |
2717 | 1554 133, |
1555 /**/ | |
2716 | 1556 132, |
1557 /**/ | |
2715 | 1558 131, |
1559 /**/ | |
2714 | 1560 130, |
1561 /**/ | |
2713 | 1562 129, |
1563 /**/ | |
2712 | 1564 128, |
1565 /**/ | |
2711 | 1566 127, |
1567 /**/ | |
2710 | 1568 126, |
1569 /**/ | |
2708 | 1570 125, |
1571 /**/ | |
2707 | 1572 124, |
1573 /**/ | |
2706 | 1574 123, |
1575 /**/ | |
2705 | 1576 122, |
1577 /**/ | |
2704 | 1578 121, |
1579 /**/ | |
2703 | 1580 120, |
1581 /**/ | |
2702 | 1582 119, |
1583 /**/ | |
2701 | 1584 118, |
1585 /**/ | |
2700 | 1586 117, |
1587 /**/ | |
2699 | 1588 116, |
1589 /**/ | |
2697 | 1590 115, |
1591 /**/ | |
2696 | 1592 114, |
1593 /**/ | |
2695 | 1594 113, |
1595 /**/ | |
2694 | 1596 112, |
1597 /**/ | |
2693 | 1598 111, |
1599 /**/ | |
2692 | 1600 110, |
1601 /**/ | |
2691 | 1602 109, |
1603 /**/ | |
2690 | 1604 108, |
1605 /**/ | |
2689 | 1606 107, |
1607 /**/ | |
2688 | 1608 106, |
1609 /**/ | |
2687 | 1610 105, |
1611 /**/ | |
2686 | 1612 104, |
1613 /**/ | |
2685 | 1614 103, |
1615 /**/ | |
2684 | 1616 102, |
1617 /**/ | |
2683 | 1618 101, |
1619 /**/ | |
2682 | 1620 100, |
1621 /**/ | |
2680 | 1622 99, |
1623 /**/ | |
2679 | 1624 98, |
1625 /**/ | |
2678 | 1626 97, |
1627 /**/ | |
2677 | 1628 96, |
1629 /**/ | |
2676 | 1630 95, |
1631 /**/ | |
2675 | 1632 94, |
1633 /**/ | |
2674 | 1634 93, |
1635 /**/ | |
2673 | 1636 92, |
1637 /**/ | |
2672 | 1638 91, |
1639 /**/ | |
2671 | 1640 90, |
1641 /**/ | |
2670 | 1642 89, |
1643 /**/ | |
2669 | 1644 88, |
1645 /**/ | |
2668 | 1646 87, |
1647 /**/ | |
2667 | 1648 86, |
1649 /**/ | |
2666 | 1650 85, |
1651 /**/ | |
2665 | 1652 84, |
1653 /**/ | |
2664 | 1654 83, |
1655 /**/ | |
2663 | 1656 82, |
1657 /**/ | |
2661 | 1658 81, |
1659 /**/ | |
2660 | 1660 80, |
1661 /**/ | |
2659 | 1662 79, |
1663 /**/ | |
2658 | 1664 78, |
1665 /**/ | |
2657 | 1666 77, |
1667 /**/ | |
2656 | 1668 76, |
1669 /**/ | |
2655 | 1670 75, |
1671 /**/ | |
2654 | 1672 74, |
1673 /**/ | |
2653 | 1674 73, |
1675 /**/ | |
2652 | 1676 72, |
1677 /**/ | |
2651 | 1678 71, |
1679 /**/ | |
2650 | 1680 70, |
1681 /**/ | |
2649 | 1682 69, |
1683 /**/ | |
2648 | 1684 68, |
1685 /**/ | |
2647 | 1686 67, |
1687 /**/ | |
2646 | 1688 66, |
1689 /**/ | |
2645 | 1690 65, |
1691 /**/ | |
2644 | 1692 64, |
1693 /**/ | |
2643 | 1694 63, |
1695 /**/ | |
2641 | 1696 62, |
1697 /**/ | |
2640 | 1698 61, |
1699 /**/ | |
2639 | 1700 60, |
1701 /**/ | |
2638 | 1702 59, |
1703 /**/ | |
2637 | 1704 58, |
1705 /**/ | |
2636 | 1706 57, |
1707 /**/ | |
2635 | 1708 56, |
1709 /**/ | |
2634 | 1710 55, |
1711 /**/ | |
2633 | 1712 54, |
1713 /**/ | |
2632 | 1714 53, |
1715 /**/ | |
2631 | 1716 52, |
1717 /**/ | |
2630 | 1718 51, |
1719 /**/ | |
2629 | 1720 50, |
1721 /**/ | |
2628 | 1722 49, |
1723 /**/ | |
2627 | 1724 48, |
1725 /**/ | |
2626 | 1726 47, |
1727 /**/ | |
2624 | 1728 46, |
1729 /**/ | |
2623 | 1730 45, |
1731 /**/ | |
2622 | 1732 44, |
1733 /**/ | |
2621 | 1734 43, |
1735 /**/ | |
2620 | 1736 42, |
1737 /**/ | |
2619 | 1738 41, |
1739 /**/ | |
2618 | 1740 40, |
1741 /**/ | |
2617 | 1742 39, |
1743 /**/ | |
2616 | 1744 38, |
1745 /**/ | |
2615 | 1746 37, |
1747 /**/ | |
2614 | 1748 36, |
1749 /**/ | |
2613 | 1750 35, |
1751 /**/ | |
2612 | 1752 34, |
1753 /**/ | |
2611 | 1754 33, |
1755 /**/ | |
2610 | 1756 32, |
1757 /**/ | |
2609 | 1758 31, |
1759 /**/ | |
2607 | 1760 30, |
1761 /**/ | |
2606 | 1762 29, |
1763 /**/ | |
2605 | 1764 28, |
1765 /**/ | |
2604 | 1766 27, |
1767 /**/ | |
2603 | 1768 26, |
1769 /**/ | |
2602 | 1770 25, |
1771 /**/ | |
2601 | 1772 24, |
1773 /**/ | |
2600 | 1774 23, |
1775 /**/ | |
2599 | 1776 22, |
1777 /**/ | |
2598 | 1778 21, |
1779 /**/ | |
2597 | 1780 20, |
1781 /**/ | |
2595 | 1782 19, |
1783 /**/ | |
2594 | 1784 18, |
1785 /**/ | |
2593 | 1786 17, |
1787 /**/ | |
2592 | 1788 16, |
1789 /**/ | |
2591 | 1790 15, |
1791 /**/ | |
2590 | 1792 14, |
1793 /**/ | |
2589 | 1794 13, |
1795 /**/ | |
2588 | 1796 12, |
1797 /**/ | |
2586 | 1798 11, |
1799 /**/ | |
2585 | 1800 10, |
1801 /**/ | |
2584 | 1802 9, |
1803 /**/ | |
2583 | 1804 8, |
1805 /**/ | |
2582 | 1806 7, |
1807 /**/ | |
2580 | 1808 6, |
1809 /**/ | |
2579 | 1810 5, |
1811 /**/ | |
2578 | 1812 4, |
1813 /**/ | |
2165
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1814 3, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1815 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1816 2, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1817 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1818 1, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
1819 /**/ |
7 | 1820 0 |
1821 }; | |
1822 | |
1760 | 1823 /* |
1824 * Place to put a short description when adding a feature with a patch. | |
1825 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
1826 * Also add a comment marker to separate the lines. | |
1827 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 1828 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 1829 */ |
1830 static char *(extra_patches[]) = | |
1831 { /* Add your patch description below this line */ | |
1832 /**/ | |
1833 NULL | |
1834 }; | |
1835 | |
7 | 1836 int |
1837 highest_patch() | |
1838 { | |
1839 int i; | |
1840 int h = 0; | |
1841 | |
1842 for (i = 0; included_patches[i] != 0; ++i) | |
1843 if (included_patches[i] > h) | |
1844 h = included_patches[i]; | |
1845 return h; | |
1846 } | |
1847 | |
1848 #if defined(FEAT_EVAL) || defined(PROTO) | |
1849 /* | |
1850 * Return TRUE if patch "n" has been included. | |
1851 */ | |
1852 int | |
1853 has_patch(n) | |
1854 int n; | |
1855 { | |
1856 int i; | |
1857 | |
1858 for (i = 0; included_patches[i] != 0; ++i) | |
1859 if (included_patches[i] == n) | |
1860 return TRUE; | |
1861 return FALSE; | |
1862 } | |
1863 #endif | |
1864 | |
1865 void | |
1866 ex_version(eap) | |
1867 exarg_T *eap; | |
1868 { | |
1869 /* | |
1870 * Ignore a ":version 9.99" command. | |
1871 */ | |
1872 if (*eap->arg == NUL) | |
1873 { | |
1874 msg_putchar('\n'); | |
1875 list_version(); | |
1876 } | |
1877 } | |
1878 | |
1879 void | |
1880 list_version() | |
1881 { | |
1882 int i; | |
1883 int first; | |
1884 char *s = ""; | |
1885 | |
1886 /* | |
1887 * When adding features here, don't forget to update the list of | |
1888 * internal variables in eval.c! | |
1889 */ | |
1890 MSG(longVersion); | |
1891 #ifdef WIN3264 | |
1892 # ifdef FEAT_GUI_W32 | |
1893 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
1894 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 1895 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 1896 # else |
990 | 1897 # ifdef _WIN64 |
1607 | 1898 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 1899 # else |
1607 | 1900 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 1901 # endif |
7 | 1902 # endif |
1903 if (gui_is_win32s()) | |
1904 MSG_PUTS(_(" in Win32s mode")); | |
1905 # ifdef FEAT_OLE | |
1906 MSG_PUTS(_(" with OLE support")); | |
1907 # endif | |
1908 # else | |
1607 | 1909 # ifdef _WIN64 |
1910 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1911 # else | |
1912 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1913 # endif | |
7 | 1914 # endif |
1915 #endif | |
1916 #ifdef WIN16 | |
1607 | 1917 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 1918 #endif |
1919 #ifdef MSDOS | |
1920 # ifdef DJGPP | |
1607 | 1921 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 1922 # else |
1607 | 1923 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 1924 # endif |
1925 #endif | |
1926 #ifdef MACOS | |
1927 # ifdef MACOS_X | |
1928 # ifdef MACOS_X_UNIX | |
1929 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1930 # else | |
1931 MSG_PUTS(_("\nMacOS X version")); | |
1932 # endif | |
1933 #else | |
1934 MSG_PUTS(_("\nMacOS version")); | |
1935 # endif | |
1936 #endif | |
1937 | |
1938 #ifdef VMS | |
1705 | 1939 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1940 # ifdef HAVE_PATHDEF |
1941 if (*compiled_arch != NUL) | |
1942 { | |
1943 MSG_PUTS(" - "); | |
1944 MSG_PUTS(compiled_arch); | |
1945 } | |
1946 # endif | |
1947 | |
7 | 1948 #endif |
1949 | |
1950 /* Print the list of patch numbers if there is at least one. */ | |
1951 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1952 if (included_patches[0] != 0) | |
1953 { | |
1954 MSG_PUTS(_("\nIncluded patches: ")); | |
1955 first = -1; | |
1956 /* find last one */ | |
1957 for (i = 0; included_patches[i] != 0; ++i) | |
1958 ; | |
1959 while (--i >= 0) | |
1960 { | |
1961 if (first < 0) | |
1962 first = included_patches[i]; | |
1963 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1964 { | |
1965 MSG_PUTS(s); | |
1966 s = ", "; | |
1967 msg_outnum((long)first); | |
1968 if (first != included_patches[i]) | |
1969 { | |
1970 MSG_PUTS("-"); | |
1971 msg_outnum((long)included_patches[i]); | |
1972 } | |
1973 first = -1; | |
1974 } | |
1975 } | |
1976 } | |
1977 | |
1760 | 1978 /* Print the list of extra patch descriptions if there is at least one. */ |
1979 if (extra_patches[0] != NULL) | |
1980 { | |
1981 MSG_PUTS(_("\nExtra patches: ")); | |
1982 s = ""; | |
1983 for (i = 0; extra_patches[i] != NULL; ++i) | |
1984 { | |
1985 MSG_PUTS(s); | |
1986 s = ", "; | |
1987 MSG_PUTS(extra_patches[i]); | |
1988 } | |
1989 } | |
1990 | |
7 | 1991 #ifdef MODIFIED_BY |
1992 MSG_PUTS("\n"); | |
1993 MSG_PUTS(_("Modified by ")); | |
1994 MSG_PUTS(MODIFIED_BY); | |
1995 #endif | |
1996 | |
1997 #ifdef HAVE_PATHDEF | |
1998 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1999 { | |
2000 MSG_PUTS(_("\nCompiled ")); | |
2001 if (*compiled_user != NUL) | |
2002 { | |
2003 MSG_PUTS(_("by ")); | |
2004 MSG_PUTS(compiled_user); | |
2005 } | |
2006 if (*compiled_sys != NUL) | |
2007 { | |
2008 MSG_PUTS("@"); | |
2009 MSG_PUTS(compiled_sys); | |
2010 } | |
2011 } | |
2012 #endif | |
2013 | |
2014 #ifdef FEAT_HUGE | |
2015 MSG_PUTS(_("\nHuge version ")); | |
2016 #else | |
2017 # ifdef FEAT_BIG | |
2018 MSG_PUTS(_("\nBig version ")); | |
2019 # else | |
2020 # ifdef FEAT_NORMAL | |
2021 MSG_PUTS(_("\nNormal version ")); | |
2022 # else | |
2023 # ifdef FEAT_SMALL | |
2024 MSG_PUTS(_("\nSmall version ")); | |
2025 # else | |
2026 MSG_PUTS(_("\nTiny version ")); | |
2027 # endif | |
2028 # endif | |
2029 # endif | |
2030 #endif | |
2031 #ifndef FEAT_GUI | |
2032 MSG_PUTS(_("without GUI.")); | |
2033 #else | |
2034 # ifdef FEAT_GUI_GTK | |
2035 # ifdef FEAT_GUI_GNOME | |
2036 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
2037 # else | |
2038 MSG_PUTS(_("with GTK2 GUI.")); | |
2039 # endif | |
2040 # else | |
2041 # ifdef FEAT_GUI_MOTIF | |
2042 MSG_PUTS(_("with X11-Motif GUI.")); | |
2043 # else | |
2044 # ifdef FEAT_GUI_ATHENA | |
2045 # ifdef FEAT_GUI_NEXTAW | |
2046 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
2047 # else | |
2048 MSG_PUTS(_("with X11-Athena GUI.")); | |
2049 # endif | |
2050 # else | |
2051 # ifdef FEAT_GUI_PHOTON | |
2052 MSG_PUTS(_("with Photon GUI.")); | |
2053 # else | |
2054 # if defined(MSWIN) | |
2055 MSG_PUTS(_("with GUI.")); | |
2056 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2057 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 2058 MSG_PUTS(_("with Carbon GUI.")); |
2059 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2060 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 2061 MSG_PUTS(_("with Cocoa GUI.")); |
2062 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2063 # if defined(MACOS) |
7 | 2064 MSG_PUTS(_("with (classic) GUI.")); |
2065 # endif | |
2066 # endif | |
2067 # endif | |
2068 # endif | |
2069 # endif | |
2070 # endif | |
2071 # endif | |
2072 # endif | |
2073 #endif | |
2074 version_msg(_(" Features included (+) or not (-):\n")); | |
2075 | |
2076 /* print all the features */ | |
2077 for (i = 0; features[i] != NULL; ++i) | |
2078 { | |
2079 version_msg(features[i]); | |
2080 if (msg_col > 0) | |
2081 version_msg(" "); | |
2082 } | |
2083 | |
2084 version_msg("\n"); | |
2085 #ifdef SYS_VIMRC_FILE | |
2086 version_msg(_(" system vimrc file: \"")); | |
2087 version_msg(SYS_VIMRC_FILE); | |
2088 version_msg("\"\n"); | |
2089 #endif | |
2090 #ifdef USR_VIMRC_FILE | |
2091 version_msg(_(" user vimrc file: \"")); | |
2092 version_msg(USR_VIMRC_FILE); | |
2093 version_msg("\"\n"); | |
2094 #endif | |
2095 #ifdef USR_VIMRC_FILE2 | |
2096 version_msg(_(" 2nd user vimrc file: \"")); | |
2097 version_msg(USR_VIMRC_FILE2); | |
2098 version_msg("\"\n"); | |
2099 #endif | |
2100 #ifdef USR_VIMRC_FILE3 | |
2101 version_msg(_(" 3rd user vimrc file: \"")); | |
2102 version_msg(USR_VIMRC_FILE3); | |
2103 version_msg("\"\n"); | |
2104 #endif | |
2105 #ifdef USR_EXRC_FILE | |
2106 version_msg(_(" user exrc file: \"")); | |
2107 version_msg(USR_EXRC_FILE); | |
2108 version_msg("\"\n"); | |
2109 #endif | |
2110 #ifdef USR_EXRC_FILE2 | |
2111 version_msg(_(" 2nd user exrc file: \"")); | |
2112 version_msg(USR_EXRC_FILE2); | |
2113 version_msg("\"\n"); | |
2114 #endif | |
2115 #ifdef FEAT_GUI | |
2116 # ifdef SYS_GVIMRC_FILE | |
2117 version_msg(_(" system gvimrc file: \"")); | |
2118 version_msg(SYS_GVIMRC_FILE); | |
2119 version_msg("\"\n"); | |
2120 # endif | |
2121 version_msg(_(" user gvimrc file: \"")); | |
2122 version_msg(USR_GVIMRC_FILE); | |
2123 version_msg("\"\n"); | |
2124 # ifdef USR_GVIMRC_FILE2 | |
2125 version_msg(_("2nd user gvimrc file: \"")); | |
2126 version_msg(USR_GVIMRC_FILE2); | |
2127 version_msg("\"\n"); | |
2128 # endif | |
2129 # ifdef USR_GVIMRC_FILE3 | |
2130 version_msg(_("3rd user gvimrc file: \"")); | |
2131 version_msg(USR_GVIMRC_FILE3); | |
2132 version_msg("\"\n"); | |
2133 # endif | |
2134 #endif | |
2135 #ifdef FEAT_GUI | |
2136 # ifdef SYS_MENU_FILE | |
2137 version_msg(_(" system menu file: \"")); | |
2138 version_msg(SYS_MENU_FILE); | |
2139 version_msg("\"\n"); | |
2140 # endif | |
2141 #endif | |
2142 #ifdef HAVE_PATHDEF | |
2143 if (*default_vim_dir != NUL) | |
2144 { | |
2145 version_msg(_(" fall-back for $VIM: \"")); | |
2146 version_msg((char *)default_vim_dir); | |
2147 version_msg("\"\n"); | |
2148 } | |
2149 if (*default_vimruntime_dir != NUL) | |
2150 { | |
2151 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
2152 version_msg((char *)default_vimruntime_dir); | |
2153 version_msg("\"\n"); | |
2154 } | |
2155 version_msg(_("Compilation: ")); | |
2156 version_msg((char *)all_cflags); | |
2157 version_msg("\n"); | |
2158 #ifdef VMS | |
2159 if (*compiler_version != NUL) | |
2160 { | |
2161 version_msg(_("Compiler: ")); | |
2162 version_msg((char *)compiler_version); | |
2163 version_msg("\n"); | |
2164 } | |
2165 #endif | |
2166 version_msg(_("Linking: ")); | |
2167 version_msg((char *)all_lflags); | |
2168 #endif | |
2169 #ifdef DEBUG | |
2170 version_msg("\n"); | |
2171 version_msg(_(" DEBUG BUILD")); | |
2172 #endif | |
2173 } | |
2174 | |
2175 /* | |
2176 * Output a string for the version message. If it's going to wrap, output a | |
2177 * newline, unless the message is too long to fit on the screen anyway. | |
2178 */ | |
2179 static void | |
2180 version_msg(s) | |
2181 char *s; | |
2182 { | |
2183 int len = (int)STRLEN(s); | |
2184 | |
2185 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
2186 && *s != '\n') | |
2187 msg_putchar('\n'); | |
2188 if (!got_int) | |
2189 MSG_PUTS(s); | |
2190 } | |
2191 | |
2192 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
2193 | |
2194 /* | |
2195 * Give an introductory message about Vim. | |
2196 * Only used when starting Vim on an empty file, without a file name. | |
2197 * Or with the ":intro" command (for Sven :-). | |
2198 */ | |
2199 void | |
2200 intro_message(colon) | |
2201 int colon; /* TRUE for ":intro" */ | |
2202 { | |
2203 int i; | |
2204 int row; | |
2205 int blanklines; | |
2206 int sponsor; | |
2207 char *p; | |
2208 static char *(lines[]) = | |
2209 { | |
2210 N_("VIM - Vi IMproved"), | |
2211 "", | |
2212 N_("version "), | |
2213 N_("by Bram Moolenaar et al."), | |
2214 #ifdef MODIFIED_BY | |
2215 " ", | |
2216 #endif | |
2217 N_("Vim is open source and freely distributable"), | |
2218 "", | |
2219 N_("Help poor children in Uganda!"), | |
2220 N_("type :help iccf<Enter> for information "), | |
2221 "", | |
2222 N_("type :q<Enter> to exit "), | |
2223 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2224 N_("type :help version7<Enter> for version info"), |
7 | 2225 NULL, |
2226 "", | |
2227 N_("Running in Vi compatible mode"), | |
2228 N_("type :set nocp<Enter> for Vim defaults"), | |
2229 N_("type :help cp-default<Enter> for info on this"), | |
2230 }; | |
2231 #ifdef FEAT_GUI | |
2232 static char *(gui_lines[]) = | |
2233 { | |
2234 NULL, | |
2235 NULL, | |
2236 NULL, | |
2237 NULL, | |
2238 #ifdef MODIFIED_BY | |
2239 NULL, | |
2240 #endif | |
2241 NULL, | |
2242 NULL, | |
2243 NULL, | |
2244 N_("menu Help->Orphans for information "), | |
2245 NULL, | |
2246 N_("Running modeless, typed text is inserted"), | |
2247 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2248 N_(" for two modes "), | |
2249 NULL, | |
2250 NULL, | |
2251 NULL, | |
2252 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2253 N_(" for Vim defaults "), | |
2254 }; | |
2255 #endif | |
2256 | |
2257 /* blanklines = screen height - # message lines */ | |
2258 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2259 if (!p_cp) | |
2260 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2261 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2262 if (mch_windows95()) | |
2263 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2264 #endif | |
2265 | |
2266 #ifdef FEAT_WINDOWS | |
2267 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2268 if (p_ls > 1) | |
2269 blanklines -= Rows - topframe->fr_height; | |
2270 #endif | |
2271 if (blanklines < 0) | |
2272 blanklines = 0; | |
2273 | |
2274 /* Show the sponsor and register message one out of four times, the Uganda | |
2275 * message two out of four times. */ | |
615 | 2276 sponsor = (int)time(NULL); |
7 | 2277 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2278 | |
2279 /* start displaying the message lines after half of the blank lines */ | |
2280 row = blanklines / 2; | |
2281 if ((row >= 2 && Columns >= 50) || colon) | |
2282 { | |
2283 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2284 { | |
2285 p = lines[i]; | |
2286 #ifdef FEAT_GUI | |
2287 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2288 p = gui_lines[i]; | |
2289 #endif | |
2290 if (p == NULL) | |
2291 { | |
2292 if (!p_cp) | |
2293 break; | |
2294 continue; | |
2295 } | |
2296 if (sponsor != 0) | |
2297 { | |
2298 if (strstr(p, "children") != NULL) | |
2299 p = sponsor < 0 | |
2300 ? N_("Sponsor Vim development!") | |
2301 : N_("Become a registered Vim user!"); | |
2302 else if (strstr(p, "iccf") != NULL) | |
2303 p = sponsor < 0 | |
2304 ? N_("type :help sponsor<Enter> for information ") | |
2305 : N_("type :help register<Enter> for information "); | |
2306 else if (strstr(p, "Orphans") != NULL) | |
2307 p = N_("menu Help->Sponsor/Register for information "); | |
2308 } | |
2309 if (*p != NUL) | |
2310 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2311 ++row; | |
2312 } | |
2313 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2314 if (mch_windows95()) | |
2315 { | |
2316 do_intro_line(++row, | |
2317 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2318 FALSE, hl_attr(HLF_E)); | |
2319 do_intro_line(++row, | |
2320 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2321 FALSE, 0); | |
2322 } | |
2323 #endif | |
2324 } | |
2325 | |
2326 /* Make the wait-return message appear just below the text. */ | |
2327 if (colon) | |
2328 msg_row = row; | |
2329 } | |
2330 | |
2331 static void | |
2332 do_intro_line(row, mesg, add_version, attr) | |
2333 int row; | |
2334 char_u *mesg; | |
2335 int add_version; | |
2336 int attr; | |
2337 { | |
2338 char_u vers[20]; | |
2339 int col; | |
2340 char_u *p; | |
2341 int l; | |
2342 int clen; | |
2343 #ifdef MODIFIED_BY | |
2344 # define MODBY_LEN 150 | |
2345 char_u modby[MODBY_LEN]; | |
2346 | |
2347 if (*mesg == ' ') | |
2348 { | |
1491 | 2349 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2350 l = STRLEN(modby); |
1491 | 2351 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2352 mesg = modby; |
2353 } | |
2354 #endif | |
2355 | |
2356 /* Center the message horizontally. */ | |
2357 col = vim_strsize(mesg); | |
2358 if (add_version) | |
2359 { | |
2360 STRCPY(vers, mediumVersion); | |
2361 if (highest_patch()) | |
2362 { | |
2363 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2364 if (isalpha((int)vers[3])) |
7 | 2365 { |
3396 | 2366 int len = (isalpha((int)vers[4])) ? 5 : 4; |
2367 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
2368 mediumVersion + len); | |
7 | 2369 } |
2370 else | |
2371 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2372 } | |
2373 col += (int)STRLEN(vers); | |
2374 } | |
2375 col = (Columns - col) / 2; | |
2376 if (col < 0) | |
2377 col = 0; | |
2378 | |
2379 /* Split up in parts to highlight <> items differently. */ | |
2380 for (p = mesg; *p != NUL; p += l) | |
2381 { | |
2382 clen = 0; | |
2383 for (l = 0; p[l] != NUL | |
2384 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2385 { | |
2386 #ifdef FEAT_MBYTE | |
2387 if (has_mbyte) | |
2388 { | |
2389 clen += ptr2cells(p + l); | |
474 | 2390 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2391 } |
2392 else | |
2393 #endif | |
2394 clen += byte2cells(p[l]); | |
2395 } | |
2396 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2397 col += clen; | |
2398 } | |
2399 | |
2400 /* Add the version number to the version line. */ | |
2401 if (add_version) | |
2402 screen_puts(vers, row, col, 0); | |
2403 } | |
2404 | |
2405 /* | |
2406 * ":intro": clear screen, display intro screen and wait for return. | |
2407 */ | |
2408 void | |
2409 ex_intro(eap) | |
1876 | 2410 exarg_T *eap UNUSED; |
7 | 2411 { |
2412 screenclear(); | |
2413 intro_message(TRUE); | |
2414 wait_return(TRUE); | |
2415 } |