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