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