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