Mercurial > vim
annotate src/version.c @ 6305:b8caf7045e3d v7.4.486
updated for version 7.4.486
Problem: Check for writing to a yank register is wrong.
Solution: Negate the check. (Zyx). Also clean up the #ifdefs.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 Oct 2014 20:01:58 +0200 |
parents | 7844d92941fd |
children | 1f9577e9ef1b |
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]; | |
4147 | 37 |
7 | 38 void |
39 make_version() | |
40 { | |
41 /* | |
42 * Construct the long version string. Necessary because | |
43 * VAX C can't catenate strings in the preprocessor. | |
44 */ | |
45 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
46 strcat(longVersion, __DATE__); | |
47 strcat(longVersion, " "); | |
48 strcat(longVersion, __TIME__); | |
49 strcat(longVersion, ")"); | |
50 } | |
51 # else | |
52 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
53 # endif | |
54 #else | |
55 char *longVersion = VIM_VERSION_LONG; | |
56 #endif | |
57 | |
5166
467efeee8f9e
updated for version 7.4a.009
Bram Moolenaar <bram@vim.org>
parents:
5164
diff
changeset
|
58 static void list_features __ARGS((void)); |
7 | 59 static void version_msg __ARGS((char *s)); |
60 | |
61 static char *(features[]) = | |
62 { | |
5316 | 63 #ifdef HAVE_ACL |
64 "+acl", | |
65 #else | |
66 "-acl", | |
67 #endif | |
7 | 68 #ifdef AMIGA /* only for Amiga systems */ |
69 # ifdef FEAT_ARP | |
70 "+ARP", | |
71 # else | |
72 "-ARP", | |
73 # endif | |
74 #endif | |
75 #ifdef FEAT_ARABIC | |
76 "+arabic", | |
77 #else | |
78 "-arabic", | |
79 #endif | |
80 #ifdef FEAT_AUTOCMD | |
81 "+autocmd", | |
82 #else | |
83 "-autocmd", | |
84 #endif | |
85 #ifdef FEAT_BEVAL | |
86 "+balloon_eval", | |
87 #else | |
88 "-balloon_eval", | |
89 #endif | |
90 #ifdef FEAT_BROWSE | |
91 "+browse", | |
92 #else | |
93 "-browse", | |
94 #endif | |
95 #ifdef NO_BUILTIN_TCAPS | |
96 "-builtin_terms", | |
97 #endif | |
98 #ifdef SOME_BUILTIN_TCAPS | |
99 "+builtin_terms", | |
100 #endif | |
101 #ifdef ALL_BUILTIN_TCAPS | |
102 "++builtin_terms", | |
103 #endif | |
104 #ifdef FEAT_BYTEOFF | |
105 "+byte_offset", | |
106 #else | |
107 "-byte_offset", | |
108 #endif | |
109 #ifdef FEAT_CINDENT | |
110 "+cindent", | |
111 #else | |
112 "-cindent", | |
113 #endif | |
114 #ifdef FEAT_CLIENTSERVER | |
115 "+clientserver", | |
116 #else | |
117 "-clientserver", | |
118 #endif | |
119 #ifdef FEAT_CLIPBOARD | |
120 "+clipboard", | |
121 #else | |
122 "-clipboard", | |
123 #endif | |
124 #ifdef FEAT_CMDL_COMPL | |
125 "+cmdline_compl", | |
126 #else | |
127 "-cmdline_compl", | |
128 #endif | |
129 #ifdef FEAT_CMDHIST | |
130 "+cmdline_hist", | |
131 #else | |
132 "-cmdline_hist", | |
133 #endif | |
134 #ifdef FEAT_CMDL_INFO | |
135 "+cmdline_info", | |
136 #else | |
137 "-cmdline_info", | |
138 #endif | |
139 #ifdef FEAT_COMMENTS | |
140 "+comments", | |
141 #else | |
142 "-comments", | |
143 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
144 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
145 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
146 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
147 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
148 #endif |
7 | 149 #ifdef FEAT_CRYPT |
150 "+cryptv", | |
151 #else | |
152 "-cryptv", | |
153 #endif | |
154 #ifdef FEAT_CSCOPE | |
155 "+cscope", | |
156 #else | |
157 "-cscope", | |
158 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
159 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
160 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
161 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
162 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
163 #endif |
647 | 164 #ifdef CURSOR_SHAPE |
165 "+cursorshape", | |
166 #else | |
167 "-cursorshape", | |
168 #endif | |
7 | 169 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
170 "+dialog_con_gui", | |
171 #else | |
172 # if defined(FEAT_CON_DIALOG) | |
173 "+dialog_con", | |
174 # else | |
175 # if defined(FEAT_GUI_DIALOG) | |
176 "+dialog_gui", | |
177 # else | |
178 "-dialog", | |
179 # endif | |
180 # endif | |
181 #endif | |
182 #ifdef FEAT_DIFF | |
183 "+diff", | |
184 #else | |
185 "-diff", | |
186 #endif | |
187 #ifdef FEAT_DIGRAPHS | |
188 "+digraphs", | |
189 #else | |
190 "-digraphs", | |
191 #endif | |
6110 | 192 #ifdef FEAT_GUI_W32 |
193 # ifdef FEAT_DIRECTX | |
194 "+directx", | |
195 # else | |
196 "-directx", | |
197 # endif | |
198 #endif | |
7 | 199 #ifdef FEAT_DND |
200 "+dnd", | |
201 #else | |
202 "-dnd", | |
203 #endif | |
204 #ifdef EBCDIC | |
205 "+ebcdic", | |
206 #else | |
207 "-ebcdic", | |
208 #endif | |
209 #ifdef FEAT_EMACS_TAGS | |
210 "+emacs_tags", | |
211 #else | |
212 "-emacs_tags", | |
213 #endif | |
214 #ifdef FEAT_EVAL | |
215 "+eval", | |
216 #else | |
217 "-eval", | |
218 #endif | |
219 #ifdef FEAT_EX_EXTRA | |
220 "+ex_extra", | |
221 #else | |
222 "-ex_extra", | |
223 #endif | |
224 #ifdef FEAT_SEARCH_EXTRA | |
225 "+extra_search", | |
226 #else | |
227 "-extra_search", | |
228 #endif | |
229 #ifdef FEAT_FKMAP | |
230 "+farsi", | |
231 #else | |
232 "-farsi", | |
233 #endif | |
234 #ifdef FEAT_SEARCHPATH | |
235 "+file_in_path", | |
236 #else | |
237 "-file_in_path", | |
238 #endif | |
239 #ifdef FEAT_FIND_ID | |
240 "+find_in_path", | |
241 #else | |
242 "-find_in_path", | |
243 #endif | |
1621 | 244 #ifdef FEAT_FLOAT |
245 "+float", | |
246 #else | |
247 "-float", | |
248 #endif | |
7 | 249 #ifdef FEAT_FOLDING |
250 "+folding", | |
251 #else | |
252 "-folding", | |
253 #endif | |
254 #ifdef FEAT_FOOTER | |
255 "+footer", | |
256 #else | |
257 "-footer", | |
258 #endif | |
259 /* only interesting on Unix systems */ | |
260 #if !defined(USE_SYSTEM) && defined(UNIX) | |
261 "+fork()", | |
262 #endif | |
263 #ifdef FEAT_GETTEXT | |
264 # ifdef DYNAMIC_GETTEXT | |
265 "+gettext/dyn", | |
266 # else | |
267 "+gettext", | |
268 # endif | |
269 #else | |
270 "-gettext", | |
271 #endif | |
272 #ifdef FEAT_HANGULIN | |
273 "+hangul_input", | |
274 #else | |
275 "-hangul_input", | |
276 #endif | |
277 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
278 # ifdef DYNAMIC_ICONV | |
279 "+iconv/dyn", | |
280 # else | |
281 "+iconv", | |
282 # endif | |
283 #else | |
284 "-iconv", | |
285 #endif | |
286 #ifdef FEAT_INS_EXPAND | |
287 "+insert_expand", | |
288 #else | |
289 "-insert_expand", | |
290 #endif | |
291 #ifdef FEAT_JUMPLIST | |
292 "+jumplist", | |
293 #else | |
294 "-jumplist", | |
295 #endif | |
296 #ifdef FEAT_KEYMAP | |
297 "+keymap", | |
298 #else | |
299 "-keymap", | |
300 #endif | |
301 #ifdef FEAT_LANGMAP | |
302 "+langmap", | |
303 #else | |
304 "-langmap", | |
305 #endif | |
306 #ifdef FEAT_LIBCALL | |
307 "+libcall", | |
308 #else | |
309 "-libcall", | |
310 #endif | |
311 #ifdef FEAT_LINEBREAK | |
312 "+linebreak", | |
313 #else | |
314 "-linebreak", | |
315 #endif | |
316 #ifdef FEAT_LISP | |
317 "+lispindent", | |
318 #else | |
319 "-lispindent", | |
320 #endif | |
321 #ifdef FEAT_LISTCMDS | |
322 "+listcmds", | |
323 #else | |
324 "-listcmds", | |
325 #endif | |
326 #ifdef FEAT_LOCALMAP | |
327 "+localmap", | |
328 #else | |
329 "-localmap", | |
330 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
331 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
332 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
333 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
334 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
335 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
336 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
337 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
338 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
339 #endif |
7 | 340 #ifdef FEAT_MENU |
341 "+menu", | |
342 #else | |
343 "-menu", | |
344 #endif | |
345 #ifdef FEAT_SESSION | |
346 "+mksession", | |
347 #else | |
348 "-mksession", | |
349 #endif | |
350 #ifdef FEAT_MODIFY_FNAME | |
351 "+modify_fname", | |
352 #else | |
353 "-modify_fname", | |
354 #endif | |
355 #ifdef FEAT_MOUSE | |
356 "+mouse", | |
357 # ifdef FEAT_MOUSESHAPE | |
358 "+mouseshape", | |
359 # else | |
360 "-mouseshape", | |
361 # endif | |
362 # else | |
363 "-mouse", | |
364 #endif | |
3898 | 365 |
7 | 366 #if defined(UNIX) || defined(VMS) |
367 # ifdef FEAT_MOUSE_DEC | |
368 "+mouse_dec", | |
369 # else | |
370 "-mouse_dec", | |
371 # endif | |
372 # ifdef FEAT_MOUSE_GPM | |
373 "+mouse_gpm", | |
374 # else | |
375 "-mouse_gpm", | |
376 # endif | |
377 # ifdef FEAT_MOUSE_JSB | |
378 "+mouse_jsbterm", | |
379 # else | |
380 "-mouse_jsbterm", | |
381 # endif | |
382 # ifdef FEAT_MOUSE_NET | |
383 "+mouse_netterm", | |
384 # else | |
385 "-mouse_netterm", | |
386 # endif | |
387 #endif | |
3898 | 388 |
7 | 389 #ifdef __QNX__ |
390 # ifdef FEAT_MOUSE_PTERM | |
391 "+mouse_pterm", | |
392 # else | |
393 "-mouse_pterm", | |
394 # endif | |
395 #endif | |
3898 | 396 |
397 #if defined(UNIX) || defined(VMS) | |
398 # ifdef FEAT_MOUSE_SGR | |
399 "+mouse_sgr", | |
400 # else | |
401 "-mouse_sgr", | |
402 # endif | |
403 # ifdef FEAT_SYSMOUSE | |
404 "+mouse_sysmouse", | |
405 # else | |
406 "-mouse_sysmouse", | |
407 # endif | |
408 # ifdef FEAT_MOUSE_URXVT | |
409 "+mouse_urxvt", | |
410 # else | |
411 "-mouse_urxvt", | |
412 # endif | |
413 # ifdef FEAT_MOUSE_XTERM | |
414 "+mouse_xterm", | |
415 # else | |
416 "-mouse_xterm", | |
417 # endif | |
418 #endif | |
419 | |
7 | 420 #ifdef FEAT_MBYTE_IME |
421 # ifdef DYNAMIC_IME | |
422 "+multi_byte_ime/dyn", | |
423 # else | |
424 "+multi_byte_ime", | |
425 # endif | |
426 #else | |
427 # ifdef FEAT_MBYTE | |
428 "+multi_byte", | |
429 # else | |
430 "-multi_byte", | |
431 # endif | |
432 #endif | |
433 #ifdef FEAT_MULTI_LANG | |
434 "+multi_lang", | |
435 #else | |
436 "-multi_lang", | |
437 #endif | |
14 | 438 #ifdef FEAT_MZSCHEME |
132 | 439 # ifdef DYNAMIC_MZSCHEME |
440 "+mzscheme/dyn", | |
441 # else | |
14 | 442 "+mzscheme", |
132 | 443 # endif |
14 | 444 #else |
445 "-mzscheme", | |
446 #endif | |
7 | 447 #ifdef FEAT_NETBEANS_INTG |
448 "+netbeans_intg", | |
449 #else | |
450 "-netbeans_intg", | |
451 #endif | |
452 #ifdef FEAT_GUI_W32 | |
453 # ifdef FEAT_OLE | |
454 "+ole", | |
455 # else | |
456 "-ole", | |
457 # endif | |
458 #endif | |
459 #ifdef FEAT_PATH_EXTRA | |
460 "+path_extra", | |
461 #else | |
462 "-path_extra", | |
463 #endif | |
464 #ifdef FEAT_PERL | |
465 # ifdef DYNAMIC_PERL | |
466 "+perl/dyn", | |
467 # else | |
468 "+perl", | |
469 # endif | |
470 #else | |
471 "-perl", | |
472 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
473 #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
|
474 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
475 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
476 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
477 #endif |
7 | 478 #ifdef FEAT_PRINTER |
479 # ifdef FEAT_POSTSCRIPT | |
480 "+postscript", | |
481 # else | |
482 "-postscript", | |
483 # endif | |
484 "+printer", | |
485 #else | |
486 "-printer", | |
487 #endif | |
170 | 488 #ifdef FEAT_PROFILE |
489 "+profile", | |
490 #else | |
491 "-profile", | |
492 #endif | |
7 | 493 #ifdef FEAT_PYTHON |
494 # ifdef DYNAMIC_PYTHON | |
495 "+python/dyn", | |
496 # else | |
497 "+python", | |
498 # endif | |
499 #else | |
500 "-python", | |
501 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
502 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
503 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
504 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
505 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
506 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
507 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
508 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
509 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
510 #endif |
7 | 511 #ifdef FEAT_QUICKFIX |
512 "+quickfix", | |
513 #else | |
514 "-quickfix", | |
515 #endif | |
857 | 516 #ifdef FEAT_RELTIME |
517 "+reltime", | |
518 #else | |
519 "-reltime", | |
520 #endif | |
7 | 521 #ifdef FEAT_RIGHTLEFT |
522 "+rightleft", | |
523 #else | |
524 "-rightleft", | |
525 #endif | |
526 #ifdef FEAT_RUBY | |
527 # ifdef DYNAMIC_RUBY | |
528 "+ruby/dyn", | |
529 # else | |
530 "+ruby", | |
531 # endif | |
532 #else | |
533 "-ruby", | |
534 #endif | |
535 #ifdef FEAT_SCROLLBIND | |
536 "+scrollbind", | |
537 #else | |
538 "-scrollbind", | |
539 #endif | |
540 #ifdef FEAT_SIGNS | |
541 "+signs", | |
542 #else | |
543 "-signs", | |
544 #endif | |
545 #ifdef FEAT_SMARTINDENT | |
546 "+smartindent", | |
547 #else | |
548 "-smartindent", | |
549 #endif | |
550 #ifdef FEAT_SNIFF | |
551 "+sniff", | |
552 #else | |
553 "-sniff", | |
554 #endif | |
1989 | 555 #ifdef STARTUPTIME |
556 "+startuptime", | |
557 #else | |
558 "-startuptime", | |
559 #endif | |
7 | 560 #ifdef FEAT_STL_OPT |
561 "+statusline", | |
562 #else | |
563 "-statusline", | |
564 #endif | |
565 #ifdef FEAT_SUN_WORKSHOP | |
566 "+sun_workshop", | |
567 #else | |
568 "-sun_workshop", | |
569 #endif | |
570 #ifdef FEAT_SYN_HL | |
571 "+syntax", | |
572 #else | |
573 "-syntax", | |
574 #endif | |
575 /* only interesting on Unix systems */ | |
576 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
577 "+system()", | |
578 #endif | |
579 #ifdef FEAT_TAG_BINS | |
580 "+tag_binary", | |
581 #else | |
582 "-tag_binary", | |
583 #endif | |
584 #ifdef FEAT_TAG_OLDSTATIC | |
585 "+tag_old_static", | |
586 #else | |
587 "-tag_old_static", | |
588 #endif | |
589 #ifdef FEAT_TAG_ANYWHITE | |
590 "+tag_any_white", | |
591 #else | |
592 "-tag_any_white", | |
593 #endif | |
594 #ifdef FEAT_TCL | |
595 # ifdef DYNAMIC_TCL | |
596 "+tcl/dyn", | |
597 # else | |
598 "+tcl", | |
599 # endif | |
600 #else | |
601 "-tcl", | |
602 #endif | |
603 #if defined(UNIX) || defined(__EMX__) | |
604 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
605 # ifdef TERMINFO | |
606 "+terminfo", | |
607 # else | |
608 "-terminfo", | |
609 # endif | |
610 #else /* unix always includes termcap support */ | |
611 # ifdef HAVE_TGETENT | |
612 "+tgetent", | |
613 # else | |
614 "-tgetent", | |
615 # endif | |
616 #endif | |
617 #ifdef FEAT_TERMRESPONSE | |
618 "+termresponse", | |
619 #else | |
620 "-termresponse", | |
621 #endif | |
622 #ifdef FEAT_TEXTOBJ | |
623 "+textobjects", | |
624 #else | |
625 "-textobjects", | |
626 #endif | |
627 #ifdef FEAT_TITLE | |
628 "+title", | |
629 #else | |
630 "-title", | |
631 #endif | |
632 #ifdef FEAT_TOOLBAR | |
633 "+toolbar", | |
634 #else | |
635 "-toolbar", | |
636 #endif | |
637 #ifdef FEAT_USR_CMDS | |
638 "+user_commands", | |
639 #else | |
640 "-user_commands", | |
641 #endif | |
642 #ifdef FEAT_VERTSPLIT | |
643 "+vertsplit", | |
644 #else | |
645 "-vertsplit", | |
646 #endif | |
647 #ifdef FEAT_VIRTUALEDIT | |
648 "+virtualedit", | |
649 #else | |
650 "-virtualedit", | |
651 #endif | |
652 "+visual", | |
5735 | 653 #ifdef FEAT_VISUALEXTRA |
7 | 654 "+visualextra", |
5735 | 655 #else |
7 | 656 "-visualextra", |
657 #endif | |
658 #ifdef FEAT_VIMINFO | |
659 "+viminfo", | |
660 #else | |
661 "-viminfo", | |
662 #endif | |
663 #ifdef FEAT_VREPLACE | |
664 "+vreplace", | |
665 #else | |
666 "-vreplace", | |
667 #endif | |
668 #ifdef FEAT_WILDIGN | |
669 "+wildignore", | |
670 #else | |
671 "-wildignore", | |
672 #endif | |
673 #ifdef FEAT_WILDMENU | |
674 "+wildmenu", | |
675 #else | |
676 "-wildmenu", | |
677 #endif | |
678 #ifdef FEAT_WINDOWS | |
679 "+windows", | |
680 #else | |
681 "-windows", | |
682 #endif | |
683 #ifdef FEAT_WRITEBACKUP | |
684 "+writebackup", | |
685 #else | |
686 "-writebackup", | |
687 #endif | |
688 #if defined(UNIX) || defined(VMS) | |
689 # ifdef FEAT_X11 | |
690 "+X11", | |
691 # else | |
692 "-X11", | |
693 # endif | |
694 #endif | |
695 #ifdef FEAT_XFONTSET | |
696 "+xfontset", | |
697 #else | |
698 "-xfontset", | |
699 #endif | |
700 #ifdef FEAT_XIM | |
701 "+xim", | |
702 #else | |
703 "-xim", | |
704 #endif | |
705 #if defined(UNIX) || defined(VMS) | |
706 # ifdef USE_XSMP_INTERACT | |
707 "+xsmp_interact", | |
708 # else | |
709 # ifdef USE_XSMP | |
710 "+xsmp", | |
711 # else | |
712 "-xsmp", | |
713 # endif | |
714 # endif | |
715 # ifdef FEAT_XCLIPBOARD | |
716 "+xterm_clipboard", | |
717 # else | |
718 "-xterm_clipboard", | |
719 # endif | |
720 #endif | |
721 #ifdef FEAT_XTERM_SAVE | |
722 "+xterm_save", | |
723 #else | |
724 "-xterm_save", | |
725 #endif | |
726 #ifdef WIN3264 | |
727 # ifdef FEAT_XPM_W32 | |
728 "+xpm_w32", | |
729 # else | |
730 "-xpm_w32", | |
731 # endif | |
5316 | 732 #else |
733 # ifdef HAVE_XPM | |
734 "+xpm", | |
735 # else | |
736 "-xpm", | |
737 # endif | |
7 | 738 #endif |
739 NULL | |
740 }; | |
741 | |
742 static int included_patches[] = | |
743 { /* Add new patch number below this line */ | |
744 /**/ | |
6305 | 745 486, |
746 /**/ | |
6303 | 747 485, |
748 /**/ | |
6301 | 749 484, |
750 /**/ | |
6299 | 751 483, |
752 /**/ | |
6297 | 753 482, |
754 /**/ | |
6295 | 755 481, |
756 /**/ | |
6293 | 757 480, |
758 /**/ | |
6290 | 759 479, |
760 /**/ | |
6288 | 761 478, |
762 /**/ | |
6286 | 763 477, |
764 /**/ | |
6284 | 765 476, |
766 /**/ | |
6282 | 767 475, |
768 /**/ | |
6280 | 769 474, |
770 /**/ | |
6278 | 771 473, |
772 /**/ | |
6276 | 773 472, |
774 /**/ | |
6274 | 775 471, |
776 /**/ | |
6272 | 777 470, |
778 /**/ | |
6270 | 779 469, |
780 /**/ | |
6268 | 781 468, |
782 /**/ | |
6266 | 783 467, |
784 /**/ | |
6264 | 785 466, |
786 /**/ | |
6262 | 787 465, |
788 /**/ | |
6260 | 789 464, |
790 /**/ | |
6257 | 791 463, |
792 /**/ | |
6255 | 793 462, |
794 /**/ | |
6253 | 795 461, |
796 /**/ | |
6251 | 797 460, |
798 /**/ | |
6249 | 799 459, |
800 /**/ | |
6247 | 801 458, |
802 /**/ | |
6245 | 803 457, |
804 /**/ | |
6243 | 805 456, |
806 /**/ | |
6241 | 807 455, |
808 /**/ | |
6239 | 809 454, |
810 /**/ | |
6236 | 811 453, |
812 /**/ | |
6234 | 813 452, |
814 /**/ | |
6232 | 815 451, |
816 /**/ | |
6230 | 817 450, |
818 /**/ | |
6228 | 819 449, |
820 /**/ | |
6226 | 821 448, |
822 /**/ | |
6224 | 823 447, |
824 /**/ | |
6222 | 825 446, |
826 /**/ | |
6220 | 827 445, |
828 /**/ | |
6218 | 829 444, |
830 /**/ | |
6216 | 831 443, |
832 /**/ | |
6214 | 833 442, |
834 /**/ | |
6211 | 835 441, |
836 /**/ | |
6209 | 837 440, |
838 /**/ | |
6207 | 839 439, |
840 /**/ | |
6205 | 841 438, |
842 /**/ | |
6203 | 843 437, |
844 /**/ | |
6201 | 845 436, |
846 /**/ | |
6199 | 847 435, |
848 /**/ | |
6197 | 849 434, |
850 /**/ | |
6195 | 851 433, |
852 /**/ | |
6193 | 853 432, |
854 /**/ | |
6191 | 855 431, |
856 /**/ | |
6189 | 857 430, |
858 /**/ | |
6187 | 859 429, |
860 /**/ | |
6185 | 861 428, |
862 /**/ | |
6183 | 863 427, |
864 /**/ | |
6181 | 865 426, |
866 /**/ | |
6178 | 867 425, |
868 /**/ | |
6176 | 869 424, |
870 /**/ | |
6174 | 871 423, |
872 /**/ | |
6172 | 873 422, |
874 /**/ | |
6170 | 875 421, |
876 /**/ | |
6168 | 877 420, |
878 /**/ | |
6166 | 879 419, |
880 /**/ | |
6164 | 881 418, |
882 /**/ | |
6162 | 883 417, |
884 /**/ | |
6160 | 885 416, |
886 /**/ | |
6158
353442863d85
Update version number to 7.4.415
Bram Moolenaar <bram@vim.org>
parents:
6154
diff
changeset
|
887 415, |
353442863d85
Update version number to 7.4.415
Bram Moolenaar <bram@vim.org>
parents:
6154
diff
changeset
|
888 /**/ |
6154 | 889 414, |
890 /**/ | |
6151 | 891 413, |
892 /**/ | |
6149 | 893 412, |
894 /**/ | |
6147 | 895 411, |
896 /**/ | |
6145 | 897 410, |
898 /**/ | |
6143 | 899 409, |
900 /**/ | |
6140 | 901 408, |
902 /**/ | |
6138 | 903 407, |
904 /**/ | |
6136 | 905 406, |
906 /**/ | |
6134 | 907 405, |
908 /**/ | |
6132 | 909 404, |
910 /**/ | |
6130 | 911 403, |
912 /**/ | |
6128 | 913 402, |
914 /**/ | |
6126 | 915 401, |
916 /**/ | |
6124 | 917 400, |
918 /**/ | |
6122 | 919 399, |
920 /**/ | |
6120 | 921 398, |
922 /**/ | |
6118 | 923 397, |
924 /**/ | |
6116 | 925 396, |
926 /**/ | |
6114 | 927 395, |
928 /**/ | |
6112 | 929 394, |
930 /**/ | |
6110 | 931 393, |
932 /**/ | |
6108 | 933 392, |
934 /**/ | |
6106 | 935 391, |
936 /**/ | |
6104 | 937 390, |
938 /**/ | |
6102 | 939 389, |
940 /**/ | |
6100 | 941 388, |
942 /**/ | |
6098 | 943 387, |
944 /**/ | |
6096 | 945 386, |
946 /**/ | |
6094 | 947 385, |
948 /**/ | |
6092 | 949 384, |
950 /**/ | |
6089 | 951 383, |
952 /**/ | |
6087 | 953 382, |
954 /**/ | |
6085 | 955 381, |
956 /**/ | |
6083 | 957 380, |
958 /**/ | |
6081 | 959 379, |
960 /**/ | |
6079 | 961 378, |
962 /**/ | |
6077 | 963 377, |
964 /**/ | |
6075 | 965 376, |
966 /**/ | |
6073 | 967 375, |
968 /**/ | |
6071 | 969 374, |
970 /**/ | |
6068 | 971 373, |
972 /**/ | |
6066 | 973 372, |
974 /**/ | |
6064 | 975 371, |
976 /**/ | |
6062 | 977 370, |
978 /**/ | |
6060 | 979 369, |
980 /**/ | |
6058 | 981 368, |
982 /**/ | |
6056 | 983 367, |
984 /**/ | |
6054 | 985 366, |
986 /**/ | |
6052 | 987 365, |
988 /**/ | |
6049 | 989 364, |
990 /**/ | |
6047 | 991 363, |
992 /**/ | |
6045 | 993 362, |
994 /**/ | |
6043 | 995 361, |
996 /**/ | |
6041 | 997 360, |
998 /**/ | |
6039 | 999 359, |
1000 /**/ | |
6037 | 1001 358, |
1002 /**/ | |
6035 | 1003 357, |
1004 /**/ | |
6033 | 1005 356, |
1006 /**/ | |
6030 | 1007 355, |
1008 /**/ | |
6028 | 1009 354, |
1010 /**/ | |
6026 | 1011 353, |
1012 /**/ | |
6024 | 1013 352, |
1014 /**/ | |
6022 | 1015 351, |
1016 /**/ | |
6020 | 1017 350, |
1018 /**/ | |
6018 | 1019 349, |
1020 /**/ | |
6016 | 1021 348, |
1022 /**/ | |
6014 | 1023 347, |
1024 /**/ | |
6012 | 1025 346, |
1026 /**/ | |
6010 | 1027 345, |
1028 /**/ | |
6007 | 1029 344, |
1030 /**/ | |
6005 | 1031 343, |
1032 /**/ | |
6003 | 1033 342, |
1034 /**/ | |
6001 | 1035 341, |
1036 /**/ | |
5999 | 1037 340, |
1038 /**/ | |
5997 | 1039 339, |
1040 /**/ | |
5995 | 1041 338, |
1042 /**/ | |
5993 | 1043 337, |
1044 /**/ | |
5991 | 1045 336, |
1046 /**/ | |
5989 | 1047 335, |
1048 /**/ | |
5987 | 1049 334, |
1050 /**/ | |
5985 | 1051 333, |
1052 /**/ | |
5983 | 1053 332, |
1054 /**/ | |
5981 | 1055 331, |
1056 /**/ | |
5979 | 1057 330, |
1058 /**/ | |
5977 | 1059 329, |
1060 /**/ | |
5975 | 1061 328, |
1062 /**/ | |
5973 | 1063 327, |
1064 /**/ | |
5971 | 1065 326, |
1066 /**/ | |
5969 | 1067 325, |
1068 /**/ | |
5966 | 1069 324, |
1070 /**/ | |
5964 | 1071 323, |
1072 /**/ | |
5962 | 1073 322, |
1074 /**/ | |
5960 | 1075 321, |
1076 /**/ | |
5958 | 1077 320, |
1078 /**/ | |
5956 | 1079 319, |
1080 /**/ | |
5954 | 1081 318, |
1082 /**/ | |
5952 | 1083 317, |
1084 /**/ | |
5950 | 1085 316, |
1086 /**/ | |
5948 | 1087 315, |
1088 /**/ | |
5946 | 1089 314, |
1090 /**/ | |
5944 | 1091 313, |
1092 /**/ | |
5942 | 1093 312, |
1094 /**/ | |
5940 | 1095 311, |
1096 /**/ | |
5938 | 1097 310, |
1098 /**/ | |
5936 | 1099 309, |
1100 /**/ | |
5934 | 1101 308, |
1102 /**/ | |
5932 | 1103 307, |
1104 /**/ | |
5930 | 1105 306, |
1106 /**/ | |
5927 | 1107 305, |
1108 /**/ | |
5925 | 1109 304, |
1110 /**/ | |
5923 | 1111 303, |
1112 /**/ | |
5921 | 1113 302, |
1114 /**/ | |
5919 | 1115 301, |
1116 /**/ | |
5917 | 1117 300, |
1118 /**/ | |
5915 | 1119 299, |
1120 /**/ | |
5913 | 1121 298, |
1122 /**/ | |
5911 | 1123 297, |
1124 /**/ | |
5909 | 1125 296, |
1126 /**/ | |
5905 | 1127 295, |
1128 /**/ | |
5903 | 1129 294, |
1130 /**/ | |
5901 | 1131 293, |
1132 /**/ | |
5899 | 1133 292, |
1134 /**/ | |
5897 | 1135 291, |
1136 /**/ | |
5895 | 1137 290, |
1138 /**/ | |
5893 | 1139 289, |
1140 /**/ | |
5891 | 1141 288, |
1142 /**/ | |
5889 | 1143 287, |
1144 /**/ | |
5887 | 1145 286, |
1146 /**/ | |
5885 | 1147 285, |
1148 /**/ | |
5883 | 1149 284, |
1150 /**/ | |
5881 | 1151 283, |
1152 /**/ | |
5879 | 1153 282, |
1154 /**/ | |
5877 | 1155 281, |
1156 /**/ | |
5875 | 1157 280, |
1158 /**/ | |
5873 | 1159 279, |
1160 /**/ | |
5871 | 1161 278, |
1162 /**/ | |
5869 | 1163 277, |
1164 /**/ | |
5867 | 1165 276, |
1166 /**/ | |
5865 | 1167 275, |
1168 /**/ | |
5863 | 1169 274, |
1170 /**/ | |
5860 | 1171 273, |
1172 /**/ | |
5858 | 1173 272, |
1174 /**/ | |
5856 | 1175 271, |
1176 /**/ | |
5854 | 1177 270, |
1178 /**/ | |
5852 | 1179 269, |
1180 /**/ | |
5850 | 1181 268, |
1182 /**/ | |
5848 | 1183 267, |
1184 /**/ | |
5846 | 1185 266, |
1186 /**/ | |
5844 | 1187 265, |
1188 /**/ | |
5842 | 1189 264, |
1190 /**/ | |
5840 | 1191 263, |
1192 /**/ | |
5838 | 1193 262, |
1194 /**/ | |
5836 | 1195 261, |
1196 /**/ | |
5834 | 1197 260, |
1198 /**/ | |
5832 | 1199 259, |
1200 /**/ | |
5830 | 1201 258, |
1202 /**/ | |
5828 | 1203 257, |
1204 /**/ | |
5826 | 1205 256, |
1206 /**/ | |
5824 | 1207 255, |
1208 /**/ | |
5822 | 1209 254, |
1210 /**/ | |
5820 | 1211 253, |
1212 /**/ | |
5818 | 1213 252, |
1214 /**/ | |
5816 | 1215 251, |
1216 /**/ | |
5812 | 1217 250, |
1218 /**/ | |
5810 | 1219 249, |
1220 /**/ | |
5808 | 1221 248, |
1222 /**/ | |
5806 | 1223 247, |
1224 /**/ | |
5804 | 1225 246, |
1226 /**/ | |
5802 | 1227 245, |
1228 /**/ | |
5800 | 1229 244, |
1230 /**/ | |
5798 | 1231 243, |
1232 /**/ | |
5796 | 1233 242, |
1234 /**/ | |
5794 | 1235 241, |
1236 /**/ | |
5792 | 1237 240, |
1238 /**/ | |
5790 | 1239 239, |
1240 /**/ | |
5788 | 1241 238, |
1242 /**/ | |
5786 | 1243 237, |
1244 /**/ | |
5784 | 1245 236, |
1246 /**/ | |
5782 | 1247 235, |
1248 /**/ | |
5780 | 1249 234, |
1250 /**/ | |
5778 | 1251 233, |
1252 /**/ | |
5776 | 1253 232, |
1254 /**/ | |
5774 | 1255 231, |
1256 /**/ | |
5772 | 1257 230, |
1258 /**/ | |
5770 | 1259 229, |
1260 /**/ | |
5768 | 1261 228, |
1262 /**/ | |
5766 | 1263 227, |
1264 /**/ | |
5764 | 1265 226, |
1266 /**/ | |
5761 | 1267 225, |
1268 /**/ | |
5759 | 1269 224, |
1270 /**/ | |
5757 | 1271 223, |
1272 /**/ | |
5755 | 1273 222, |
1274 /**/ | |
5753 | 1275 221, |
1276 /**/ | |
5751 | 1277 220, |
1278 /**/ | |
5749 | 1279 219, |
1280 /**/ | |
5747 | 1281 218, |
1282 /**/ | |
5745 | 1283 217, |
1284 /**/ | |
5743 | 1285 216, |
1286 /**/ | |
5741 | 1287 215, |
1288 /**/ | |
5739 | 1289 214, |
1290 /**/ | |
5737 | 1291 213, |
1292 /**/ | |
5735 | 1293 212, |
1294 /**/ | |
5732 | 1295 211, |
1296 /**/ | |
5730 | 1297 210, |
1298 /**/ | |
5728 | 1299 209, |
1300 /**/ | |
5726 | 1301 208, |
1302 /**/ | |
5724 | 1303 207, |
1304 /**/ | |
5722 | 1305 206, |
1306 /**/ | |
5720 | 1307 205, |
1308 /**/ | |
5718 | 1309 204, |
1310 /**/ | |
5716 | 1311 203, |
1312 /**/ | |
5714 | 1313 202, |
1314 /**/ | |
5712 | 1315 201, |
1316 /**/ | |
5710 | 1317 200, |
1318 /**/ | |
5708 | 1319 199, |
1320 /**/ | |
5706 | 1321 198, |
1322 /**/ | |
5704 | 1323 197, |
1324 /**/ | |
5702 | 1325 196, |
1326 /**/ | |
5700 | 1327 195, |
1328 /**/ | |
5698 | 1329 194, |
1330 /**/ | |
5695 | 1331 193, |
1332 /**/ | |
5693 | 1333 192, |
1334 /**/ | |
5690 | 1335 191, |
1336 /**/ | |
5688 | 1337 190, |
1338 /**/ | |
5686 | 1339 189, |
1340 /**/ | |
5684 | 1341 188, |
1342 /**/ | |
5682 | 1343 187, |
1344 /**/ | |
5680 | 1345 186, |
1346 /**/ | |
5678 | 1347 185, |
1348 /**/ | |
5676 | 1349 184, |
1350 /**/ | |
5674 | 1351 183, |
1352 /**/ | |
5672 | 1353 182, |
1354 /**/ | |
5670 | 1355 181, |
1356 /**/ | |
5668 | 1357 180, |
1358 /**/ | |
5666 | 1359 179, |
1360 /**/ | |
5664 | 1361 178, |
1362 /**/ | |
5661 | 1363 177, |
1364 /**/ | |
5659 | 1365 176, |
1366 /**/ | |
5657 | 1367 175, |
1368 /**/ | |
5655 | 1369 174, |
1370 /**/ | |
5653 | 1371 173, |
1372 /**/ | |
5651 | 1373 172, |
1374 /**/ | |
5649 | 1375 171, |
1376 /**/ | |
5647 | 1377 170, |
1378 /**/ | |
5645 | 1379 169, |
1380 /**/ | |
5643 | 1381 168, |
1382 /**/ | |
5641 | 1383 167, |
1384 /**/ | |
5639 | 1385 166, |
1386 /**/ | |
5637 | 1387 165, |
1388 /**/ | |
5635 | 1389 164, |
1390 /**/ | |
5633 | 1391 163, |
1392 /**/ | |
5631 | 1393 162, |
1394 /**/ | |
5629 | 1395 161, |
1396 /**/ | |
5627 | 1397 160, |
1398 /**/ | |
5625 | 1399 159, |
1400 /**/ | |
5623 | 1401 158, |
1402 /**/ | |
5621 | 1403 157, |
1404 /**/ | |
5619 | 1405 156, |
1406 /**/ | |
5616 | 1407 155, |
1408 /**/ | |
5614 | 1409 154, |
1410 /**/ | |
5612 | 1411 153, |
1412 /**/ | |
5610 | 1413 152, |
1414 /**/ | |
5608 | 1415 151, |
1416 /**/ | |
5606 | 1417 150, |
1418 /**/ | |
5604 | 1419 149, |
1420 /**/ | |
5602 | 1421 148, |
1422 /**/ | |
5600 | 1423 147, |
1424 /**/ | |
5598 | 1425 146, |
1426 /**/ | |
5596 | 1427 145, |
1428 /**/ | |
5594 | 1429 144, |
1430 /**/ | |
5592 | 1431 143, |
1432 /**/ | |
5590 | 1433 142, |
1434 /**/ | |
5588 | 1435 141, |
1436 /**/ | |
5586 | 1437 140, |
1438 /**/ | |
5584 | 1439 139, |
1440 /**/ | |
5582 | 1441 138, |
1442 /**/ | |
5580 | 1443 137, |
1444 /**/ | |
5578 | 1445 136, |
1446 /**/ | |
5575 | 1447 135, |
1448 /**/ | |
5573 | 1449 134, |
1450 /**/ | |
5571 | 1451 133, |
1452 /**/ | |
5569 | 1453 132, |
1454 /**/ | |
5566 | 1455 131, |
1456 /**/ | |
5564 | 1457 130, |
1458 /**/ | |
5562 | 1459 129, |
1460 /**/ | |
5560 | 1461 128, |
1462 /**/ | |
5558 | 1463 127, |
1464 /**/ | |
5556 | 1465 126, |
1466 /**/ | |
5553 | 1467 125, |
1468 /**/ | |
5551 | 1469 124, |
1470 /**/ | |
5549 | 1471 123, |
1472 /**/ | |
5547 | 1473 122, |
1474 /**/ | |
5545 | 1475 121, |
1476 /**/ | |
5543 | 1477 120, |
1478 /**/ | |
5541 | 1479 119, |
1480 /**/ | |
5539 | 1481 118, |
1482 /**/ | |
5537 | 1483 117, |
1484 /**/ | |
5535 | 1485 116, |
1486 /**/ | |
5533 | 1487 115, |
1488 /**/ | |
5531 | 1489 114, |
1490 /**/ | |
5529 | 1491 113, |
1492 /**/ | |
5527 | 1493 112, |
1494 /**/ | |
5525 | 1495 111, |
1496 /**/ | |
5523 | 1497 110, |
1498 /**/ | |
5521 | 1499 109, |
1500 /**/ | |
5519 | 1501 108, |
1502 /**/ | |
5517 | 1503 107, |
1504 /**/ | |
5515 | 1505 106, |
1506 /**/ | |
5513 | 1507 105, |
1508 /**/ | |
5511 | 1509 104, |
1510 /**/ | |
5508 | 1511 103, |
1512 /**/ | |
5506 | 1513 102, |
1514 /**/ | |
5504 | 1515 101, |
1516 /**/ | |
5502 | 1517 100, |
1518 /**/ | |
5500 | 1519 99, |
1520 /**/ | |
5498 | 1521 98, |
1522 /**/ | |
5496 | 1523 97, |
1524 /**/ | |
5494 | 1525 96, |
1526 /**/ | |
5492 | 1527 95, |
1528 /**/ | |
5490 | 1529 94, |
1530 /**/ | |
5488 | 1531 93, |
1532 /**/ | |
5485 | 1533 92, |
1534 /**/ | |
5483 | 1535 91, |
1536 /**/ | |
5481 | 1537 90, |
1538 /**/ | |
5479 | 1539 89, |
1540 /**/ | |
5477 | 1541 88, |
1542 /**/ | |
5475 | 1543 87, |
1544 /**/ | |
5473 | 1545 86, |
1546 /**/ | |
5471 | 1547 85, |
1548 /**/ | |
5469 | 1549 84, |
1550 /**/ | |
5467 | 1551 83, |
1552 /**/ | |
5464 | 1553 82, |
1554 /**/ | |
5462 | 1555 81, |
1556 /**/ | |
5460 | 1557 80, |
1558 /**/ | |
5458 | 1559 79, |
1560 /**/ | |
5456 | 1561 78, |
1562 /**/ | |
5454 | 1563 77, |
1564 /**/ | |
5452 | 1565 76, |
1566 /**/ | |
5450 | 1567 75, |
1568 /**/ | |
5448 | 1569 74, |
1570 /**/ | |
5446 | 1571 73, |
1572 /**/ | |
5444 | 1573 72, |
1574 /**/ | |
5442 | 1575 71, |
1576 /**/ | |
5440 | 1577 70, |
1578 /**/ | |
5438 | 1579 69, |
1580 /**/ | |
5436 | 1581 68, |
1582 /**/ | |
5434 | 1583 67, |
1584 /**/ | |
5432 | 1585 66, |
1586 /**/ | |
5430 | 1587 65, |
1588 /**/ | |
5428 | 1589 64, |
1590 /**/ | |
5426 | 1591 63, |
1592 /**/ | |
5423 | 1593 62, |
1594 /**/ | |
5421 | 1595 61, |
1596 /**/ | |
5419 | 1597 60, |
1598 /**/ | |
5417 | 1599 59, |
1600 /**/ | |
5415 | 1601 58, |
1602 /**/ | |
5413 | 1603 57, |
1604 /**/ | |
5411 | 1605 56, |
1606 /**/ | |
5409 | 1607 55, |
1608 /**/ | |
5407 | 1609 54, |
1610 /**/ | |
5405 | 1611 53, |
1612 /**/ | |
5403 | 1613 52, |
1614 /**/ | |
5401 | 1615 51, |
1616 /**/ | |
5398 | 1617 50, |
1618 /**/ | |
5396 | 1619 49, |
1620 /**/ | |
5394 | 1621 48, |
1622 /**/ | |
5392 | 1623 47, |
1624 /**/ | |
5390 | 1625 46, |
1626 /**/ | |
5388 | 1627 45, |
1628 /**/ | |
5386 | 1629 44, |
1630 /**/ | |
5384 | 1631 43, |
1632 /**/ | |
5382 | 1633 42, |
1634 /**/ | |
5380 | 1635 41, |
1636 /**/ | |
5378 | 1637 40, |
1638 /**/ | |
5376 | 1639 39, |
1640 /**/ | |
5374 | 1641 38, |
1642 /**/ | |
5372 | 1643 37, |
1644 /**/ | |
5370 | 1645 36, |
1646 /**/ | |
5367 | 1647 35, |
1648 /**/ | |
5365 | 1649 34, |
1650 /**/ | |
5363 | 1651 33, |
1652 /**/ | |
5360 | 1653 32, |
1654 /**/ | |
5358 | 1655 31, |
1656 /**/ | |
5356 | 1657 30, |
1658 /**/ | |
5353 | 1659 29, |
1660 /**/ | |
5351 | 1661 28, |
1662 /**/ | |
5349 | 1663 27, |
1664 /**/ | |
5347 | 1665 26, |
1666 /**/ | |
5345 | 1667 25, |
1668 /**/ | |
5343 | 1669 24, |
1670 /**/ | |
5341 | 1671 23, |
1672 /**/ | |
5338 | 1673 22, |
1674 /**/ | |
5336 | 1675 21, |
1676 /**/ | |
5334 | 1677 20, |
1678 /**/ | |
5332 | 1679 19, |
1680 /**/ | |
5330 | 1681 18, |
1682 /**/ | |
5328 | 1683 17, |
1684 /**/ | |
5326 | 1685 16, |
1686 /**/ | |
5324 | 1687 15, |
1688 /**/ | |
5322 | 1689 14, |
1690 /**/ | |
5320 | 1691 13, |
1692 /**/ | |
5318 | 1693 12, |
1694 /**/ | |
5316 | 1695 11, |
1696 /**/ | |
5314 | 1697 10, |
1698 /**/ | |
5312 | 1699 9, |
1700 /**/ | |
5310 | 1701 8, |
1702 /**/ | |
5308 | 1703 7, |
1704 /**/ | |
5306 | 1705 6, |
1706 /**/ | |
5304 | 1707 5, |
1708 /**/ | |
5302 | 1709 4, |
1710 /**/ | |
5300 | 1711 3, |
1712 /**/ | |
5298 | 1713 2, |
1714 /**/ | |
5296 | 1715 1, |
1716 /**/ | |
7 | 1717 0 |
1718 }; | |
1719 | |
1760 | 1720 /* |
1721 * Place to put a short description when adding a feature with a patch. | |
1722 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
1723 * Also add a comment marker to separate the lines. | |
1724 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 1725 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 1726 */ |
1727 static char *(extra_patches[]) = | |
1728 { /* Add your patch description below this line */ | |
1729 /**/ | |
1730 NULL | |
1731 }; | |
1732 | |
7 | 1733 int |
1734 highest_patch() | |
1735 { | |
1736 int i; | |
1737 int h = 0; | |
1738 | |
1739 for (i = 0; included_patches[i] != 0; ++i) | |
1740 if (included_patches[i] > h) | |
1741 h = included_patches[i]; | |
1742 return h; | |
1743 } | |
1744 | |
1745 #if defined(FEAT_EVAL) || defined(PROTO) | |
1746 /* | |
1747 * Return TRUE if patch "n" has been included. | |
1748 */ | |
1749 int | |
1750 has_patch(n) | |
1751 int n; | |
1752 { | |
1753 int i; | |
1754 | |
1755 for (i = 0; included_patches[i] != 0; ++i) | |
1756 if (included_patches[i] == n) | |
1757 return TRUE; | |
1758 return FALSE; | |
1759 } | |
1760 #endif | |
1761 | |
1762 void | |
1763 ex_version(eap) | |
1764 exarg_T *eap; | |
1765 { | |
1766 /* | |
1767 * Ignore a ":version 9.99" command. | |
1768 */ | |
1769 if (*eap->arg == NUL) | |
1770 { | |
1771 msg_putchar('\n'); | |
1772 list_version(); | |
1773 } | |
1774 } | |
1775 | |
4147 | 1776 /* |
1777 * List all features aligned in columns, dictionary style. | |
1778 */ | |
1779 static void | |
1780 list_features() | |
1781 { | |
1782 int i; | |
1783 int ncol; | |
1784 int nrow; | |
1785 int nfeat = 0; | |
1786 int width = 0; | |
1787 | |
1788 /* Find the length of the longest feature name, use that + 1 as the column | |
1789 * width */ | |
1790 for (i = 0; features[i] != NULL; ++i) | |
1791 { | |
4160 | 1792 int l = (int)STRLEN(features[i]); |
4147 | 1793 |
1794 if (l > width) | |
1795 width = l; | |
1796 ++nfeat; | |
1797 } | |
1798 width += 1; | |
1799 | |
1800 if (Columns < width) | |
1801 { | |
1802 /* Not enough screen columns - show one per line */ | |
1803 for (i = 0; features[i] != NULL; ++i) | |
1804 { | |
1805 version_msg(features[i]); | |
1806 if (msg_col > 0) | |
1807 msg_putchar('\n'); | |
1808 } | |
1809 return; | |
1810 } | |
1811 | |
1812 /* The rightmost column doesn't need a separator. | |
1813 * Sacrifice it to fit in one more column if possible. */ | |
4170 | 1814 ncol = (int) (Columns + 1) / width; |
4147 | 1815 nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0); |
1816 | |
4170 | 1817 /* i counts columns then rows. idx counts rows then columns. */ |
4147 | 1818 for (i = 0; !got_int && i < nrow * ncol; ++i) |
1819 { | |
1820 int idx = (i / ncol) + (i % ncol) * nrow; | |
1821 | |
1822 if (idx < nfeat) | |
1823 { | |
1824 int last_col = (i + 1) % ncol == 0; | |
1825 | |
1826 msg_puts((char_u *)features[idx]); | |
1827 if (last_col) | |
1828 { | |
1829 if (msg_col > 0) | |
1830 msg_putchar('\n'); | |
1831 } | |
1832 else | |
1833 { | |
1834 while (msg_col % width) | |
1835 msg_putchar(' '); | |
1836 } | |
1837 } | |
1838 else | |
4170 | 1839 { |
1840 if (msg_col > 0) | |
1841 msg_putchar('\n'); | |
1842 } | |
4147 | 1843 } |
1844 } | |
4160 | 1845 |
7 | 1846 void |
1847 list_version() | |
1848 { | |
1849 int i; | |
1850 int first; | |
1851 char *s = ""; | |
1852 | |
1853 /* | |
1854 * When adding features here, don't forget to update the list of | |
1855 * internal variables in eval.c! | |
1856 */ | |
1857 MSG(longVersion); | |
1858 #ifdef WIN3264 | |
1859 # ifdef FEAT_GUI_W32 | |
1860 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
1861 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 1862 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 1863 # else |
990 | 1864 # ifdef _WIN64 |
1607 | 1865 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 1866 # else |
1607 | 1867 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 1868 # endif |
7 | 1869 # endif |
1870 if (gui_is_win32s()) | |
1871 MSG_PUTS(_(" in Win32s mode")); | |
1872 # ifdef FEAT_OLE | |
1873 MSG_PUTS(_(" with OLE support")); | |
1874 # endif | |
1875 # else | |
1607 | 1876 # ifdef _WIN64 |
1877 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
1878 # else | |
1879 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
1880 # endif | |
7 | 1881 # endif |
1882 #endif | |
1883 #ifdef WIN16 | |
1607 | 1884 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 1885 #endif |
1886 #ifdef MSDOS | |
1887 # ifdef DJGPP | |
1607 | 1888 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 1889 # else |
1607 | 1890 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 1891 # endif |
1892 #endif | |
1893 #ifdef MACOS | |
1894 # ifdef MACOS_X | |
1895 # ifdef MACOS_X_UNIX | |
1896 MSG_PUTS(_("\nMacOS X (unix) version")); | |
1897 # else | |
1898 MSG_PUTS(_("\nMacOS X version")); | |
1899 # endif | |
1900 #else | |
1901 MSG_PUTS(_("\nMacOS version")); | |
1902 # endif | |
1903 #endif | |
1904 | |
1905 #ifdef VMS | |
1705 | 1906 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 1907 # ifdef HAVE_PATHDEF |
1908 if (*compiled_arch != NUL) | |
1909 { | |
1910 MSG_PUTS(" - "); | |
1911 MSG_PUTS(compiled_arch); | |
1912 } | |
1913 # endif | |
1914 | |
7 | 1915 #endif |
1916 | |
1917 /* Print the list of patch numbers if there is at least one. */ | |
1918 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
1919 if (included_patches[0] != 0) | |
1920 { | |
1921 MSG_PUTS(_("\nIncluded patches: ")); | |
1922 first = -1; | |
1923 /* find last one */ | |
1924 for (i = 0; included_patches[i] != 0; ++i) | |
1925 ; | |
1926 while (--i >= 0) | |
1927 { | |
1928 if (first < 0) | |
1929 first = included_patches[i]; | |
1930 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
1931 { | |
1932 MSG_PUTS(s); | |
1933 s = ", "; | |
1934 msg_outnum((long)first); | |
1935 if (first != included_patches[i]) | |
1936 { | |
1937 MSG_PUTS("-"); | |
1938 msg_outnum((long)included_patches[i]); | |
1939 } | |
1940 first = -1; | |
1941 } | |
1942 } | |
1943 } | |
1944 | |
1760 | 1945 /* Print the list of extra patch descriptions if there is at least one. */ |
1946 if (extra_patches[0] != NULL) | |
1947 { | |
1948 MSG_PUTS(_("\nExtra patches: ")); | |
1949 s = ""; | |
1950 for (i = 0; extra_patches[i] != NULL; ++i) | |
1951 { | |
1952 MSG_PUTS(s); | |
1953 s = ", "; | |
1954 MSG_PUTS(extra_patches[i]); | |
1955 } | |
1956 } | |
1957 | |
7 | 1958 #ifdef MODIFIED_BY |
1959 MSG_PUTS("\n"); | |
1960 MSG_PUTS(_("Modified by ")); | |
1961 MSG_PUTS(MODIFIED_BY); | |
1962 #endif | |
1963 | |
1964 #ifdef HAVE_PATHDEF | |
1965 if (*compiled_user != NUL || *compiled_sys != NUL) | |
1966 { | |
1967 MSG_PUTS(_("\nCompiled ")); | |
1968 if (*compiled_user != NUL) | |
1969 { | |
1970 MSG_PUTS(_("by ")); | |
1971 MSG_PUTS(compiled_user); | |
1972 } | |
1973 if (*compiled_sys != NUL) | |
1974 { | |
1975 MSG_PUTS("@"); | |
1976 MSG_PUTS(compiled_sys); | |
1977 } | |
1978 } | |
1979 #endif | |
1980 | |
1981 #ifdef FEAT_HUGE | |
1982 MSG_PUTS(_("\nHuge version ")); | |
1983 #else | |
1984 # ifdef FEAT_BIG | |
1985 MSG_PUTS(_("\nBig version ")); | |
1986 # else | |
1987 # ifdef FEAT_NORMAL | |
1988 MSG_PUTS(_("\nNormal version ")); | |
1989 # else | |
1990 # ifdef FEAT_SMALL | |
1991 MSG_PUTS(_("\nSmall version ")); | |
1992 # else | |
1993 MSG_PUTS(_("\nTiny version ")); | |
1994 # endif | |
1995 # endif | |
1996 # endif | |
1997 #endif | |
1998 #ifndef FEAT_GUI | |
1999 MSG_PUTS(_("without GUI.")); | |
2000 #else | |
2001 # ifdef FEAT_GUI_GTK | |
2002 # ifdef FEAT_GUI_GNOME | |
2003 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
2004 # else | |
2005 MSG_PUTS(_("with GTK2 GUI.")); | |
2006 # endif | |
2007 # else | |
2008 # ifdef FEAT_GUI_MOTIF | |
2009 MSG_PUTS(_("with X11-Motif GUI.")); | |
2010 # else | |
2011 # ifdef FEAT_GUI_ATHENA | |
2012 # ifdef FEAT_GUI_NEXTAW | |
2013 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
2014 # else | |
2015 MSG_PUTS(_("with X11-Athena GUI.")); | |
2016 # endif | |
2017 # else | |
2018 # ifdef FEAT_GUI_PHOTON | |
2019 MSG_PUTS(_("with Photon GUI.")); | |
2020 # else | |
2021 # if defined(MSWIN) | |
2022 MSG_PUTS(_("with GUI.")); | |
2023 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2024 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 2025 MSG_PUTS(_("with Carbon GUI.")); |
2026 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2027 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 2028 MSG_PUTS(_("with Cocoa GUI.")); |
2029 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2030 # if defined(MACOS) |
7 | 2031 MSG_PUTS(_("with (classic) GUI.")); |
2032 # endif | |
2033 # endif | |
2034 # endif | |
2035 # endif | |
2036 # endif | |
2037 # endif | |
2038 # endif | |
2039 # endif | |
2040 #endif | |
2041 version_msg(_(" Features included (+) or not (-):\n")); | |
2042 | |
4147 | 2043 list_features(); |
7 | 2044 |
2045 #ifdef SYS_VIMRC_FILE | |
2046 version_msg(_(" system vimrc file: \"")); | |
2047 version_msg(SYS_VIMRC_FILE); | |
2048 version_msg("\"\n"); | |
2049 #endif | |
2050 #ifdef USR_VIMRC_FILE | |
2051 version_msg(_(" user vimrc file: \"")); | |
2052 version_msg(USR_VIMRC_FILE); | |
2053 version_msg("\"\n"); | |
2054 #endif | |
2055 #ifdef USR_VIMRC_FILE2 | |
2056 version_msg(_(" 2nd user vimrc file: \"")); | |
2057 version_msg(USR_VIMRC_FILE2); | |
2058 version_msg("\"\n"); | |
2059 #endif | |
2060 #ifdef USR_VIMRC_FILE3 | |
2061 version_msg(_(" 3rd user vimrc file: \"")); | |
2062 version_msg(USR_VIMRC_FILE3); | |
2063 version_msg("\"\n"); | |
2064 #endif | |
2065 #ifdef USR_EXRC_FILE | |
2066 version_msg(_(" user exrc file: \"")); | |
2067 version_msg(USR_EXRC_FILE); | |
2068 version_msg("\"\n"); | |
2069 #endif | |
2070 #ifdef USR_EXRC_FILE2 | |
2071 version_msg(_(" 2nd user exrc file: \"")); | |
2072 version_msg(USR_EXRC_FILE2); | |
2073 version_msg("\"\n"); | |
2074 #endif | |
2075 #ifdef FEAT_GUI | |
2076 # ifdef SYS_GVIMRC_FILE | |
2077 version_msg(_(" system gvimrc file: \"")); | |
2078 version_msg(SYS_GVIMRC_FILE); | |
2079 version_msg("\"\n"); | |
2080 # endif | |
2081 version_msg(_(" user gvimrc file: \"")); | |
2082 version_msg(USR_GVIMRC_FILE); | |
2083 version_msg("\"\n"); | |
2084 # ifdef USR_GVIMRC_FILE2 | |
2085 version_msg(_("2nd user gvimrc file: \"")); | |
2086 version_msg(USR_GVIMRC_FILE2); | |
2087 version_msg("\"\n"); | |
2088 # endif | |
2089 # ifdef USR_GVIMRC_FILE3 | |
2090 version_msg(_("3rd user gvimrc file: \"")); | |
2091 version_msg(USR_GVIMRC_FILE3); | |
2092 version_msg("\"\n"); | |
2093 # endif | |
2094 #endif | |
2095 #ifdef FEAT_GUI | |
2096 # ifdef SYS_MENU_FILE | |
2097 version_msg(_(" system menu file: \"")); | |
2098 version_msg(SYS_MENU_FILE); | |
2099 version_msg("\"\n"); | |
2100 # endif | |
2101 #endif | |
2102 #ifdef HAVE_PATHDEF | |
2103 if (*default_vim_dir != NUL) | |
2104 { | |
2105 version_msg(_(" fall-back for $VIM: \"")); | |
2106 version_msg((char *)default_vim_dir); | |
2107 version_msg("\"\n"); | |
2108 } | |
2109 if (*default_vimruntime_dir != NUL) | |
2110 { | |
2111 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
2112 version_msg((char *)default_vimruntime_dir); | |
2113 version_msg("\"\n"); | |
2114 } | |
2115 version_msg(_("Compilation: ")); | |
2116 version_msg((char *)all_cflags); | |
2117 version_msg("\n"); | |
2118 #ifdef VMS | |
2119 if (*compiler_version != NUL) | |
2120 { | |
2121 version_msg(_("Compiler: ")); | |
2122 version_msg((char *)compiler_version); | |
2123 version_msg("\n"); | |
2124 } | |
2125 #endif | |
2126 version_msg(_("Linking: ")); | |
2127 version_msg((char *)all_lflags); | |
2128 #endif | |
2129 #ifdef DEBUG | |
2130 version_msg("\n"); | |
2131 version_msg(_(" DEBUG BUILD")); | |
2132 #endif | |
2133 } | |
2134 | |
2135 /* | |
2136 * Output a string for the version message. If it's going to wrap, output a | |
2137 * newline, unless the message is too long to fit on the screen anyway. | |
2138 */ | |
2139 static void | |
2140 version_msg(s) | |
2141 char *s; | |
2142 { | |
2143 int len = (int)STRLEN(s); | |
2144 | |
2145 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
2146 && *s != '\n') | |
2147 msg_putchar('\n'); | |
2148 if (!got_int) | |
2149 MSG_PUTS(s); | |
2150 } | |
2151 | |
2152 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
2153 | |
2154 /* | |
5126
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2155 * Show the intro message when not editing a file. |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2156 */ |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2157 void |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2158 maybe_intro_message() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2159 { |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2160 if (bufempty() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2161 && curbuf->b_fname == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2162 #ifdef FEAT_WINDOWS |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2163 && firstwin->w_next == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2164 #endif |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2165 && vim_strchr(p_shm, SHM_INTRO) == NULL) |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2166 intro_message(FALSE); |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2167 } |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2168 |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2169 /* |
7 | 2170 * Give an introductory message about Vim. |
2171 * Only used when starting Vim on an empty file, without a file name. | |
2172 * Or with the ":intro" command (for Sven :-). | |
2173 */ | |
2174 void | |
2175 intro_message(colon) | |
2176 int colon; /* TRUE for ":intro" */ | |
2177 { | |
2178 int i; | |
2179 int row; | |
2180 int blanklines; | |
2181 int sponsor; | |
2182 char *p; | |
2183 static char *(lines[]) = | |
2184 { | |
2185 N_("VIM - Vi IMproved"), | |
2186 "", | |
2187 N_("version "), | |
2188 N_("by Bram Moolenaar et al."), | |
2189 #ifdef MODIFIED_BY | |
2190 " ", | |
2191 #endif | |
2192 N_("Vim is open source and freely distributable"), | |
2193 "", | |
2194 N_("Help poor children in Uganda!"), | |
2195 N_("type :help iccf<Enter> for information "), | |
2196 "", | |
2197 N_("type :q<Enter> to exit "), | |
2198 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2199 N_("type :help version7<Enter> for version info"), |
7 | 2200 NULL, |
2201 "", | |
2202 N_("Running in Vi compatible mode"), | |
2203 N_("type :set nocp<Enter> for Vim defaults"), | |
2204 N_("type :help cp-default<Enter> for info on this"), | |
2205 }; | |
2206 #ifdef FEAT_GUI | |
2207 static char *(gui_lines[]) = | |
2208 { | |
2209 NULL, | |
2210 NULL, | |
2211 NULL, | |
2212 NULL, | |
2213 #ifdef MODIFIED_BY | |
2214 NULL, | |
2215 #endif | |
2216 NULL, | |
2217 NULL, | |
2218 NULL, | |
2219 N_("menu Help->Orphans for information "), | |
2220 NULL, | |
2221 N_("Running modeless, typed text is inserted"), | |
2222 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2223 N_(" for two modes "), | |
2224 NULL, | |
2225 NULL, | |
2226 NULL, | |
2227 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2228 N_(" for Vim defaults "), | |
2229 }; | |
2230 #endif | |
2231 | |
2232 /* blanklines = screen height - # message lines */ | |
2233 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2234 if (!p_cp) | |
2235 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2236 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2237 if (mch_windows95()) | |
2238 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2239 #endif | |
2240 | |
2241 #ifdef FEAT_WINDOWS | |
2242 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2243 if (p_ls > 1) | |
2244 blanklines -= Rows - topframe->fr_height; | |
2245 #endif | |
2246 if (blanklines < 0) | |
2247 blanklines = 0; | |
2248 | |
2249 /* Show the sponsor and register message one out of four times, the Uganda | |
2250 * message two out of four times. */ | |
615 | 2251 sponsor = (int)time(NULL); |
7 | 2252 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2253 | |
2254 /* start displaying the message lines after half of the blank lines */ | |
2255 row = blanklines / 2; | |
2256 if ((row >= 2 && Columns >= 50) || colon) | |
2257 { | |
2258 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2259 { | |
2260 p = lines[i]; | |
2261 #ifdef FEAT_GUI | |
2262 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2263 p = gui_lines[i]; | |
2264 #endif | |
2265 if (p == NULL) | |
2266 { | |
2267 if (!p_cp) | |
2268 break; | |
2269 continue; | |
2270 } | |
2271 if (sponsor != 0) | |
2272 { | |
2273 if (strstr(p, "children") != NULL) | |
2274 p = sponsor < 0 | |
2275 ? N_("Sponsor Vim development!") | |
2276 : N_("Become a registered Vim user!"); | |
2277 else if (strstr(p, "iccf") != NULL) | |
2278 p = sponsor < 0 | |
2279 ? N_("type :help sponsor<Enter> for information ") | |
2280 : N_("type :help register<Enter> for information "); | |
2281 else if (strstr(p, "Orphans") != NULL) | |
2282 p = N_("menu Help->Sponsor/Register for information "); | |
2283 } | |
2284 if (*p != NUL) | |
2285 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2286 ++row; | |
2287 } | |
2288 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2289 if (mch_windows95()) | |
2290 { | |
2291 do_intro_line(++row, | |
2292 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2293 FALSE, hl_attr(HLF_E)); | |
2294 do_intro_line(++row, | |
2295 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2296 FALSE, 0); | |
2297 } | |
2298 #endif | |
2299 } | |
2300 | |
2301 /* Make the wait-return message appear just below the text. */ | |
2302 if (colon) | |
2303 msg_row = row; | |
2304 } | |
2305 | |
2306 static void | |
2307 do_intro_line(row, mesg, add_version, attr) | |
2308 int row; | |
2309 char_u *mesg; | |
2310 int add_version; | |
2311 int attr; | |
2312 { | |
2313 char_u vers[20]; | |
2314 int col; | |
2315 char_u *p; | |
2316 int l; | |
2317 int clen; | |
2318 #ifdef MODIFIED_BY | |
2319 # define MODBY_LEN 150 | |
2320 char_u modby[MODBY_LEN]; | |
2321 | |
2322 if (*mesg == ' ') | |
2323 { | |
1491 | 2324 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2325 l = STRLEN(modby); |
1491 | 2326 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2327 mesg = modby; |
2328 } | |
2329 #endif | |
2330 | |
2331 /* Center the message horizontally. */ | |
2332 col = vim_strsize(mesg); | |
2333 if (add_version) | |
2334 { | |
2335 STRCPY(vers, mediumVersion); | |
2336 if (highest_patch()) | |
2337 { | |
2338 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2339 if (isalpha((int)vers[3])) |
7 | 2340 { |
3396 | 2341 int len = (isalpha((int)vers[4])) ? 5 : 4; |
2342 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
2343 mediumVersion + len); | |
7 | 2344 } |
2345 else | |
2346 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2347 } | |
2348 col += (int)STRLEN(vers); | |
2349 } | |
2350 col = (Columns - col) / 2; | |
2351 if (col < 0) | |
2352 col = 0; | |
2353 | |
2354 /* Split up in parts to highlight <> items differently. */ | |
2355 for (p = mesg; *p != NUL; p += l) | |
2356 { | |
2357 clen = 0; | |
2358 for (l = 0; p[l] != NUL | |
2359 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2360 { | |
2361 #ifdef FEAT_MBYTE | |
2362 if (has_mbyte) | |
2363 { | |
2364 clen += ptr2cells(p + l); | |
474 | 2365 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2366 } |
2367 else | |
2368 #endif | |
2369 clen += byte2cells(p[l]); | |
2370 } | |
2371 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2372 col += clen; | |
2373 } | |
2374 | |
2375 /* Add the version number to the version line. */ | |
2376 if (add_version) | |
2377 screen_puts(vers, row, col, 0); | |
2378 } | |
2379 | |
2380 /* | |
2381 * ":intro": clear screen, display intro screen and wait for return. | |
2382 */ | |
2383 void | |
2384 ex_intro(eap) | |
1876 | 2385 exarg_T *eap UNUSED; |
7 | 2386 { |
2387 screenclear(); | |
2388 intro_message(TRUE); | |
2389 wait_return(TRUE); | |
2390 } |