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