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