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