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