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