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