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