Mercurial > vim
annotate src/version.c @ 3867:caa0ca9ad06c v7.3.690
updated for version 7.3.690
Problem: When the current directory name is exactly the maximum path length
Vim may crash.
Solution: Only add "/" when there is room. (Danek Duvall)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 14 Oct 2012 04:35:45 +0200 |
parents | 3c072c1cb873 |
children | 7f10daa706bb |
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 | |
3746 | 387 # ifdef FEAT_MOUSE_SGR |
388 "+mouse_sgr", | |
389 # else | |
390 "-mouse_sgr", | |
391 # endif | |
7 | 392 #endif |
393 #ifdef __QNX__ | |
394 # ifdef FEAT_MOUSE_PTERM | |
395 "+mouse_pterm", | |
396 # else | |
397 "-mouse_pterm", | |
398 # endif | |
399 #endif | |
400 #ifdef FEAT_MBYTE_IME | |
401 # ifdef DYNAMIC_IME | |
402 "+multi_byte_ime/dyn", | |
403 # else | |
404 "+multi_byte_ime", | |
405 # endif | |
406 #else | |
407 # ifdef FEAT_MBYTE | |
408 "+multi_byte", | |
409 # else | |
410 "-multi_byte", | |
411 # endif | |
412 #endif | |
413 #ifdef FEAT_MULTI_LANG | |
414 "+multi_lang", | |
415 #else | |
416 "-multi_lang", | |
417 #endif | |
14 | 418 #ifdef FEAT_MZSCHEME |
132 | 419 # ifdef DYNAMIC_MZSCHEME |
420 "+mzscheme/dyn", | |
421 # else | |
14 | 422 "+mzscheme", |
132 | 423 # endif |
14 | 424 #else |
425 "-mzscheme", | |
426 #endif | |
7 | 427 #ifdef FEAT_NETBEANS_INTG |
428 "+netbeans_intg", | |
429 #else | |
430 "-netbeans_intg", | |
431 #endif | |
432 #ifdef FEAT_GUI_W32 | |
433 # ifdef FEAT_OLE | |
434 "+ole", | |
435 # else | |
436 "-ole", | |
437 # endif | |
438 #endif | |
439 #ifdef FEAT_PATH_EXTRA | |
440 "+path_extra", | |
441 #else | |
442 "-path_extra", | |
443 #endif | |
444 #ifdef FEAT_PERL | |
445 # ifdef DYNAMIC_PERL | |
446 "+perl/dyn", | |
447 # else | |
448 "+perl", | |
449 # endif | |
450 #else | |
451 "-perl", | |
452 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
453 #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
|
454 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
455 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
456 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
457 #endif |
7 | 458 #ifdef FEAT_PRINTER |
459 # ifdef FEAT_POSTSCRIPT | |
460 "+postscript", | |
461 # else | |
462 "-postscript", | |
463 # endif | |
464 "+printer", | |
465 #else | |
466 "-printer", | |
467 #endif | |
170 | 468 #ifdef FEAT_PROFILE |
469 "+profile", | |
470 #else | |
471 "-profile", | |
472 #endif | |
7 | 473 #ifdef FEAT_PYTHON |
474 # ifdef DYNAMIC_PYTHON | |
475 "+python/dyn", | |
476 # else | |
477 "+python", | |
478 # endif | |
479 #else | |
480 "-python", | |
481 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
482 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
483 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
484 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
485 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
486 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
487 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
488 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
489 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
490 #endif |
7 | 491 #ifdef FEAT_QUICKFIX |
492 "+quickfix", | |
493 #else | |
494 "-quickfix", | |
495 #endif | |
857 | 496 #ifdef FEAT_RELTIME |
497 "+reltime", | |
498 #else | |
499 "-reltime", | |
500 #endif | |
7 | 501 #ifdef FEAT_RIGHTLEFT |
502 "+rightleft", | |
503 #else | |
504 "-rightleft", | |
505 #endif | |
506 #ifdef FEAT_RUBY | |
507 # ifdef DYNAMIC_RUBY | |
508 "+ruby/dyn", | |
509 # else | |
510 "+ruby", | |
511 # endif | |
512 #else | |
513 "-ruby", | |
514 #endif | |
515 #ifdef FEAT_SCROLLBIND | |
516 "+scrollbind", | |
517 #else | |
518 "-scrollbind", | |
519 #endif | |
520 #ifdef FEAT_SIGNS | |
521 "+signs", | |
522 #else | |
523 "-signs", | |
524 #endif | |
525 #ifdef FEAT_SMARTINDENT | |
526 "+smartindent", | |
527 #else | |
528 "-smartindent", | |
529 #endif | |
530 #ifdef FEAT_SNIFF | |
531 "+sniff", | |
532 #else | |
533 "-sniff", | |
534 #endif | |
1989 | 535 #ifdef STARTUPTIME |
536 "+startuptime", | |
537 #else | |
538 "-startuptime", | |
539 #endif | |
7 | 540 #ifdef FEAT_STL_OPT |
541 "+statusline", | |
542 #else | |
543 "-statusline", | |
544 #endif | |
545 #ifdef FEAT_SUN_WORKSHOP | |
546 "+sun_workshop", | |
547 #else | |
548 "-sun_workshop", | |
549 #endif | |
550 #ifdef FEAT_SYN_HL | |
551 "+syntax", | |
552 #else | |
553 "-syntax", | |
554 #endif | |
555 /* only interesting on Unix systems */ | |
556 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
557 "+system()", | |
558 #endif | |
559 #ifdef FEAT_TAG_BINS | |
560 "+tag_binary", | |
561 #else | |
562 "-tag_binary", | |
563 #endif | |
564 #ifdef FEAT_TAG_OLDSTATIC | |
565 "+tag_old_static", | |
566 #else | |
567 "-tag_old_static", | |
568 #endif | |
569 #ifdef FEAT_TAG_ANYWHITE | |
570 "+tag_any_white", | |
571 #else | |
572 "-tag_any_white", | |
573 #endif | |
574 #ifdef FEAT_TCL | |
575 # ifdef DYNAMIC_TCL | |
576 "+tcl/dyn", | |
577 # else | |
578 "+tcl", | |
579 # endif | |
580 #else | |
581 "-tcl", | |
582 #endif | |
583 #if defined(UNIX) || defined(__EMX__) | |
584 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
585 # ifdef TERMINFO | |
586 "+terminfo", | |
587 # else | |
588 "-terminfo", | |
589 # endif | |
590 #else /* unix always includes termcap support */ | |
591 # ifdef HAVE_TGETENT | |
592 "+tgetent", | |
593 # else | |
594 "-tgetent", | |
595 # endif | |
596 #endif | |
597 #ifdef FEAT_TERMRESPONSE | |
598 "+termresponse", | |
599 #else | |
600 "-termresponse", | |
601 #endif | |
602 #ifdef FEAT_TEXTOBJ | |
603 "+textobjects", | |
604 #else | |
605 "-textobjects", | |
606 #endif | |
607 #ifdef FEAT_TITLE | |
608 "+title", | |
609 #else | |
610 "-title", | |
611 #endif | |
612 #ifdef FEAT_TOOLBAR | |
613 "+toolbar", | |
614 #else | |
615 "-toolbar", | |
616 #endif | |
617 #ifdef FEAT_USR_CMDS | |
618 "+user_commands", | |
619 #else | |
620 "-user_commands", | |
621 #endif | |
622 #ifdef FEAT_VERTSPLIT | |
623 "+vertsplit", | |
624 #else | |
625 "-vertsplit", | |
626 #endif | |
627 #ifdef FEAT_VIRTUALEDIT | |
628 "+virtualedit", | |
629 #else | |
630 "-virtualedit", | |
631 #endif | |
632 #ifdef FEAT_VISUAL | |
633 "+visual", | |
634 # ifdef FEAT_VISUALEXTRA | |
635 "+visualextra", | |
636 # else | |
637 "-visualextra", | |
638 # endif | |
639 #else | |
640 "-visual", | |
641 #endif | |
642 #ifdef FEAT_VIMINFO | |
643 "+viminfo", | |
644 #else | |
645 "-viminfo", | |
646 #endif | |
647 #ifdef FEAT_VREPLACE | |
648 "+vreplace", | |
649 #else | |
650 "-vreplace", | |
651 #endif | |
652 #ifdef FEAT_WILDIGN | |
653 "+wildignore", | |
654 #else | |
655 "-wildignore", | |
656 #endif | |
657 #ifdef FEAT_WILDMENU | |
658 "+wildmenu", | |
659 #else | |
660 "-wildmenu", | |
661 #endif | |
662 #ifdef FEAT_WINDOWS | |
663 "+windows", | |
664 #else | |
665 "-windows", | |
666 #endif | |
667 #ifdef FEAT_WRITEBACKUP | |
668 "+writebackup", | |
669 #else | |
670 "-writebackup", | |
671 #endif | |
672 #if defined(UNIX) || defined(VMS) | |
673 # ifdef FEAT_X11 | |
674 "+X11", | |
675 # else | |
676 "-X11", | |
677 # endif | |
678 #endif | |
679 #ifdef FEAT_XFONTSET | |
680 "+xfontset", | |
681 #else | |
682 "-xfontset", | |
683 #endif | |
684 #ifdef FEAT_XIM | |
685 "+xim", | |
686 #else | |
687 "-xim", | |
688 #endif | |
689 #if defined(UNIX) || defined(VMS) | |
690 # ifdef USE_XSMP_INTERACT | |
691 "+xsmp_interact", | |
692 # else | |
693 # ifdef USE_XSMP | |
694 "+xsmp", | |
695 # else | |
696 "-xsmp", | |
697 # endif | |
698 # endif | |
699 # ifdef FEAT_XCLIPBOARD | |
700 "+xterm_clipboard", | |
701 # else | |
702 "-xterm_clipboard", | |
703 # endif | |
704 #endif | |
705 #ifdef FEAT_XTERM_SAVE | |
706 "+xterm_save", | |
707 #else | |
708 "-xterm_save", | |
709 #endif | |
710 #ifdef WIN3264 | |
711 # ifdef FEAT_XPM_W32 | |
712 "+xpm_w32", | |
713 # else | |
714 "-xpm_w32", | |
715 # endif | |
716 #endif | |
717 NULL | |
718 }; | |
719 | |
720 static int included_patches[] = | |
721 { /* Add new patch number below this line */ | |
722 /**/ | |
3867 | 723 690, |
724 /**/ | |
3865 | 725 689, |
726 /**/ | |
3863 | 727 688, |
728 /**/ | |
3861 | 729 687, |
730 /**/ | |
3859 | 731 686, |
732 /**/ | |
3857 | 733 685, |
734 /**/ | |
3855 | 735 684, |
736 /**/ | |
3852 | 737 683, |
738 /**/ | |
3850 | 739 682, |
740 /**/ | |
3848 | 741 681, |
742 /**/ | |
3845 | 743 680, |
744 /**/ | |
3843 | 745 679, |
746 /**/ | |
3841 | 747 678, |
748 /**/ | |
3839 | 749 677, |
750 /**/ | |
3837 | 751 676, |
752 /**/ | |
3835 | 753 675, |
754 /**/ | |
3833 | 755 674, |
756 /**/ | |
3831 | 757 673, |
758 /**/ | |
3828 | 759 672, |
760 /**/ | |
3826 | 761 671, |
762 /**/ | |
3824 | 763 670, |
764 /**/ | |
3822 | 765 669, |
766 /**/ | |
3820 | 767 668, |
768 /**/ | |
3818 | 769 667, |
770 /**/ | |
3816 | 771 666, |
772 /**/ | |
3814 | 773 665, |
774 /**/ | |
3812 | 775 664, |
776 /**/ | |
3810 | 777 663, |
778 /**/ | |
3808 | 779 662, |
780 /**/ | |
3806 | 781 661, |
782 /**/ | |
3804 | 783 660, |
784 /**/ | |
3802 | 785 659, |
786 /**/ | |
3800 | 787 658, |
788 /**/ | |
3798 | 789 657, |
790 /**/ | |
3796 | 791 656, |
792 /**/ | |
3794 | 793 655, |
794 /**/ | |
3792 | 795 654, |
796 /**/ | |
3790 | 797 653, |
798 /**/ | |
3788 | 799 652, |
800 /**/ | |
3786 | 801 651, |
802 /**/ | |
3784 | 803 650, |
804 /**/ | |
3782 | 805 649, |
806 /**/ | |
3780 | 807 648, |
808 /**/ | |
3778 | 809 647, |
810 /**/ | |
3776 | 811 646, |
812 /**/ | |
3774 | 813 645, |
814 /**/ | |
3772 | 815 644, |
816 /**/ | |
3770 | 817 643, |
818 /**/ | |
3768 | 819 642, |
820 /**/ | |
3766 | 821 641, |
822 /**/ | |
3764 | 823 640, |
824 /**/ | |
3762 | 825 639, |
826 /**/ | |
3759 | 827 638, |
828 /**/ | |
3757 | 829 637, |
830 /**/ | |
3755 | 831 636, |
832 /**/ | |
3753 | 833 635, |
834 /**/ | |
3751 | 835 634, |
836 /**/ | |
3748 | 837 633, |
838 /**/ | |
3746 | 839 632, |
840 /**/ | |
3744 | 841 631, |
842 /**/ | |
3742 | 843 630, |
844 /**/ | |
3740 | 845 629, |
846 /**/ | |
3738 | 847 628, |
848 /**/ | |
3736 | 849 627, |
850 /**/ | |
3734 | 851 626, |
852 /**/ | |
3732 | 853 625, |
854 /**/ | |
3730 | 855 624, |
856 /**/ | |
3728 | 857 623, |
858 /**/ | |
3726 | 859 622, |
860 /**/ | |
3724 | 861 621, |
862 /**/ | |
3722 | 863 620, |
864 /**/ | |
3720 | 865 619, |
866 /**/ | |
3718 | 867 618, |
868 /**/ | |
3716 | 869 617, |
870 /**/ | |
3714 | 871 616, |
872 /**/ | |
3711 | 873 615, |
874 /**/ | |
3709 | 875 614, |
876 /**/ | |
3707 | 877 613, |
878 /**/ | |
3705 | 879 612, |
880 /**/ | |
3703 | 881 611, |
882 /**/ | |
3701 | 883 610, |
884 /**/ | |
3699 | 885 609, |
886 /**/ | |
3697 | 887 608, |
888 /**/ | |
3695 | 889 607, |
890 /**/ | |
3693 | 891 606, |
892 /**/ | |
3691 | 893 605, |
894 /**/ | |
3689 | 895 604, |
896 /**/ | |
3687 | 897 603, |
898 /**/ | |
3685 | 899 602, |
900 /**/ | |
3683 | 901 601, |
902 /**/ | |
3680 | 903 600, |
904 /**/ | |
3678 | 905 599, |
906 /**/ | |
3676 | 907 598, |
908 /**/ | |
3674 | 909 597, |
910 /**/ | |
3672 | 911 596, |
912 /**/ | |
3670 | 913 595, |
914 /**/ | |
3668 | 915 594, |
916 /**/ | |
3666 | 917 593, |
918 /**/ | |
3664 | 919 592, |
920 /**/ | |
3662 | 921 591, |
922 /**/ | |
3660 | 923 590, |
924 /**/ | |
3658 | 925 589, |
926 /**/ | |
3656 | 927 588, |
928 /**/ | |
3654 | 929 587, |
930 /**/ | |
3652 | 931 586, |
932 /**/ | |
3650 | 933 585, |
934 /**/ | |
3648 | 935 584, |
936 /**/ | |
3646 | 937 583, |
938 /**/ | |
3644 | 939 582, |
940 /**/ | |
3642 | 941 581, |
942 /**/ | |
3640 | 943 580, |
944 /**/ | |
3638 | 945 579, |
946 /**/ | |
3636 | 947 578, |
948 /**/ | |
3634 | 949 577, |
950 /**/ | |
3632 | 951 576, |
952 /**/ | |
3630 | 953 575, |
954 /**/ | |
3628 | 955 574, |
956 /**/ | |
3626 | 957 573, |
958 /**/ | |
3624 | 959 572, |
960 /**/ | |
3622 | 961 571, |
962 /**/ | |
3620 | 963 570, |
964 /**/ | |
3618 | 965 569, |
966 /**/ | |
3616 | 967 568, |
968 /**/ | |
3614 | 969 567, |
970 /**/ | |
3612 | 971 566, |
972 /**/ | |
3610 | 973 565, |
974 /**/ | |
3608 | 975 564, |
976 /**/ | |
3606 | 977 563, |
978 /**/ | |
3604 | 979 562, |
980 /**/ | |
3602 | 981 561, |
982 /**/ | |
3600 | 983 560, |
984 /**/ | |
3598 | 985 559, |
986 /**/ | |
3596 | 987 558, |
988 /**/ | |
3594 | 989 557, |
990 /**/ | |
3592 | 991 556, |
992 /**/ | |
3590 | 993 555, |
994 /**/ | |
3588 | 995 554, |
996 /**/ | |
3586 | 997 553, |
998 /**/ | |
3584 | 999 552, |
1000 /**/ | |
3582 | 1001 551, |
1002 /**/ | |
3580 | 1003 550, |
1004 /**/ | |
3578 | 1005 549, |
1006 /**/ | |
3576 | 1007 548, |
1008 /**/ | |
3574 | 1009 547, |
1010 /**/ | |
3572 | 1011 546, |
1012 /**/ | |
3570 | 1013 545, |
1014 /**/ | |
3568 | 1015 544, |
1016 /**/ | |
3566 | 1017 543, |
1018 /**/ | |
3564 | 1019 542, |
1020 /**/ | |
3562 | 1021 541, |
1022 /**/ | |
3560 | 1023 540, |
1024 /**/ | |
3558 | 1025 539, |
1026 /**/ | |
3555 | 1027 538, |
1028 /**/ | |
3553 | 1029 537, |
1030 /**/ | |
3551 | 1031 536, |
1032 /**/ | |
3549 | 1033 535, |
1034 /**/ | |
3547 | 1035 534, |
1036 /**/ | |
3545 | 1037 533, |
1038 /**/ | |
3543 | 1039 532, |
1040 /**/ | |
3541 | 1041 531, |
1042 /**/ | |
3539 | 1043 530, |
1044 /**/ | |
3537 | 1045 529, |
1046 /**/ | |
3535 | 1047 528, |
1048 /**/ | |
3533 | 1049 527, |
1050 /**/ | |
3531 | 1051 526, |
1052 /**/ | |
3529 | 1053 525, |
1054 /**/ | |
3527 | 1055 524, |
1056 /**/ | |
1057 523, | |
3524 | 1058 /**/ |
3522 | 1059 522, |
1060 /**/ | |
3520 | 1061 521, |
1062 /**/ | |
3518 | 1063 520, |
1064 /**/ | |
3516 | 1065 519, |
1066 /**/ | |
3514 | 1067 518, |
1068 /**/ | |
3510 | 1069 517, |
1070 /**/ | |
3508 | 1071 516, |
1072 /**/ | |
3505 | 1073 515, |
1074 /**/ | |
3503 | 1075 514, |
1076 /**/ | |
3501 | 1077 513, |
1078 /**/ | |
3499 | 1079 512, |
1080 /**/ | |
3497 | 1081 511, |
1082 /**/ | |
3494 | 1083 510, |
1084 /**/ | |
3490 | 1085 509, |
1086 /**/ | |
3488 | 1087 508, |
1088 /**/ | |
3486 | 1089 507, |
1090 /**/ | |
3484 | 1091 506, |
1092 /**/ | |
3482 | 1093 505, |
1094 /**/ | |
3480 | 1095 504, |
1096 /**/ | |
3478 | 1097 503, |
1098 /**/ | |
3476 | 1099 502, |
1100 /**/ | |
3474 | 1101 501, |
1102 /**/ | |
3472 | 1103 500, |
1104 /**/ | |
3470 | 1105 499, |
1106 /**/ | |
3468 | 1107 498, |
1108 /**/ | |
3466 | 1109 497, |
1110 /**/ | |
3463 | 1111 496, |
1112 /**/ | |
3461 | 1113 495, |
1114 /**/ | |
3459 | 1115 494, |
1116 /**/ | |
3457 | 1117 493, |
1118 /**/ | |
3454 | 1119 492, |
1120 /**/ | |
3452 | 1121 491, |
1122 /**/ | |
3450 | 1123 490, |
1124 /**/ | |
3448 | 1125 489, |
1126 /**/ | |
3446 | 1127 488, |
1128 /**/ | |
3443 | 1129 487, |
1130 /**/ | |
3441 | 1131 486, |
1132 /**/ | |
3439 | 1133 485, |
1134 /**/ | |
3437 | 1135 484, |
1136 /**/ | |
3435 | 1137 483, |
1138 /**/ | |
3433 | 1139 482, |
1140 /**/ | |
3431 | 1141 481, |
1142 /**/ | |
3429 | 1143 480, |
1144 /**/ | |
3427 | 1145 479, |
1146 /**/ | |
3425 | 1147 478, |
1148 /**/ | |
3423 | 1149 477, |
1150 /**/ | |
3421 | 1151 476, |
1152 /**/ | |
3419 | 1153 475, |
1154 /**/ | |
3417 | 1155 474, |
1156 /**/ | |
3415 | 1157 473, |
1158 /**/ | |
3413 | 1159 472, |
1160 /**/ | |
3411 | 1161 471, |
1162 /**/ | |
3408 | 1163 470, |
1164 /**/ | |
3406 | 1165 469, |
1166 /**/ | |
3404 | 1167 468, |
1168 /**/ | |
3402 | 1169 467, |
1170 /**/ | |
3400 | 1171 466, |
1172 /**/ | |
3398 | 1173 465, |
3396 | 1174 /**/ |
1175 464, | |
1176 /**/ | |
3394 | 1177 463, |
1178 /**/ | |
3392 | 1179 462, |
1180 /**/ | |
3390 | 1181 461, |
1182 /**/ | |
3388 | 1183 460, |
1184 /**/ | |
3386 | 1185 459, |
1186 /**/ | |
3384 | 1187 458, |
1188 /**/ | |
3382 | 1189 457, |
1190 /**/ | |
3380 | 1191 456, |
1192 /**/ | |
3378 | 1193 455, |
1194 /**/ | |
3376 | 1195 454, |
1196 /**/ | |
3374 | 1197 453, |
1198 /**/ | |
3372 | 1199 452, |
1200 /**/ | |
3369 | 1201 451, |
1202 /**/ | |
3367 | 1203 450, |
1204 /**/ | |
3365 | 1205 449, |
1206 /**/ | |
3363 | 1207 448, |
1208 /**/ | |
3361 | 1209 447, |
1210 /**/ | |
3359 | 1211 446, |
1212 /**/ | |
3357 | 1213 445, |
1214 /**/ | |
3354 | 1215 444, |
1216 /**/ | |
3352 | 1217 443, |
1218 /**/ | |
3350 | 1219 442, |
1220 /**/ | |
3348 | 1221 441, |
1222 /**/ | |
3346 | 1223 440, |
1224 /**/ | |
3344 | 1225 439, |
1226 /**/ | |
3342 | 1227 438, |
1228 /**/ | |
3340 | 1229 437, |
1230 /**/ | |
3338 | 1231 436, |
1232 /**/ | |
3336 | 1233 435, |
1234 /**/ | |
3334 | 1235 434, |
1236 /**/ | |
3332 | 1237 433, |
1238 /**/ | |
3330 | 1239 432, |
1240 /**/ | |
3328 | 1241 431, |
1242 /**/ | |
3326 | 1243 430, |
1244 /**/ | |
3324 | 1245 429, |
1246 /**/ | |
3322 | 1247 428, |
1248 /**/ | |
3320 | 1249 427, |
1250 /**/ | |
3318 | 1251 426, |
1252 /**/ | |
3316 | 1253 425, |
1254 /**/ | |
3314 | 1255 424, |
1256 /**/ | |
3312 | 1257 423, |
1258 /**/ | |
3310 | 1259 422, |
1260 /**/ | |
3308 | 1261 421, |
1262 /**/ | |
3306 | 1263 420, |
1264 /**/ | |
3304 | 1265 419, |
1266 /**/ | |
3302 | 1267 418, |
1268 /**/ | |
3300 | 1269 417, |
1270 /**/ | |
3298 | 1271 416, |
1272 /**/ | |
3294 | 1273 415, |
1274 /**/ | |
3292 | 1275 414, |
1276 /**/ | |
3290 | 1277 413, |
1278 /**/ | |
3288 | 1279 412, |
1280 /**/ | |
3286 | 1281 411, |
1282 /**/ | |
3284 | 1283 410, |
1284 /**/ | |
3282 | 1285 409, |
1286 /**/ | |
3279 | 1287 408, |
1288 /**/ | |
3277 | 1289 407, |
1290 /**/ | |
3275 | 1291 406, |
1292 /**/ | |
3273 | 1293 405, |
1294 /**/ | |
3271 | 1295 404, |
1296 /**/ | |
3269 | 1297 403, |
1298 /**/ | |
3267 | 1299 402, |
1300 /**/ | |
3265 | 1301 401, |
1302 /**/ | |
3263 | 1303 400, |
1304 /**/ | |
3261 | 1305 399, |
1306 /**/ | |
3259 | 1307 398, |
1308 /**/ | |
3257 | 1309 397, |
1310 /**/ | |
3254 | 1311 396, |
1312 /**/ | |
3252 | 1313 395, |
1314 /**/ | |
3250 | 1315 394, |
1316 /**/ | |
3248 | 1317 393, |
1318 /**/ | |
3246 | 1319 392, |
1320 /**/ | |
3244 | 1321 391, |
1322 /**/ | |
3242 | 1323 390, |
1324 /**/ | |
3240 | 1325 389, |
1326 /**/ | |
3238 | 1327 388, |
1328 /**/ | |
3235 | 1329 387, |
1330 /**/ | |
3233 | 1331 386, |
1332 /**/ | |
3231 | 1333 385, |
1334 /**/ | |
3229 | 1335 384, |
1336 /**/ | |
3227 | 1337 383, |
1338 /**/ | |
3225 | 1339 382, |
1340 /**/ | |
3222 | 1341 381, |
1342 /**/ | |
3220 | 1343 380, |
1344 /**/ | |
3218 | 1345 379, |
1346 /**/ | |
3216 | 1347 378, |
1348 /**/ | |
3214 | 1349 377, |
1350 /**/ | |
3212 | 1351 376, |
1352 /**/ | |
3210 | 1353 375, |
1354 /**/ | |
3208 | 1355 374, |
1356 /**/ | |
3206 | 1357 373, |
1358 /**/ | |
3204 | 1359 372, |
1360 /**/ | |
3202 | 1361 371, |
1362 /**/ | |
3200 | 1363 370, |
1364 /**/ | |
3198 | 1365 369, |
1366 /**/ | |
3196 | 1367 368, |
1368 /**/ | |
3194 | 1369 367, |
1370 /**/ | |
3192 | 1371 366, |
1372 /**/ | |
3190 | 1373 365, |
1374 /**/ | |
3188 | 1375 364, |
1376 /**/ | |
3186 | 1377 363, |
1378 /**/ | |
3184 | 1379 362, |
1380 /**/ | |
3182 | 1381 361, |
1382 /**/ | |
3180 | 1383 360, |
1384 /**/ | |
3178 | 1385 359, |
1386 /**/ | |
3176 | 1387 358, |
1388 /**/ | |
3174 | 1389 357, |
1390 /**/ | |
3172 | 1391 356, |
1392 /**/ | |
3170 | 1393 355, |
1394 /**/ | |
3168 | 1395 354, |
1396 /**/ | |
3166 | 1397 353, |
1398 /**/ | |
3164 | 1399 352, |
1400 /**/ | |
3162 | 1401 351, |
1402 /**/ | |
3160 | 1403 350, |
1404 /**/ | |
3158 | 1405 349, |
1406 /**/ | |
3156 | 1407 348, |
1408 /**/ | |
3154 | 1409 347, |
1410 /**/ | |
3151 | 1411 346, |
1412 /**/ | |
3149 | 1413 345, |
1414 /**/ | |
3147 | 1415 344, |
1416 /**/ | |
3145 | 1417 343, |
1418 /**/ | |
3143 | 1419 342, |
1420 /**/ | |
3141 | 1421 341, |
1422 /**/ | |
3139 | 1423 340, |
1424 /**/ | |
3137 | 1425 339, |
1426 /**/ | |
3135 | 1427 338, |
1428 /**/ | |
3133 | 1429 337, |
1430 /**/ | |
3131 | 1431 336, |
1432 /**/ | |
3129 | 1433 335, |
1434 /**/ | |
3127 | 1435 334, |
1436 /**/ | |
3125 | 1437 333, |
1438 /**/ | |
3123 | 1439 332, |
1440 /**/ | |
3121 | 1441 331, |
1442 /**/ | |
3119 | 1443 330, |
1444 /**/ | |
3116 | 1445 329, |
1446 /**/ | |
3114 | 1447 328, |
1448 /**/ | |
3112 | 1449 327, |
1450 /**/ | |
3110 | 1451 326, |
1452 /**/ | |
3108 | 1453 325, |
1454 /**/ | |
3106 | 1455 324, |
1456 /**/ | |
3104 | 1457 323, |
1458 /**/ | |
3102 | 1459 322, |
1460 /**/ | |
3100 | 1461 321, |
1462 /**/ | |
3097 | 1463 320, |
1464 /**/ | |
3095 | 1465 319, |
1466 /**/ | |
3093 | 1467 318, |
1468 /**/ | |
3091 | 1469 317, |
1470 /**/ | |
3089 | 1471 316, |
1472 /**/ | |
3087 | 1473 315, |
1474 /**/ | |
3085 | 1475 314, |
1476 /**/ | |
3083 | 1477 313, |
1478 /**/ | |
3080 | 1479 312, |
1480 /**/ | |
3078 | 1481 311, |
1482 /**/ | |
3076 | 1483 310, |
1484 /**/ | |
3074 | 1485 309, |
1486 /**/ | |
3072 | 1487 308, |
1488 /**/ | |
3070 | 1489 307, |
1490 /**/ | |
3068 | 1491 306, |
1492 /**/ | |
3066 | 1493 305, |
1494 /**/ | |
3064 | 1495 304, |
1496 /**/ | |
3062 | 1497 303, |
1498 /**/ | |
3060 | 1499 302, |
1500 /**/ | |
3058 | 1501 301, |
1502 /**/ | |
3056 | 1503 300, |
1504 /**/ | |
3054 | 1505 299, |
1506 /**/ | |
3052 | 1507 298, |
1508 /**/ | |
3050 | 1509 297, |
1510 /**/ | |
3048 | 1511 296, |
1512 /**/ | |
3046 | 1513 295, |
1514 /**/ | |
3044 | 1515 294, |
1516 /**/ | |
3042 | 1517 293, |
1518 /**/ | |
3040 | 1519 292, |
1520 /**/ | |
3038 | 1521 291, |
1522 /**/ | |
3036 | 1523 290, |
1524 /**/ | |
3034 | 1525 289, |
1526 /**/ | |
3032 | 1527 288, |
1528 /**/ | |
3030 | 1529 287, |
1530 /**/ | |
3028 | 1531 286, |
1532 /**/ | |
3026 | 1533 285, |
1534 /**/ | |
3024 | 1535 284, |
1536 /**/ | |
3022 | 1537 283, |
1538 /**/ | |
3020 | 1539 282, |
1540 /**/ | |
3018 | 1541 281, |
1542 /**/ | |
3016 | 1543 280, |
1544 /**/ | |
3014 | 1545 279, |
1546 /**/ | |
3012 | 1547 278, |
1548 /**/ | |
3010 | 1549 277, |
1550 /**/ | |
3008 | 1551 276, |
1552 /**/ | |
3006 | 1553 275, |
1554 /**/ | |
3004 | 1555 274, |
1556 /**/ | |
3002 | 1557 273, |
1558 /**/ | |
3000 | 1559 272, |
1560 /**/ | |
2998 | 1561 271, |
1562 /**/ | |
2996 | 1563 270, |
1564 /**/ | |
2994 | 1565 269, |
1566 /**/ | |
2992 | 1567 268, |
1568 /**/ | |
2990 | 1569 267, |
1570 /**/ | |
2988 | 1571 266, |
1572 /**/ | |
2986 | 1573 265, |
1574 /**/ | |
2984 | 1575 264, |
1576 /**/ | |
2982 | 1577 263, |
1578 /**/ | |
2980 | 1579 262, |
1580 /**/ | |
2978 | 1581 261, |
1582 /**/ | |
2976 | 1583 260, |
1584 /**/ | |
2974 | 1585 259, |
1586 /**/ | |
2972 | 1587 258, |
1588 /**/ | |
2970 | 1589 257, |
1590 /**/ | |
2968 | 1591 256, |
1592 /**/ | |
2966 | 1593 255, |
1594 /**/ | |
2963 | 1595 254, |
1596 /**/ | |
2961 | 1597 253, |
1598 /**/ | |
2959 | 1599 252, |
1600 /**/ | |
2957 | 1601 251, |
1602 /**/ | |
2955 | 1603 250, |
1604 /**/ | |
2953 | 1605 249, |
1606 /**/ | |
2951 | 1607 248, |
1608 /**/ | |
2949 | 1609 247, |
1610 /**/ | |
2947 | 1611 246, |
1612 /**/ | |
2945 | 1613 245, |
1614 /**/ | |
2943 | 1615 244, |
1616 /**/ | |
2941 | 1617 243, |
1618 /**/ | |
2939 | 1619 242, |
1620 /**/ | |
2937 | 1621 241, |
1622 /**/ | |
2935 | 1623 240, |
1624 /**/ | |
2933 | 1625 239, |
1626 /**/ | |
2931 | 1627 238, |
1628 /**/ | |
2929 | 1629 237, |
1630 /**/ | |
2927 | 1631 236, |
1632 /**/ | |
2925 | 1633 235, |
1634 /**/ | |
2923 | 1635 234, |
1636 /**/ | |
2921 | 1637 233, |
1638 /**/ | |
2919 | 1639 232, |
1640 /**/ | |
2917 | 1641 231, |
1642 /**/ | |
2915 | 1643 230, |
1644 /**/ | |
2913 | 1645 229, |
1646 /**/ | |
2911 | 1647 228, |
1648 /**/ | |
2909 | 1649 227, |
1650 /**/ | |
2906 | 1651 226, |
1652 /**/ | |
2904 | 1653 225, |
1654 /**/ | |
2902 | 1655 224, |
1656 /**/ | |
2900 | 1657 223, |
1658 /**/ | |
2898 | 1659 222, |
1660 /**/ | |
2896 | 1661 221, |
1662 /**/ | |
2894 | 1663 220, |
1664 /**/ | |
2891 | 1665 219, |
1666 /**/ | |
2889 | 1667 218, |
1668 /**/ | |
2887 | 1669 217, |
1670 /**/ | |
2885 | 1671 216, |
1672 /**/ | |
2883 | 1673 215, |
1674 /**/ | |
2881 | 1675 214, |
1676 /**/ | |
2879 | 1677 213, |
1678 /**/ | |
2877 | 1679 212, |
1680 /**/ | |
2875 | 1681 211, |
1682 /**/ | |
2873 | 1683 210, |
1684 /**/ | |
2871 | 1685 209, |
1686 /**/ | |
2869 | 1687 208, |
1688 /**/ | |
2867 | 1689 207, |
1690 /**/ | |
2865 | 1691 206, |
1692 /**/ | |
2863 | 1693 205, |
1694 /**/ | |
2861 | 1695 204, |
1696 /**/ | |
2859 | 1697 203, |
1698 /**/ | |
2857 | 1699 202, |
1700 /**/ | |
2855 | 1701 201, |
1702 /**/ | |
2853 | 1703 200, |
1704 /**/ | |
2851 | 1705 199, |
1706 /**/ | |
2849 | 1707 198, |
1708 /**/ | |
2847 | 1709 197, |
1710 /**/ | |
2845 | 1711 196, |
1712 /**/ | |
2843 | 1713 195, |
1714 /**/ | |
2841 | 1715 194, |
1716 /**/ | |
2839 | 1717 193, |
1718 /**/ | |
2837 | 1719 192, |
1720 /**/ | |
2834 | 1721 191, |
1722 /**/ | |
2831 | 1723 190, |
1724 /**/ | |
2829 | 1725 189, |
1726 /**/ | |
2827 | 1727 188, |
1728 /**/ | |
2823 | 1729 187, |
1730 /**/ | |
2821 | 1731 186, |
1732 /**/ | |
2819 | 1733 185, |
1734 /**/ | |
2817 | 1735 184, |
1736 /**/ | |
2815 | 1737 183, |
1738 /**/ | |
2813 | 1739 182, |
1740 /**/ | |
2811 | 1741 181, |
1742 /**/ | |
2809 | 1743 180, |
1744 /**/ | |
2807 | 1745 179, |
1746 /**/ | |
2805 | 1747 178, |
1748 /**/ | |
2803 | 1749 177, |
1750 /**/ | |
2801 | 1751 176, |
1752 /**/ | |
2799 | 1753 175, |
1754 /**/ | |
2797 | 1755 174, |
1756 /**/ | |
2795 | 1757 173, |
1758 /**/ | |
2793 | 1759 172, |
1760 /**/ | |
2791 | 1761 171, |
1762 /**/ | |
2789 | 1763 170, |
1764 /**/ | |
2786 | 1765 169, |
1766 /**/ | |
2784 | 1767 168, |
1768 /**/ | |
2782 | 1769 167, |
1770 /**/ | |
2780 | 1771 166, |
1772 /**/ | |
2778 | 1773 165, |
1774 /**/ | |
2776 | 1775 164, |
1776 /**/ | |
2774 | 1777 163, |
1778 /**/ | |
2772 | 1779 162, |
1780 /**/ | |
2770 | 1781 161, |
1782 /**/ | |
2768 | 1783 160, |
1784 /**/ | |
2766 | 1785 159, |
1786 /**/ | |
2764 | 1787 158, |
1788 /**/ | |
2762 | 1789 157, |
1790 /**/ | |
2760 | 1791 156, |
1792 /**/ | |
2758 | 1793 155, |
1794 /**/ | |
2756 | 1795 154, |
1796 /**/ | |
2754 | 1797 153, |
1798 /**/ | |
2752 | 1799 152, |
1800 /**/ | |
2749 | 1801 151, |
1802 /**/ | |
2747 | 1803 150, |
1804 /**/ | |
2745 | 1805 149, |
1806 /**/ | |
2743 | 1807 148, |
1808 /**/ | |
2741 | 1809 147, |
1810 /**/ | |
2739 | 1811 146, |
1812 /**/ | |
2737 | 1813 145, |
1814 /**/ | |
2735 | 1815 144, |
1816 /**/ | |
2730 | 1817 143, |
1818 /**/ | |
2727 | 1819 142, |
1820 /**/ | |
2726 | 1821 141, |
1822 /**/ | |
2724 | 1823 140, |
1824 /**/ | |
2723 | 1825 139, |
1826 /**/ | |
2722 | 1827 138, |
1828 /**/ | |
2721 | 1829 137, |
1830 /**/ | |
2720 | 1831 136, |
1832 /**/ | |
2719 | 1833 135, |
1834 /**/ | |
2718 | 1835 134, |
1836 /**/ | |
2717 | 1837 133, |
1838 /**/ | |
2716 | 1839 132, |
1840 /**/ | |
2715 | 1841 131, |
1842 /**/ | |
2714 | 1843 130, |
1844 /**/ | |
2713 | 1845 129, |
1846 /**/ | |
2712 | 1847 128, |
1848 /**/ | |
2711 | 1849 127, |
1850 /**/ | |
2710 | 1851 126, |
1852 /**/ | |
2708 | 1853 125, |
1854 /**/ | |
2707 | 1855 124, |
1856 /**/ | |
2706 | 1857 123, |
1858 /**/ | |
2705 | 1859 122, |
1860 /**/ | |
2704 | 1861 121, |
1862 /**/ | |
2703 | 1863 120, |
1864 /**/ | |
2702 | 1865 119, |
1866 /**/ | |
2701 | 1867 118, |
1868 /**/ | |
2700 | 1869 117, |
1870 /**/ | |
2699 | 1871 116, |
1872 /**/ | |
2697 | 1873 115, |
1874 /**/ | |
2696 | 1875 114, |
1876 /**/ | |
2695 | 1877 113, |
1878 /**/ | |
2694 | 1879 112, |
1880 /**/ | |
2693 | 1881 111, |
1882 /**/ | |
2692 | 1883 110, |
1884 /**/ | |
2691 | 1885 109, |
1886 /**/ | |
2690 | 1887 108, |
1888 /**/ | |
2689 | 1889 107, |
1890 /**/ | |
2688 | 1891 106, |
1892 /**/ | |
2687 | 1893 105, |
1894 /**/ | |
2686 | 1895 104, |
1896 /**/ | |
2685 | 1897 103, |
1898 /**/ | |
2684 | 1899 102, |
1900 /**/ | |
2683 | 1901 101, |
1902 /**/ | |
2682 | 1903 100, |
1904 /**/ | |
2680 | 1905 99, |
1906 /**/ | |
2679 | 1907 98, |
1908 /**/ | |
2678 | 1909 97, |
1910 /**/ | |
2677 | 1911 96, |
1912 /**/ | |
2676 | 1913 95, |
1914 /**/ | |
2675 | 1915 94, |
1916 /**/ | |
2674 | 1917 93, |
1918 /**/ | |
2673 | 1919 92, |
1920 /**/ | |
2672 | 1921 91, |
1922 /**/ | |
2671 | 1923 90, |
1924 /**/ | |
2670 | 1925 89, |
1926 /**/ | |
2669 | 1927 88, |
1928 /**/ | |
2668 | 1929 87, |
1930 /**/ | |
2667 | 1931 86, |
1932 /**/ | |
2666 | 1933 85, |
1934 /**/ | |
2665 | 1935 84, |
1936 /**/ | |
2664 | 1937 83, |
1938 /**/ | |
2663 | 1939 82, |
1940 /**/ | |
2661 | 1941 81, |
1942 /**/ | |
2660 | 1943 80, |
1944 /**/ | |
2659 | 1945 79, |
1946 /**/ | |
2658 | 1947 78, |
1948 /**/ | |
2657 | 1949 77, |
1950 /**/ | |
2656 | 1951 76, |
1952 /**/ | |
2655 | 1953 75, |
1954 /**/ | |
2654 | 1955 74, |
1956 /**/ | |
2653 | 1957 73, |
1958 /**/ | |
2652 | 1959 72, |
1960 /**/ | |
2651 | 1961 71, |
1962 /**/ | |
2650 | 1963 70, |
1964 /**/ | |
2649 | 1965 69, |
1966 /**/ | |
2648 | 1967 68, |
1968 /**/ | |
2647 | 1969 67, |
1970 /**/ | |
2646 | 1971 66, |
1972 /**/ | |
2645 | 1973 65, |
1974 /**/ | |
2644 | 1975 64, |
1976 /**/ | |
2643 | 1977 63, |
1978 /**/ | |
2641 | 1979 62, |
1980 /**/ | |
2640 | 1981 61, |
1982 /**/ | |
2639 | 1983 60, |
1984 /**/ | |
2638 | 1985 59, |
1986 /**/ | |
2637 | 1987 58, |
1988 /**/ | |
2636 | 1989 57, |
1990 /**/ | |
2635 | 1991 56, |
1992 /**/ | |
2634 | 1993 55, |
1994 /**/ | |
2633 | 1995 54, |
1996 /**/ | |
2632 | 1997 53, |
1998 /**/ | |
2631 | 1999 52, |
2000 /**/ | |
2630 | 2001 51, |
2002 /**/ | |
2629 | 2003 50, |
2004 /**/ | |
2628 | 2005 49, |
2006 /**/ | |
2627 | 2007 48, |
2008 /**/ | |
2626 | 2009 47, |
2010 /**/ | |
2624 | 2011 46, |
2012 /**/ | |
2623 | 2013 45, |
2014 /**/ | |
2622 | 2015 44, |
2016 /**/ | |
2621 | 2017 43, |
2018 /**/ | |
2620 | 2019 42, |
2020 /**/ | |
2619 | 2021 41, |
2022 /**/ | |
2618 | 2023 40, |
2024 /**/ | |
2617 | 2025 39, |
2026 /**/ | |
2616 | 2027 38, |
2028 /**/ | |
2615 | 2029 37, |
2030 /**/ | |
2614 | 2031 36, |
2032 /**/ | |
2613 | 2033 35, |
2034 /**/ | |
2612 | 2035 34, |
2036 /**/ | |
2611 | 2037 33, |
2038 /**/ | |
2610 | 2039 32, |
2040 /**/ | |
2609 | 2041 31, |
2042 /**/ | |
2607 | 2043 30, |
2044 /**/ | |
2606 | 2045 29, |
2046 /**/ | |
2605 | 2047 28, |
2048 /**/ | |
2604 | 2049 27, |
2050 /**/ | |
2603 | 2051 26, |
2052 /**/ | |
2602 | 2053 25, |
2054 /**/ | |
2601 | 2055 24, |
2056 /**/ | |
2600 | 2057 23, |
2058 /**/ | |
2599 | 2059 22, |
2060 /**/ | |
2598 | 2061 21, |
2062 /**/ | |
2597 | 2063 20, |
2064 /**/ | |
2595 | 2065 19, |
2066 /**/ | |
2594 | 2067 18, |
2068 /**/ | |
2593 | 2069 17, |
2070 /**/ | |
2592 | 2071 16, |
2072 /**/ | |
2591 | 2073 15, |
2074 /**/ | |
2590 | 2075 14, |
2076 /**/ | |
2589 | 2077 13, |
2078 /**/ | |
2588 | 2079 12, |
2080 /**/ | |
2586 | 2081 11, |
2082 /**/ | |
2585 | 2083 10, |
2084 /**/ | |
2584 | 2085 9, |
2086 /**/ | |
2583 | 2087 8, |
2088 /**/ | |
2582 | 2089 7, |
2090 /**/ | |
2580 | 2091 6, |
2092 /**/ | |
2579 | 2093 5, |
2094 /**/ | |
2578 | 2095 4, |
2096 /**/ | |
2165
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2097 3, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2098 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2099 2, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2100 /**/ |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2101 1, |
733f0dc510c3
Undo changes that are meant for the Vim 7.3 branch.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
2102 /**/ |
7 | 2103 0 |
2104 }; | |
2105 | |
1760 | 2106 /* |
2107 * Place to put a short description when adding a feature with a patch. | |
2108 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
2109 * Also add a comment marker to separate the lines. | |
2110 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 2111 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 2112 */ |
2113 static char *(extra_patches[]) = | |
2114 { /* Add your patch description below this line */ | |
2115 /**/ | |
2116 NULL | |
2117 }; | |
2118 | |
7 | 2119 int |
2120 highest_patch() | |
2121 { | |
2122 int i; | |
2123 int h = 0; | |
2124 | |
2125 for (i = 0; included_patches[i] != 0; ++i) | |
2126 if (included_patches[i] > h) | |
2127 h = included_patches[i]; | |
2128 return h; | |
2129 } | |
2130 | |
2131 #if defined(FEAT_EVAL) || defined(PROTO) | |
2132 /* | |
2133 * Return TRUE if patch "n" has been included. | |
2134 */ | |
2135 int | |
2136 has_patch(n) | |
2137 int n; | |
2138 { | |
2139 int i; | |
2140 | |
2141 for (i = 0; included_patches[i] != 0; ++i) | |
2142 if (included_patches[i] == n) | |
2143 return TRUE; | |
2144 return FALSE; | |
2145 } | |
2146 #endif | |
2147 | |
2148 void | |
2149 ex_version(eap) | |
2150 exarg_T *eap; | |
2151 { | |
2152 /* | |
2153 * Ignore a ":version 9.99" command. | |
2154 */ | |
2155 if (*eap->arg == NUL) | |
2156 { | |
2157 msg_putchar('\n'); | |
2158 list_version(); | |
2159 } | |
2160 } | |
2161 | |
2162 void | |
2163 list_version() | |
2164 { | |
2165 int i; | |
2166 int first; | |
2167 char *s = ""; | |
2168 | |
2169 /* | |
2170 * When adding features here, don't forget to update the list of | |
2171 * internal variables in eval.c! | |
2172 */ | |
2173 MSG(longVersion); | |
2174 #ifdef WIN3264 | |
2175 # ifdef FEAT_GUI_W32 | |
2176 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
2177 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 2178 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 2179 # else |
990 | 2180 # ifdef _WIN64 |
1607 | 2181 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 2182 # else |
1607 | 2183 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 2184 # endif |
7 | 2185 # endif |
2186 if (gui_is_win32s()) | |
2187 MSG_PUTS(_(" in Win32s mode")); | |
2188 # ifdef FEAT_OLE | |
2189 MSG_PUTS(_(" with OLE support")); | |
2190 # endif | |
2191 # else | |
1607 | 2192 # ifdef _WIN64 |
2193 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
2194 # else | |
2195 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
2196 # endif | |
7 | 2197 # endif |
2198 #endif | |
2199 #ifdef WIN16 | |
1607 | 2200 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 2201 #endif |
2202 #ifdef MSDOS | |
2203 # ifdef DJGPP | |
1607 | 2204 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 2205 # else |
1607 | 2206 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 2207 # endif |
2208 #endif | |
2209 #ifdef MACOS | |
2210 # ifdef MACOS_X | |
2211 # ifdef MACOS_X_UNIX | |
2212 MSG_PUTS(_("\nMacOS X (unix) version")); | |
2213 # else | |
2214 MSG_PUTS(_("\nMacOS X version")); | |
2215 # endif | |
2216 #else | |
2217 MSG_PUTS(_("\nMacOS version")); | |
2218 # endif | |
2219 #endif | |
2220 | |
2221 #ifdef VMS | |
1705 | 2222 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 2223 # ifdef HAVE_PATHDEF |
2224 if (*compiled_arch != NUL) | |
2225 { | |
2226 MSG_PUTS(" - "); | |
2227 MSG_PUTS(compiled_arch); | |
2228 } | |
2229 # endif | |
2230 | |
7 | 2231 #endif |
2232 | |
2233 /* Print the list of patch numbers if there is at least one. */ | |
2234 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
2235 if (included_patches[0] != 0) | |
2236 { | |
2237 MSG_PUTS(_("\nIncluded patches: ")); | |
2238 first = -1; | |
2239 /* find last one */ | |
2240 for (i = 0; included_patches[i] != 0; ++i) | |
2241 ; | |
2242 while (--i >= 0) | |
2243 { | |
2244 if (first < 0) | |
2245 first = included_patches[i]; | |
2246 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
2247 { | |
2248 MSG_PUTS(s); | |
2249 s = ", "; | |
2250 msg_outnum((long)first); | |
2251 if (first != included_patches[i]) | |
2252 { | |
2253 MSG_PUTS("-"); | |
2254 msg_outnum((long)included_patches[i]); | |
2255 } | |
2256 first = -1; | |
2257 } | |
2258 } | |
2259 } | |
2260 | |
1760 | 2261 /* Print the list of extra patch descriptions if there is at least one. */ |
2262 if (extra_patches[0] != NULL) | |
2263 { | |
2264 MSG_PUTS(_("\nExtra patches: ")); | |
2265 s = ""; | |
2266 for (i = 0; extra_patches[i] != NULL; ++i) | |
2267 { | |
2268 MSG_PUTS(s); | |
2269 s = ", "; | |
2270 MSG_PUTS(extra_patches[i]); | |
2271 } | |
2272 } | |
2273 | |
7 | 2274 #ifdef MODIFIED_BY |
2275 MSG_PUTS("\n"); | |
2276 MSG_PUTS(_("Modified by ")); | |
2277 MSG_PUTS(MODIFIED_BY); | |
2278 #endif | |
2279 | |
2280 #ifdef HAVE_PATHDEF | |
2281 if (*compiled_user != NUL || *compiled_sys != NUL) | |
2282 { | |
2283 MSG_PUTS(_("\nCompiled ")); | |
2284 if (*compiled_user != NUL) | |
2285 { | |
2286 MSG_PUTS(_("by ")); | |
2287 MSG_PUTS(compiled_user); | |
2288 } | |
2289 if (*compiled_sys != NUL) | |
2290 { | |
2291 MSG_PUTS("@"); | |
2292 MSG_PUTS(compiled_sys); | |
2293 } | |
2294 } | |
2295 #endif | |
2296 | |
2297 #ifdef FEAT_HUGE | |
2298 MSG_PUTS(_("\nHuge version ")); | |
2299 #else | |
2300 # ifdef FEAT_BIG | |
2301 MSG_PUTS(_("\nBig version ")); | |
2302 # else | |
2303 # ifdef FEAT_NORMAL | |
2304 MSG_PUTS(_("\nNormal version ")); | |
2305 # else | |
2306 # ifdef FEAT_SMALL | |
2307 MSG_PUTS(_("\nSmall version ")); | |
2308 # else | |
2309 MSG_PUTS(_("\nTiny version ")); | |
2310 # endif | |
2311 # endif | |
2312 # endif | |
2313 #endif | |
2314 #ifndef FEAT_GUI | |
2315 MSG_PUTS(_("without GUI.")); | |
2316 #else | |
2317 # ifdef FEAT_GUI_GTK | |
2318 # ifdef FEAT_GUI_GNOME | |
2319 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
2320 # else | |
2321 MSG_PUTS(_("with GTK2 GUI.")); | |
2322 # endif | |
2323 # else | |
2324 # ifdef FEAT_GUI_MOTIF | |
2325 MSG_PUTS(_("with X11-Motif GUI.")); | |
2326 # else | |
2327 # ifdef FEAT_GUI_ATHENA | |
2328 # ifdef FEAT_GUI_NEXTAW | |
2329 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
2330 # else | |
2331 MSG_PUTS(_("with X11-Athena GUI.")); | |
2332 # endif | |
2333 # else | |
2334 # ifdef FEAT_GUI_PHOTON | |
2335 MSG_PUTS(_("with Photon GUI.")); | |
2336 # else | |
2337 # if defined(MSWIN) | |
2338 MSG_PUTS(_("with GUI.")); | |
2339 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2340 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 2341 MSG_PUTS(_("with Carbon GUI.")); |
2342 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2343 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 2344 MSG_PUTS(_("with Cocoa GUI.")); |
2345 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2346 # if defined(MACOS) |
7 | 2347 MSG_PUTS(_("with (classic) GUI.")); |
2348 # endif | |
2349 # endif | |
2350 # endif | |
2351 # endif | |
2352 # endif | |
2353 # endif | |
2354 # endif | |
2355 # endif | |
2356 #endif | |
2357 version_msg(_(" Features included (+) or not (-):\n")); | |
2358 | |
2359 /* print all the features */ | |
2360 for (i = 0; features[i] != NULL; ++i) | |
2361 { | |
2362 version_msg(features[i]); | |
2363 if (msg_col > 0) | |
2364 version_msg(" "); | |
2365 } | |
2366 | |
2367 version_msg("\n"); | |
2368 #ifdef SYS_VIMRC_FILE | |
2369 version_msg(_(" system vimrc file: \"")); | |
2370 version_msg(SYS_VIMRC_FILE); | |
2371 version_msg("\"\n"); | |
2372 #endif | |
2373 #ifdef USR_VIMRC_FILE | |
2374 version_msg(_(" user vimrc file: \"")); | |
2375 version_msg(USR_VIMRC_FILE); | |
2376 version_msg("\"\n"); | |
2377 #endif | |
2378 #ifdef USR_VIMRC_FILE2 | |
2379 version_msg(_(" 2nd user vimrc file: \"")); | |
2380 version_msg(USR_VIMRC_FILE2); | |
2381 version_msg("\"\n"); | |
2382 #endif | |
2383 #ifdef USR_VIMRC_FILE3 | |
2384 version_msg(_(" 3rd user vimrc file: \"")); | |
2385 version_msg(USR_VIMRC_FILE3); | |
2386 version_msg("\"\n"); | |
2387 #endif | |
2388 #ifdef USR_EXRC_FILE | |
2389 version_msg(_(" user exrc file: \"")); | |
2390 version_msg(USR_EXRC_FILE); | |
2391 version_msg("\"\n"); | |
2392 #endif | |
2393 #ifdef USR_EXRC_FILE2 | |
2394 version_msg(_(" 2nd user exrc file: \"")); | |
2395 version_msg(USR_EXRC_FILE2); | |
2396 version_msg("\"\n"); | |
2397 #endif | |
2398 #ifdef FEAT_GUI | |
2399 # ifdef SYS_GVIMRC_FILE | |
2400 version_msg(_(" system gvimrc file: \"")); | |
2401 version_msg(SYS_GVIMRC_FILE); | |
2402 version_msg("\"\n"); | |
2403 # endif | |
2404 version_msg(_(" user gvimrc file: \"")); | |
2405 version_msg(USR_GVIMRC_FILE); | |
2406 version_msg("\"\n"); | |
2407 # ifdef USR_GVIMRC_FILE2 | |
2408 version_msg(_("2nd user gvimrc file: \"")); | |
2409 version_msg(USR_GVIMRC_FILE2); | |
2410 version_msg("\"\n"); | |
2411 # endif | |
2412 # ifdef USR_GVIMRC_FILE3 | |
2413 version_msg(_("3rd user gvimrc file: \"")); | |
2414 version_msg(USR_GVIMRC_FILE3); | |
2415 version_msg("\"\n"); | |
2416 # endif | |
2417 #endif | |
2418 #ifdef FEAT_GUI | |
2419 # ifdef SYS_MENU_FILE | |
2420 version_msg(_(" system menu file: \"")); | |
2421 version_msg(SYS_MENU_FILE); | |
2422 version_msg("\"\n"); | |
2423 # endif | |
2424 #endif | |
2425 #ifdef HAVE_PATHDEF | |
2426 if (*default_vim_dir != NUL) | |
2427 { | |
2428 version_msg(_(" fall-back for $VIM: \"")); | |
2429 version_msg((char *)default_vim_dir); | |
2430 version_msg("\"\n"); | |
2431 } | |
2432 if (*default_vimruntime_dir != NUL) | |
2433 { | |
2434 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
2435 version_msg((char *)default_vimruntime_dir); | |
2436 version_msg("\"\n"); | |
2437 } | |
2438 version_msg(_("Compilation: ")); | |
2439 version_msg((char *)all_cflags); | |
2440 version_msg("\n"); | |
2441 #ifdef VMS | |
2442 if (*compiler_version != NUL) | |
2443 { | |
2444 version_msg(_("Compiler: ")); | |
2445 version_msg((char *)compiler_version); | |
2446 version_msg("\n"); | |
2447 } | |
2448 #endif | |
2449 version_msg(_("Linking: ")); | |
2450 version_msg((char *)all_lflags); | |
2451 #endif | |
2452 #ifdef DEBUG | |
2453 version_msg("\n"); | |
2454 version_msg(_(" DEBUG BUILD")); | |
2455 #endif | |
2456 } | |
2457 | |
2458 /* | |
2459 * Output a string for the version message. If it's going to wrap, output a | |
2460 * newline, unless the message is too long to fit on the screen anyway. | |
2461 */ | |
2462 static void | |
2463 version_msg(s) | |
2464 char *s; | |
2465 { | |
2466 int len = (int)STRLEN(s); | |
2467 | |
2468 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
2469 && *s != '\n') | |
2470 msg_putchar('\n'); | |
2471 if (!got_int) | |
2472 MSG_PUTS(s); | |
2473 } | |
2474 | |
2475 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
2476 | |
2477 /* | |
2478 * Give an introductory message about Vim. | |
2479 * Only used when starting Vim on an empty file, without a file name. | |
2480 * Or with the ":intro" command (for Sven :-). | |
2481 */ | |
2482 void | |
2483 intro_message(colon) | |
2484 int colon; /* TRUE for ":intro" */ | |
2485 { | |
2486 int i; | |
2487 int row; | |
2488 int blanklines; | |
2489 int sponsor; | |
2490 char *p; | |
2491 static char *(lines[]) = | |
2492 { | |
2493 N_("VIM - Vi IMproved"), | |
2494 "", | |
2495 N_("version "), | |
2496 N_("by Bram Moolenaar et al."), | |
2497 #ifdef MODIFIED_BY | |
2498 " ", | |
2499 #endif | |
2500 N_("Vim is open source and freely distributable"), | |
2501 "", | |
2502 N_("Help poor children in Uganda!"), | |
2503 N_("type :help iccf<Enter> for information "), | |
2504 "", | |
2505 N_("type :q<Enter> to exit "), | |
2506 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2507 N_("type :help version7<Enter> for version info"), |
7 | 2508 NULL, |
2509 "", | |
2510 N_("Running in Vi compatible mode"), | |
2511 N_("type :set nocp<Enter> for Vim defaults"), | |
2512 N_("type :help cp-default<Enter> for info on this"), | |
2513 }; | |
2514 #ifdef FEAT_GUI | |
2515 static char *(gui_lines[]) = | |
2516 { | |
2517 NULL, | |
2518 NULL, | |
2519 NULL, | |
2520 NULL, | |
2521 #ifdef MODIFIED_BY | |
2522 NULL, | |
2523 #endif | |
2524 NULL, | |
2525 NULL, | |
2526 NULL, | |
2527 N_("menu Help->Orphans for information "), | |
2528 NULL, | |
2529 N_("Running modeless, typed text is inserted"), | |
2530 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2531 N_(" for two modes "), | |
2532 NULL, | |
2533 NULL, | |
2534 NULL, | |
2535 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2536 N_(" for Vim defaults "), | |
2537 }; | |
2538 #endif | |
2539 | |
2540 /* blanklines = screen height - # message lines */ | |
2541 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2542 if (!p_cp) | |
2543 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2544 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2545 if (mch_windows95()) | |
2546 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2547 #endif | |
2548 | |
2549 #ifdef FEAT_WINDOWS | |
2550 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2551 if (p_ls > 1) | |
2552 blanklines -= Rows - topframe->fr_height; | |
2553 #endif | |
2554 if (blanklines < 0) | |
2555 blanklines = 0; | |
2556 | |
2557 /* Show the sponsor and register message one out of four times, the Uganda | |
2558 * message two out of four times. */ | |
615 | 2559 sponsor = (int)time(NULL); |
7 | 2560 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2561 | |
2562 /* start displaying the message lines after half of the blank lines */ | |
2563 row = blanklines / 2; | |
2564 if ((row >= 2 && Columns >= 50) || colon) | |
2565 { | |
2566 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2567 { | |
2568 p = lines[i]; | |
2569 #ifdef FEAT_GUI | |
2570 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2571 p = gui_lines[i]; | |
2572 #endif | |
2573 if (p == NULL) | |
2574 { | |
2575 if (!p_cp) | |
2576 break; | |
2577 continue; | |
2578 } | |
2579 if (sponsor != 0) | |
2580 { | |
2581 if (strstr(p, "children") != NULL) | |
2582 p = sponsor < 0 | |
2583 ? N_("Sponsor Vim development!") | |
2584 : N_("Become a registered Vim user!"); | |
2585 else if (strstr(p, "iccf") != NULL) | |
2586 p = sponsor < 0 | |
2587 ? N_("type :help sponsor<Enter> for information ") | |
2588 : N_("type :help register<Enter> for information "); | |
2589 else if (strstr(p, "Orphans") != NULL) | |
2590 p = N_("menu Help->Sponsor/Register for information "); | |
2591 } | |
2592 if (*p != NUL) | |
2593 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2594 ++row; | |
2595 } | |
2596 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2597 if (mch_windows95()) | |
2598 { | |
2599 do_intro_line(++row, | |
2600 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2601 FALSE, hl_attr(HLF_E)); | |
2602 do_intro_line(++row, | |
2603 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2604 FALSE, 0); | |
2605 } | |
2606 #endif | |
2607 } | |
2608 | |
2609 /* Make the wait-return message appear just below the text. */ | |
2610 if (colon) | |
2611 msg_row = row; | |
2612 } | |
2613 | |
2614 static void | |
2615 do_intro_line(row, mesg, add_version, attr) | |
2616 int row; | |
2617 char_u *mesg; | |
2618 int add_version; | |
2619 int attr; | |
2620 { | |
2621 char_u vers[20]; | |
2622 int col; | |
2623 char_u *p; | |
2624 int l; | |
2625 int clen; | |
2626 #ifdef MODIFIED_BY | |
2627 # define MODBY_LEN 150 | |
2628 char_u modby[MODBY_LEN]; | |
2629 | |
2630 if (*mesg == ' ') | |
2631 { | |
1491 | 2632 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2633 l = STRLEN(modby); |
1491 | 2634 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2635 mesg = modby; |
2636 } | |
2637 #endif | |
2638 | |
2639 /* Center the message horizontally. */ | |
2640 col = vim_strsize(mesg); | |
2641 if (add_version) | |
2642 { | |
2643 STRCPY(vers, mediumVersion); | |
2644 if (highest_patch()) | |
2645 { | |
2646 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2647 if (isalpha((int)vers[3])) |
7 | 2648 { |
3396 | 2649 int len = (isalpha((int)vers[4])) ? 5 : 4; |
2650 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
2651 mediumVersion + len); | |
7 | 2652 } |
2653 else | |
2654 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2655 } | |
2656 col += (int)STRLEN(vers); | |
2657 } | |
2658 col = (Columns - col) / 2; | |
2659 if (col < 0) | |
2660 col = 0; | |
2661 | |
2662 /* Split up in parts to highlight <> items differently. */ | |
2663 for (p = mesg; *p != NUL; p += l) | |
2664 { | |
2665 clen = 0; | |
2666 for (l = 0; p[l] != NUL | |
2667 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
2668 { | |
2669 #ifdef FEAT_MBYTE | |
2670 if (has_mbyte) | |
2671 { | |
2672 clen += ptr2cells(p + l); | |
474 | 2673 l += (*mb_ptr2len)(p + l) - 1; |
7 | 2674 } |
2675 else | |
2676 #endif | |
2677 clen += byte2cells(p[l]); | |
2678 } | |
2679 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
2680 col += clen; | |
2681 } | |
2682 | |
2683 /* Add the version number to the version line. */ | |
2684 if (add_version) | |
2685 screen_puts(vers, row, col, 0); | |
2686 } | |
2687 | |
2688 /* | |
2689 * ":intro": clear screen, display intro screen and wait for return. | |
2690 */ | |
2691 void | |
2692 ex_intro(eap) | |
1876 | 2693 exarg_T *eap UNUSED; |
7 | 2694 { |
2695 screenclear(); | |
2696 intro_message(TRUE); | |
2697 wait_return(TRUE); | |
2698 } |