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