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