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