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