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