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