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