1 /* vi:set ts=8 sts=4 sw=4 noet: 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 * 20 * Differences between version 7.4 and 8.x can be found with ":help version8". 21 * Differences between version 6.4 and 7.x can be found with ":help version7". 22 * Differences between version 5.8 and 6.x can be found with ":help version6". 23 * Differences between version 4.x and 5.x can be found with ":help version5". 24 * Differences between version 3.0 and 4.x can be found with ":help version4". 25 * All the remarks about older versions have been removed, they are not very 26 * interesting. 27 */ 28 29 #include "version.h" 30 31 char *Version = VIM_VERSION_SHORT; 32 static char *mediumVersion = VIM_VERSION_MEDIUM; 33 34 #if defined(HAVE_DATE_TIME) || defined(PROTO) 35 # if (defined(VMS) && defined(VAXC)) || defined(PROTO) 36 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) 37 + sizeof(__TIME__) + 3]; 38 39 void 40 init_longVersion(void) 41 { 42 /* 43 * Construct the long version string. Necessary because 44 * VAX C can't concatenate strings in the preprocessor. 45 */ 46 strcpy(longVersion, VIM_VERSION_LONG_DATE); 47 #ifdef BUILD_DATE 48 strcat(longVersion, BUILD_DATE); 49 #else 50 strcat(longVersion, __DATE__); 51 strcat(longVersion, " "); 52 strcat(longVersion, __TIME__); 53 #endif 54 strcat(longVersion, ")"); 55 } 56 57 # else 58 void 59 init_longVersion(void) 60 { 61 if (longVersion == NULL) 62 { 63 #ifdef BUILD_DATE 64 char *date_time = BUILD_DATE; 65 #else 66 char *date_time = __DATE__ " " __TIME__; 67 #endif 68 char *msg = _("%s (%s, compiled %s)"); 69 size_t len = strlen(msg) 70 + strlen(VIM_VERSION_LONG_ONLY) 71 + strlen(VIM_VERSION_DATE_ONLY) 72 + strlen(date_time); 73 74 longVersion = alloc(len); 75 if (longVersion == NULL) 76 longVersion = VIM_VERSION_LONG; 77 else 78 vim_snprintf(longVersion, len, msg, 79 VIM_VERSION_LONG_ONLY, VIM_VERSION_DATE_ONLY, date_time); 80 } 81 } 82 # endif 83 #else 84 char *longVersion = VIM_VERSION_LONG; 85 86 void 87 init_longVersion(void) 88 { 89 // nothing to do 90 } 91 #endif 92 93 static char *(features[]) = 94 { 95 #ifdef HAVE_ACL 96 "+acl", 97 #else 98 "-acl", 99 #endif 100 #ifdef AMIGA // only for Amiga systems 101 # ifdef FEAT_ARP 102 "+ARP", 103 # else 104 "-ARP", 105 # endif 106 #endif 107 #ifdef FEAT_ARABIC 108 "+arabic", 109 #else 110 "-arabic", 111 #endif 112 "+autocmd", 113 #ifdef FEAT_AUTOCHDIR 114 "+autochdir", 115 #else 116 "-autochdir", 117 #endif 118 #ifdef FEAT_AUTOSERVERNAME 119 "+autoservername", 120 #else 121 "-autoservername", 122 #endif 123 #ifdef FEAT_BEVAL_GUI 124 "+balloon_eval", 125 #else 126 "-balloon_eval", 127 #endif 128 #ifdef FEAT_BEVAL_TERM 129 "+balloon_eval_term", 130 #else 131 "-balloon_eval_term", 132 #endif 133 #ifdef FEAT_BROWSE 134 "+browse", 135 #else 136 "-browse", 137 #endif 138 #ifdef NO_BUILTIN_TCAPS 139 "-builtin_terms", 140 #endif 141 #ifdef SOME_BUILTIN_TCAPS 142 "+builtin_terms", 143 #endif 144 #ifdef ALL_BUILTIN_TCAPS 145 "++builtin_terms", 146 #endif 147 #ifdef FEAT_BYTEOFF 148 "+byte_offset", 149 #else 150 "-byte_offset", 151 #endif 152 #ifdef FEAT_JOB_CHANNEL 153 "+channel", 154 #else 155 "-channel", 156 #endif 157 #ifdef FEAT_CINDENT 158 "+cindent", 159 #else 160 "-cindent", 161 #endif 162 #ifdef FEAT_CLIENTSERVER 163 "+clientserver", 164 #else 165 "-clientserver", 166 #endif 167 #ifdef FEAT_CLIPBOARD 168 "+clipboard", 169 #else 170 "-clipboard", 171 #endif 172 "+cmdline_compl", 173 "+cmdline_hist", 174 #ifdef FEAT_CMDL_INFO 175 "+cmdline_info", 176 #else 177 "-cmdline_info", 178 #endif 179 "+comments", 180 #ifdef FEAT_CONCEAL 181 "+conceal", 182 #else 183 "-conceal", 184 #endif 185 #ifdef FEAT_CRYPT 186 "+cryptv", 187 #else 188 "-cryptv", 189 #endif 190 #ifdef FEAT_CSCOPE 191 "+cscope", 192 #else 193 "-cscope", 194 #endif 195 "+cursorbind", 196 #ifdef CURSOR_SHAPE 197 "+cursorshape", 198 #else 199 "-cursorshape", 200 #endif 201 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) 202 "+dialog_con_gui", 203 #else 204 # if defined(FEAT_CON_DIALOG) 205 "+dialog_con", 206 # else 207 # if defined(FEAT_GUI_DIALOG) 208 "+dialog_gui", 209 # else 210 "-dialog", 211 # endif 212 # endif 213 #endif 214 #ifdef FEAT_DIFF 215 "+diff", 216 #else 217 "-diff", 218 #endif 219 #ifdef FEAT_DIGRAPHS 220 "+digraphs", 221 #else 222 "-digraphs", 223 #endif 224 #ifdef FEAT_GUI_MSWIN 225 # ifdef FEAT_DIRECTX 226 "+directx", 227 # else 228 "-directx", 229 # endif 230 #endif 231 #ifdef FEAT_DND 232 "+dnd", 233 #else 234 "-dnd", 235 #endif 236 #ifdef EBCDIC 237 "+ebcdic", 238 #else 239 "-ebcdic", 240 #endif 241 #ifdef FEAT_EMACS_TAGS 242 "+emacs_tags", 243 #else 244 "-emacs_tags", 245 #endif 246 #ifdef FEAT_EVAL 247 "+eval", 248 #else 249 "-eval", 250 #endif 251 "+ex_extra", 252 #ifdef FEAT_SEARCH_EXTRA 253 "+extra_search", 254 #else 255 "-extra_search", 256 #endif 257 "-farsi", 258 #ifdef FEAT_SEARCHPATH 259 "+file_in_path", 260 #else 261 "-file_in_path", 262 #endif 263 #ifdef FEAT_FIND_ID 264 "+find_in_path", 265 #else 266 "-find_in_path", 267 #endif 268 #ifdef FEAT_FLOAT 269 "+float", 270 #else 271 "-float", 272 #endif 273 #ifdef FEAT_FOLDING 274 "+folding", 275 #else 276 "-folding", 277 #endif 278 #ifdef FEAT_FOOTER 279 "+footer", 280 #else 281 "-footer", 282 #endif 283 // only interesting on Unix systems 284 #if !defined(USE_SYSTEM) && defined(UNIX) 285 "+fork()", 286 #endif 287 #ifdef FEAT_GETTEXT 288 # ifdef DYNAMIC_GETTEXT 289 "+gettext/dyn", 290 # else 291 "+gettext", 292 # endif 293 #else 294 "-gettext", 295 #endif 296 "-hangul_input", 297 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) 298 # ifdef DYNAMIC_ICONV 299 "+iconv/dyn", 300 # else 301 "+iconv", 302 # endif 303 #else 304 "-iconv", 305 #endif 306 "+insert_expand", 307 #ifdef FEAT_IPV6 308 "+ipv6", 309 #else 310 "-ipv6", 311 #endif 312 #ifdef FEAT_JOB_CHANNEL 313 "+job", 314 #else 315 "-job", 316 #endif 317 #ifdef FEAT_JUMPLIST 318 "+jumplist", 319 #else 320 "-jumplist", 321 #endif 322 #ifdef FEAT_KEYMAP 323 "+keymap", 324 #else 325 "-keymap", 326 #endif 327 #ifdef FEAT_EVAL 328 "+lambda", 329 #else 330 "-lambda", 331 #endif 332 #ifdef FEAT_LANGMAP 333 "+langmap", 334 #else 335 "-langmap", 336 #endif 337 #ifdef FEAT_LIBCALL 338 "+libcall", 339 #else 340 "-libcall", 341 #endif 342 #ifdef FEAT_LINEBREAK 343 "+linebreak", 344 #else 345 "-linebreak", 346 #endif 347 #ifdef FEAT_LISP 348 "+lispindent", 349 #else 350 "-lispindent", 351 #endif 352 "+listcmds", 353 "+localmap", 354 #ifdef FEAT_LUA 355 # ifdef DYNAMIC_LUA 356 "+lua/dyn", 357 # else 358 "+lua", 359 # endif 360 #else 361 "-lua", 362 #endif 363 #ifdef FEAT_MENU 364 "+menu", 365 #else 366 "-menu", 367 #endif 368 #ifdef FEAT_SESSION 369 "+mksession", 370 #else 371 "-mksession", 372 #endif 373 "+modify_fname", 374 "+mouse", 375 #ifdef FEAT_MOUSESHAPE 376 "+mouseshape", 377 #else 378 "-mouseshape", 379 #endif 380 381 #if defined(UNIX) || defined(VMS) 382 # ifdef FEAT_MOUSE_DEC 383 "+mouse_dec", 384 # else 385 "-mouse_dec", 386 # endif 387 # ifdef FEAT_MOUSE_GPM 388 "+mouse_gpm", 389 # else 390 "-mouse_gpm", 391 # endif 392 # ifdef FEAT_MOUSE_JSB 393 "+mouse_jsbterm", 394 # else 395 "-mouse_jsbterm", 396 # endif 397 # ifdef FEAT_MOUSE_NET 398 "+mouse_netterm", 399 # else 400 "-mouse_netterm", 401 # endif 402 #endif 403 404 #ifdef __QNX__ 405 # ifdef FEAT_MOUSE_PTERM 406 "+mouse_pterm", 407 # else 408 "-mouse_pterm", 409 # endif 410 #endif 411 412 #if defined(UNIX) || defined(VMS) 413 "+mouse_sgr", 414 # ifdef FEAT_SYSMOUSE 415 "+mouse_sysmouse", 416 # else 417 "-mouse_sysmouse", 418 # endif 419 # ifdef FEAT_MOUSE_URXVT 420 "+mouse_urxvt", 421 # else 422 "-mouse_urxvt", 423 # endif 424 "+mouse_xterm", 425 #endif 426 427 #ifdef FEAT_MBYTE_IME 428 # ifdef DYNAMIC_IME 429 "+multi_byte_ime/dyn", 430 # else 431 "+multi_byte_ime", 432 # endif 433 #else 434 "+multi_byte", 435 #endif 436 #ifdef FEAT_MULTI_LANG 437 "+multi_lang", 438 #else 439 "-multi_lang", 440 #endif 441 #ifdef FEAT_MZSCHEME 442 # ifdef DYNAMIC_MZSCHEME 443 "+mzscheme/dyn", 444 # else 445 "+mzscheme", 446 # endif 447 #else 448 "-mzscheme", 449 #endif 450 #ifdef FEAT_NETBEANS_INTG 451 "+netbeans_intg", 452 #else 453 "-netbeans_intg", 454 #endif 455 "+num64", 456 #ifdef FEAT_GUI_MSWIN 457 # ifdef FEAT_OLE 458 "+ole", 459 # else 460 "-ole", 461 # endif 462 #endif 463 #ifdef FEAT_EVAL 464 "+packages", 465 #else 466 "-packages", 467 #endif 468 #ifdef FEAT_PATH_EXTRA 469 "+path_extra", 470 #else 471 "-path_extra", 472 #endif 473 #ifdef FEAT_PERL 474 # ifdef DYNAMIC_PERL 475 "+perl/dyn", 476 # else 477 "+perl", 478 # endif 479 #else 480 "-perl", 481 #endif 482 #ifdef FEAT_PERSISTENT_UNDO 483 "+persistent_undo", 484 #else 485 "-persistent_undo", 486 #endif 487 #ifdef FEAT_PROP_POPUP 488 "+popupwin", 489 #else 490 "-popupwin", 491 #endif 492 #ifdef FEAT_PRINTER 493 # ifdef FEAT_POSTSCRIPT 494 "+postscript", 495 # else 496 "-postscript", 497 # endif 498 "+printer", 499 #else 500 "-printer", 501 #endif 502 #ifdef FEAT_PROFILE 503 "+profile", 504 #else 505 "-profile", 506 #endif 507 #ifdef FEAT_PYTHON 508 # ifdef DYNAMIC_PYTHON 509 "+python/dyn", 510 # else 511 "+python", 512 # endif 513 #else 514 "-python", 515 #endif 516 #ifdef FEAT_PYTHON3 517 # ifdef DYNAMIC_PYTHON3 518 "+python3/dyn", 519 # else 520 "+python3", 521 # endif 522 #else 523 "-python3", 524 #endif 525 #ifdef FEAT_QUICKFIX 526 "+quickfix", 527 #else 528 "-quickfix", 529 #endif 530 #ifdef FEAT_RELTIME 531 "+reltime", 532 #else 533 "-reltime", 534 #endif 535 #ifdef FEAT_RIGHTLEFT 536 "+rightleft", 537 #else 538 "-rightleft", 539 #endif 540 #ifdef FEAT_RUBY 541 # ifdef DYNAMIC_RUBY 542 "+ruby/dyn", 543 # else 544 "+ruby", 545 # endif 546 #else 547 "-ruby", 548 #endif 549 "+scrollbind", 550 #ifdef FEAT_SIGNS 551 "+signs", 552 #else 553 "-signs", 554 #endif 555 #ifdef FEAT_SMARTINDENT 556 "+smartindent", 557 #else 558 "-smartindent", 559 #endif 560 #ifdef FEAT_SOUND 561 "+sound", 562 #else 563 "-sound", 564 #endif 565 #ifdef FEAT_SPELL 566 "+spell", 567 #else 568 "-spell", 569 #endif 570 #ifdef STARTUPTIME 571 "+startuptime", 572 #else 573 "-startuptime", 574 #endif 575 #ifdef FEAT_STL_OPT 576 "+statusline", 577 #else 578 "-statusline", 579 #endif 580 "-sun_workshop", 581 #ifdef FEAT_SYN_HL 582 "+syntax", 583 #else 584 "-syntax", 585 #endif 586 // only interesting on Unix systems 587 #if defined(USE_SYSTEM) && defined(UNIX) 588 "+system()", 589 #endif 590 #ifdef FEAT_TAG_BINS 591 "+tag_binary", 592 #else 593 "-tag_binary", 594 #endif 595 "-tag_old_static", 596 "-tag_any_white", 597 #ifdef FEAT_TCL 598 # ifdef DYNAMIC_TCL 599 "+tcl/dyn", 600 # else 601 "+tcl", 602 # endif 603 #else 604 "-tcl", 605 #endif 606 #ifdef FEAT_TERMGUICOLORS 607 "+termguicolors", 608 #else 609 "-termguicolors", 610 #endif 611 #ifdef FEAT_TERMINAL 612 "+terminal", 613 #else 614 "-terminal", 615 #endif 616 #if defined(UNIX) 617 // only Unix can have terminfo instead of termcap 618 # ifdef TERMINFO 619 "+terminfo", 620 # else 621 "-terminfo", 622 # endif 623 #endif 624 #ifdef FEAT_TERMRESPONSE 625 "+termresponse", 626 #else 627 "-termresponse", 628 #endif 629 #ifdef FEAT_TEXTOBJ 630 "+textobjects", 631 #else 632 "-textobjects", 633 #endif 634 #ifdef FEAT_PROP_POPUP 635 "+textprop", 636 #else 637 "-textprop", 638 #endif 639 #if !defined(UNIX) 640 // unix always includes termcap support 641 # ifdef HAVE_TGETENT 642 "+tgetent", 643 # else 644 "-tgetent", 645 # endif 646 #endif 647 #ifdef FEAT_TIMERS 648 "+timers", 649 #else 650 "-timers", 651 #endif 652 #ifdef FEAT_TITLE 653 "+title", 654 #else 655 "-title", 656 #endif 657 #ifdef FEAT_TOOLBAR 658 "+toolbar", 659 #else 660 "-toolbar", 661 #endif 662 "+user_commands", 663 #ifdef FEAT_VARTABS 664 "+vartabs", 665 #else 666 "-vartabs", 667 #endif 668 "+vertsplit", 669 "+virtualedit", 670 "+visual", 671 "+visualextra", 672 #ifdef FEAT_VIMINFO 673 "+viminfo", 674 #else 675 "-viminfo", 676 #endif 677 "+vreplace", 678 #ifdef MSWIN 679 # ifdef FEAT_VTP 680 "+vtp", 681 # else 682 "-vtp", 683 # endif 684 #endif 685 #ifdef FEAT_WILDIGN 686 "+wildignore", 687 #else 688 "-wildignore", 689 #endif 690 #ifdef FEAT_WILDMENU 691 "+wildmenu", 692 #else 693 "-wildmenu", 694 #endif 695 "+windows", 696 #ifdef FEAT_WRITEBACKUP 697 "+writebackup", 698 #else 699 "-writebackup", 700 #endif 701 #if defined(UNIX) || defined(VMS) 702 # ifdef FEAT_X11 703 "+X11", 704 # else 705 "-X11", 706 # endif 707 #endif 708 #ifdef FEAT_XFONTSET 709 "+xfontset", 710 #else 711 "-xfontset", 712 #endif 713 #ifdef FEAT_XIM 714 "+xim", 715 #else 716 "-xim", 717 #endif 718 #ifdef MSWIN 719 # ifdef FEAT_XPM_W32 720 "+xpm_w32", 721 # else 722 "-xpm_w32", 723 # endif 724 #else 725 # ifdef HAVE_XPM 726 "+xpm", 727 # else 728 "-xpm", 729 # endif 730 #endif 731 #if defined(UNIX) || defined(VMS) 732 # ifdef USE_XSMP_INTERACT 733 "+xsmp_interact", 734 # else 735 # ifdef USE_XSMP 736 "+xsmp", 737 # else 738 "-xsmp", 739 # endif 740 # endif 741 # ifdef FEAT_XCLIPBOARD 742 "+xterm_clipboard", 743 # else 744 "-xterm_clipboard", 745 # endif 746 #endif 747 #ifdef FEAT_XTERM_SAVE 748 "+xterm_save", 749 #else 750 "-xterm_save", 751 #endif 752 NULL 753 }; 754 755 static int included_patches[] = 756 { /* Add new patch number below this line */ 757 /**/ 758 1424, 759 /**/ 760 1423, 761 /**/ 762 1422, 763 /**/ 764 1421, 765 /**/ 766 1420, 767 /**/ 768 1419, 769 /**/ 770 1418, 771 /**/ 772 1417, 773 /**/ 774 1416, 775 /**/ 776 1415, 777 /**/ 778 1414, 779 /**/ 780 1413, 781 /**/ 782 1412, 783 /**/ 784 1411, 785 /**/ 786 1410, 787 /**/ 788 1409, 789 /**/ 790 1408, 791 /**/ 792 1407, 793 /**/ 794 1406, 795 /**/ 796 1405, 797 /**/ 798 1404, 799 /**/ 800 1403, 801 /**/ 802 1402, 803 /**/ 804 1401, 805 /**/ 806 1400, 807 /**/ 808 1399, 809 /**/ 810 1398, 811 /**/ 812 1397, 813 /**/ 814 1396, 815 /**/ 816 1395, 817 /**/ 818 1394, 819 /**/ 820 1393, 821 /**/ 822 1392, 823 /**/ 824 1391, 825 /**/ 826 1390, 827 /**/ 828 1389, 829 /**/ 830 1388, 831 /**/ 832 1387, 833 /**/ 834 1386, 835 /**/ 836 1385, 837 /**/ 838 1384, 839 /**/ 840 1383, 841 /**/ 842 1382, 843 /**/ 844 1381, 845 /**/ 846 1380, 847 /**/ 848 1379, 849 /**/ 850 1378, 851 /**/ 852 1377, 853 /**/ 854 1376, 855 /**/ 856 1375, 857 /**/ 858 1374, 859 /**/ 860 1373, 861 /**/ 862 1372, 863 /**/ 864 1371, 865 /**/ 866 1370, 867 /**/ 868 1369, 869 /**/ 870 1368, 871 /**/ 872 1367, 873 /**/ 874 1366, 875 /**/ 876 1365, 877 /**/ 878 1364, 879 /**/ 880 1363, 881 /**/ 882 1362, 883 /**/ 884 1361, 885 /**/ 886 1360, 887 /**/ 888 1359, 889 /**/ 890 1358, 891 /**/ 892 1357, 893 /**/ 894 1356, 895 /**/ 896 1355, 897 /**/ 898 1354, 899 /**/ 900 1353, 901 /**/ 902 1352, 903 /**/ 904 1351, 905 /**/ 906 1350, 907 /**/ 908 1349, 909 /**/ 910 1348, 911 /**/ 912 1347, 913 /**/ 914 1346, 915 /**/ 916 1345, 917 /**/ 918 1344, 919 /**/ 920 1343, 921 /**/ 922 1342, 923 /**/ 924 1341, 925 /**/ 926 1340, 927 /**/ 928 1339, 929 /**/ 930 1338, 931 /**/ 932 1337, 933 /**/ 934 1336, 935 /**/ 936 1335, 937 /**/ 938 1334, 939 /**/ 940 1333, 941 /**/ 942 1332, 943 /**/ 944 1331, 945 /**/ 946 1330, 947 /**/ 948 1329, 949 /**/ 950 1328, 951 /**/ 952 1327, 953 /**/ 954 1326, 955 /**/ 956 1325, 957 /**/ 958 1324, 959 /**/ 960 1323, 961 /**/ 962 1322, 963 /**/ 964 1321, 965 /**/ 966 1320, 967 /**/ 968 1319, 969 /**/ 970 1318, 971 /**/ 972 1317, 973 /**/ 974 1316, 975 /**/ 976 1315, 977 /**/ 978 1314, 979 /**/ 980 1313, 981 /**/ 982 1312, 983 /**/ 984 1311, 985 /**/ 986 1310, 987 /**/ 988 1309, 989 /**/ 990 1308, 991 /**/ 992 1307, 993 /**/ 994 1306, 995 /**/ 996 1305, 997 /**/ 998 1304, 999 /**/ 1000 1303, 1001 /**/ 1002 1302, 1003 /**/ 1004 1301, 1005 /**/ 1006 1300, 1007 /**/ 1008 1299, 1009 /**/ 1010 1298, 1011 /**/ 1012 1297, 1013 /**/ 1014 1296, 1015 /**/ 1016 1295, 1017 /**/ 1018 1294, 1019 /**/ 1020 1293, 1021 /**/ 1022 1292, 1023 /**/ 1024 1291, 1025 /**/ 1026 1290, 1027 /**/ 1028 1289, 1029 /**/ 1030 1288, 1031 /**/ 1032 1287, 1033 /**/ 1034 1286, 1035 /**/ 1036 1285, 1037 /**/ 1038 1284, 1039 /**/ 1040 1283, 1041 /**/ 1042 1282, 1043 /**/ 1044 1281, 1045 /**/ 1046 1280, 1047 /**/ 1048 1279, 1049 /**/ 1050 1278, 1051 /**/ 1052 1277, 1053 /**/ 1054 1276, 1055 /**/ 1056 1275, 1057 /**/ 1058 1274, 1059 /**/ 1060 1273, 1061 /**/ 1062 1272, 1063 /**/ 1064 1271, 1065 /**/ 1066 1270, 1067 /**/ 1068 1269, 1069 /**/ 1070 1268, 1071 /**/ 1072 1267, 1073 /**/ 1074 1266, 1075 /**/ 1076 1265, 1077 /**/ 1078 1264, 1079 /**/ 1080 1263, 1081 /**/ 1082 1262, 1083 /**/ 1084 1261, 1085 /**/ 1086 1260, 1087 /**/ 1088 1259, 1089 /**/ 1090 1258, 1091 /**/ 1092 1257, 1093 /**/ 1094 1256, 1095 /**/ 1096 1255, 1097 /**/ 1098 1254, 1099 /**/ 1100 1253, 1101 /**/ 1102 1252, 1103 /**/ 1104 1251, 1105 /**/ 1106 1250, 1107 /**/ 1108 1249, 1109 /**/ 1110 1248, 1111 /**/ 1112 1247, 1113 /**/ 1114 1246, 1115 /**/ 1116 1245, 1117 /**/ 1118 1244, 1119 /**/ 1120 1243, 1121 /**/ 1122 1242, 1123 /**/ 1124 1241, 1125 /**/ 1126 1240, 1127 /**/ 1128 1239, 1129 /**/ 1130 1238, 1131 /**/ 1132 1237, 1133 /**/ 1134 1236, 1135 /**/ 1136 1235, 1137 /**/ 1138 1234, 1139 /**/ 1140 1233, 1141 /**/ 1142 1232, 1143 /**/ 1144 1231, 1145 /**/ 1146 1230, 1147 /**/ 1148 1229, 1149 /**/ 1150 1228, 1151 /**/ 1152 1227, 1153 /**/ 1154 1226, 1155 /**/ 1156 1225, 1157 /**/ 1158 1224, 1159 /**/ 1160 1223, 1161 /**/ 1162 1222, 1163 /**/ 1164 1221, 1165 /**/ 1166 1220, 1167 /**/ 1168 1219, 1169 /**/ 1170 1218, 1171 /**/ 1172 1217, 1173 /**/ 1174 1216, 1175 /**/ 1176 1215, 1177 /**/ 1178 1214, 1179 /**/ 1180 1213, 1181 /**/ 1182 1212, 1183 /**/ 1184 1211, 1185 /**/ 1186 1210, 1187 /**/ 1188 1209, 1189 /**/ 1190 1208, 1191 /**/ 1192 1207, 1193 /**/ 1194 1206, 1195 /**/ 1196 1205, 1197 /**/ 1198 1204, 1199 /**/ 1200 1203, 1201 /**/ 1202 1202, 1203 /**/ 1204 1201, 1205 /**/ 1206 1200, 1207 /**/ 1208 1199, 1209 /**/ 1210 1198, 1211 /**/ 1212 1197, 1213 /**/ 1214 1196, 1215 /**/ 1216 1195, 1217 /**/ 1218 1194, 1219 /**/ 1220 1193, 1221 /**/ 1222 1192, 1223 /**/ 1224 1191, 1225 /**/ 1226 1190, 1227 /**/ 1228 1189, 1229 /**/ 1230 1188, 1231 /**/ 1232 1187, 1233 /**/ 1234 1186, 1235 /**/ 1236 1185, 1237 /**/ 1238 1184, 1239 /**/ 1240 1183, 1241 /**/ 1242 1182, 1243 /**/ 1244 1181, 1245 /**/ 1246 1180, 1247 /**/ 1248 1179, 1249 /**/ 1250 1178, 1251 /**/ 1252 1177, 1253 /**/ 1254 1176, 1255 /**/ 1256 1175, 1257 /**/ 1258 1174, 1259 /**/ 1260 1173, 1261 /**/ 1262 1172, 1263 /**/ 1264 1171, 1265 /**/ 1266 1170, 1267 /**/ 1268 1169, 1269 /**/ 1270 1168, 1271 /**/ 1272 1167, 1273 /**/ 1274 1166, 1275 /**/ 1276 1165, 1277 /**/ 1278 1164, 1279 /**/ 1280 1163, 1281 /**/ 1282 1162, 1283 /**/ 1284 1161, 1285 /**/ 1286 1160, 1287 /**/ 1288 1159, 1289 /**/ 1290 1158, 1291 /**/ 1292 1157, 1293 /**/ 1294 1156, 1295 /**/ 1296 1155, 1297 /**/ 1298 1154, 1299 /**/ 1300 1153, 1301 /**/ 1302 1152, 1303 /**/ 1304 1151, 1305 /**/ 1306 1150, 1307 /**/ 1308 1149, 1309 /**/ 1310 1148, 1311 /**/ 1312 1147, 1313 /**/ 1314 1146, 1315 /**/ 1316 1145, 1317 /**/ 1318 1144, 1319 /**/ 1320 1143, 1321 /**/ 1322 1142, 1323 /**/ 1324 1141, 1325 /**/ 1326 1140, 1327 /**/ 1328 1139, 1329 /**/ 1330 1138, 1331 /**/ 1332 1137, 1333 /**/ 1334 1136, 1335 /**/ 1336 1135, 1337 /**/ 1338 1134, 1339 /**/ 1340 1133, 1341 /**/ 1342 1132, 1343 /**/ 1344 1131, 1345 /**/ 1346 1130, 1347 /**/ 1348 1129, 1349 /**/ 1350 1128, 1351 /**/ 1352 1127, 1353 /**/ 1354 1126, 1355 /**/ 1356 1125, 1357 /**/ 1358 1124, 1359 /**/ 1360 1123, 1361 /**/ 1362 1122, 1363 /**/ 1364 1121, 1365 /**/ 1366 1120, 1367 /**/ 1368 1119, 1369 /**/ 1370 1118, 1371 /**/ 1372 1117, 1373 /**/ 1374 1116, 1375 /**/ 1376 1115, 1377 /**/ 1378 1114, 1379 /**/ 1380 1113, 1381 /**/ 1382 1112, 1383 /**/ 1384 1111, 1385 /**/ 1386 1110, 1387 /**/ 1388 1109, 1389 /**/ 1390 1108, 1391 /**/ 1392 1107, 1393 /**/ 1394 1106, 1395 /**/ 1396 1105, 1397 /**/ 1398 1104, 1399 /**/ 1400 1103, 1401 /**/ 1402 1102, 1403 /**/ 1404 1101, 1405 /**/ 1406 1100, 1407 /**/ 1408 1099, 1409 /**/ 1410 1098, 1411 /**/ 1412 1097, 1413 /**/ 1414 1096, 1415 /**/ 1416 1095, 1417 /**/ 1418 1094, 1419 /**/ 1420 1093, 1421 /**/ 1422 1092, 1423 /**/ 1424 1091, 1425 /**/ 1426 1090, 1427 /**/ 1428 1089, 1429 /**/ 1430 1088, 1431 /**/ 1432 1087, 1433 /**/ 1434 1086, 1435 /**/ 1436 1085, 1437 /**/ 1438 1084, 1439 /**/ 1440 1083, 1441 /**/ 1442 1082, 1443 /**/ 1444 1081, 1445 /**/ 1446 1080, 1447 /**/ 1448 1079, 1449 /**/ 1450 1078, 1451 /**/ 1452 1077, 1453 /**/ 1454 1076, 1455 /**/ 1456 1075, 1457 /**/ 1458 1074, 1459 /**/ 1460 1073, 1461 /**/ 1462 1072, 1463 /**/ 1464 1071, 1465 /**/ 1466 1070, 1467 /**/ 1468 1069, 1469 /**/ 1470 1068, 1471 /**/ 1472 1067, 1473 /**/ 1474 1066, 1475 /**/ 1476 1065, 1477 /**/ 1478 1064, 1479 /**/ 1480 1063, 1481 /**/ 1482 1062, 1483 /**/ 1484 1061, 1485 /**/ 1486 1060, 1487 /**/ 1488 1059, 1489 /**/ 1490 1058, 1491 /**/ 1492 1057, 1493 /**/ 1494 1056, 1495 /**/ 1496 1055, 1497 /**/ 1498 1054, 1499 /**/ 1500 1053, 1501 /**/ 1502 1052, 1503 /**/ 1504 1051, 1505 /**/ 1506 1050, 1507 /**/ 1508 1049, 1509 /**/ 1510 1048, 1511 /**/ 1512 1047, 1513 /**/ 1514 1046, 1515 /**/ 1516 1045, 1517 /**/ 1518 1044, 1519 /**/ 1520 1043, 1521 /**/ 1522 1042, 1523 /**/ 1524 1041, 1525 /**/ 1526 1040, 1527 /**/ 1528 1039, 1529 /**/ 1530 1038, 1531 /**/ 1532 1037, 1533 /**/ 1534 1036, 1535 /**/ 1536 1035, 1537 /**/ 1538 1034, 1539 /**/ 1540 1033, 1541 /**/ 1542 1032, 1543 /**/ 1544 1031, 1545 /**/ 1546 1030, 1547 /**/ 1548 1029, 1549 /**/ 1550 1028, 1551 /**/ 1552 1027, 1553 /**/ 1554 1026, 1555 /**/ 1556 1025, 1557 /**/ 1558 1024, 1559 /**/ 1560 1023, 1561 /**/ 1562 1022, 1563 /**/ 1564 1021, 1565 /**/ 1566 1020, 1567 /**/ 1568 1019, 1569 /**/ 1570 1018, 1571 /**/ 1572 1017, 1573 /**/ 1574 1016, 1575 /**/ 1576 1015, 1577 /**/ 1578 1014, 1579 /**/ 1580 1013, 1581 /**/ 1582 1012, 1583 /**/ 1584 1011, 1585 /**/ 1586 1010, 1587 /**/ 1588 1009, 1589 /**/ 1590 1008, 1591 /**/ 1592 1007, 1593 /**/ 1594 1006, 1595 /**/ 1596 1005, 1597 /**/ 1598 1004, 1599 /**/ 1600 1003, 1601 /**/ 1602 1002, 1603 /**/ 1604 1001, 1605 /**/ 1606 1000, 1607 /**/ 1608 999, 1609 /**/ 1610 998, 1611 /**/ 1612 997, 1613 /**/ 1614 996, 1615 /**/ 1616 995, 1617 /**/ 1618 994, 1619 /**/ 1620 993, 1621 /**/ 1622 992, 1623 /**/ 1624 991, 1625 /**/ 1626 990, 1627 /**/ 1628 989, 1629 /**/ 1630 988, 1631 /**/ 1632 987, 1633 /**/ 1634 986, 1635 /**/ 1636 985, 1637 /**/ 1638 984, 1639 /**/ 1640 983, 1641 /**/ 1642 982, 1643 /**/ 1644 981, 1645 /**/ 1646 980, 1647 /**/ 1648 979, 1649 /**/ 1650 978, 1651 /**/ 1652 977, 1653 /**/ 1654 976, 1655 /**/ 1656 975, 1657 /**/ 1658 974, 1659 /**/ 1660 973, 1661 /**/ 1662 972, 1663 /**/ 1664 971, 1665 /**/ 1666 970, 1667 /**/ 1668 969, 1669 /**/ 1670 968, 1671 /**/ 1672 967, 1673 /**/ 1674 966, 1675 /**/ 1676 965, 1677 /**/ 1678 964, 1679 /**/ 1680 963, 1681 /**/ 1682 962, 1683 /**/ 1684 961, 1685 /**/ 1686 960, 1687 /**/ 1688 959, 1689 /**/ 1690 958, 1691 /**/ 1692 957, 1693 /**/ 1694 956, 1695 /**/ 1696 955, 1697 /**/ 1698 954, 1699 /**/ 1700 953, 1701 /**/ 1702 952, 1703 /**/ 1704 951, 1705 /**/ 1706 950, 1707 /**/ 1708 949, 1709 /**/ 1710 948, 1711 /**/ 1712 947, 1713 /**/ 1714 946, 1715 /**/ 1716 945, 1717 /**/ 1718 944, 1719 /**/ 1720 943, 1721 /**/ 1722 942, 1723 /**/ 1724 941, 1725 /**/ 1726 940, 1727 /**/ 1728 939, 1729 /**/ 1730 938, 1731 /**/ 1732 937, 1733 /**/ 1734 936, 1735 /**/ 1736 935, 1737 /**/ 1738 934, 1739 /**/ 1740 933, 1741 /**/ 1742 932, 1743 /**/ 1744 931, 1745 /**/ 1746 930, 1747 /**/ 1748 929, 1749 /**/ 1750 928, 1751 /**/ 1752 927, 1753 /**/ 1754 926, 1755 /**/ 1756 925, 1757 /**/ 1758 924, 1759 /**/ 1760 923, 1761 /**/ 1762 922, 1763 /**/ 1764 921, 1765 /**/ 1766 920, 1767 /**/ 1768 919, 1769 /**/ 1770 918, 1771 /**/ 1772 917, 1773 /**/ 1774 916, 1775 /**/ 1776 915, 1777 /**/ 1778 914, 1779 /**/ 1780 913, 1781 /**/ 1782 912, 1783 /**/ 1784 911, 1785 /**/ 1786 910, 1787 /**/ 1788 909, 1789 /**/ 1790 908, 1791 /**/ 1792 907, 1793 /**/ 1794 906, 1795 /**/ 1796 905, 1797 /**/ 1798 904, 1799 /**/ 1800 903, 1801 /**/ 1802 902, 1803 /**/ 1804 901, 1805 /**/ 1806 900, 1807 /**/ 1808 899, 1809 /**/ 1810 898, 1811 /**/ 1812 897, 1813 /**/ 1814 896, 1815 /**/ 1816 895, 1817 /**/ 1818 894, 1819 /**/ 1820 893, 1821 /**/ 1822 892, 1823 /**/ 1824 891, 1825 /**/ 1826 890, 1827 /**/ 1828 889, 1829 /**/ 1830 888, 1831 /**/ 1832 887, 1833 /**/ 1834 886, 1835 /**/ 1836 885, 1837 /**/ 1838 884, 1839 /**/ 1840 883, 1841 /**/ 1842 882, 1843 /**/ 1844 881, 1845 /**/ 1846 880, 1847 /**/ 1848 879, 1849 /**/ 1850 878, 1851 /**/ 1852 877, 1853 /**/ 1854 876, 1855 /**/ 1856 875, 1857 /**/ 1858 874, 1859 /**/ 1860 873, 1861 /**/ 1862 872, 1863 /**/ 1864 871, 1865 /**/ 1866 870, 1867 /**/ 1868 869, 1869 /**/ 1870 868, 1871 /**/ 1872 867, 1873 /**/ 1874 866, 1875 /**/ 1876 865, 1877 /**/ 1878 864, 1879 /**/ 1880 863, 1881 /**/ 1882 862, 1883 /**/ 1884 861, 1885 /**/ 1886 860, 1887 /**/ 1888 859, 1889 /**/ 1890 858, 1891 /**/ 1892 857, 1893 /**/ 1894 856, 1895 /**/ 1896 855, 1897 /**/ 1898 854, 1899 /**/ 1900 853, 1901 /**/ 1902 852, 1903 /**/ 1904 851, 1905 /**/ 1906 850, 1907 /**/ 1908 849, 1909 /**/ 1910 848, 1911 /**/ 1912 847, 1913 /**/ 1914 846, 1915 /**/ 1916 845, 1917 /**/ 1918 844, 1919 /**/ 1920 843, 1921 /**/ 1922 842, 1923 /**/ 1924 841, 1925 /**/ 1926 840, 1927 /**/ 1928 839, 1929 /**/ 1930 838, 1931 /**/ 1932 837, 1933 /**/ 1934 836, 1935 /**/ 1936 835, 1937 /**/ 1938 834, 1939 /**/ 1940 833, 1941 /**/ 1942 832, 1943 /**/ 1944 831, 1945 /**/ 1946 830, 1947 /**/ 1948 829, 1949 /**/ 1950 828, 1951 /**/ 1952 827, 1953 /**/ 1954 826, 1955 /**/ 1956 825, 1957 /**/ 1958 824, 1959 /**/ 1960 823, 1961 /**/ 1962 822, 1963 /**/ 1964 821, 1965 /**/ 1966 820, 1967 /**/ 1968 819, 1969 /**/ 1970 818, 1971 /**/ 1972 817, 1973 /**/ 1974 816, 1975 /**/ 1976 815, 1977 /**/ 1978 814, 1979 /**/ 1980 813, 1981 /**/ 1982 812, 1983 /**/ 1984 811, 1985 /**/ 1986 810, 1987 /**/ 1988 809, 1989 /**/ 1990 808, 1991 /**/ 1992 807, 1993 /**/ 1994 806, 1995 /**/ 1996 805, 1997 /**/ 1998 804, 1999 /**/ 2000 803, 2001 /**/ 2002 802, 2003 /**/ 2004 801, 2005 /**/ 2006 800, 2007 /**/ 2008 799, 2009 /**/ 2010 798, 2011 /**/ 2012 797, 2013 /**/ 2014 796, 2015 /**/ 2016 795, 2017 /**/ 2018 794, 2019 /**/ 2020 793, 2021 /**/ 2022 792, 2023 /**/ 2024 791, 2025 /**/ 2026 790, 2027 /**/ 2028 789, 2029 /**/ 2030 788, 2031 /**/ 2032 787, 2033 /**/ 2034 786, 2035 /**/ 2036 785, 2037 /**/ 2038 784, 2039 /**/ 2040 783, 2041 /**/ 2042 782, 2043 /**/ 2044 781, 2045 /**/ 2046 780, 2047 /**/ 2048 779, 2049 /**/ 2050 778, 2051 /**/ 2052 777, 2053 /**/ 2054 776, 2055 /**/ 2056 775, 2057 /**/ 2058 774, 2059 /**/ 2060 773, 2061 /**/ 2062 772, 2063 /**/ 2064 771, 2065 /**/ 2066 770, 2067 /**/ 2068 769, 2069 /**/ 2070 768, 2071 /**/ 2072 767, 2073 /**/ 2074 766, 2075 /**/ 2076 765, 2077 /**/ 2078 764, 2079 /**/ 2080 763, 2081 /**/ 2082 762, 2083 /**/ 2084 761, 2085 /**/ 2086 760, 2087 /**/ 2088 759, 2089 /**/ 2090 758, 2091 /**/ 2092 757, 2093 /**/ 2094 756, 2095 /**/ 2096 755, 2097 /**/ 2098 754, 2099 /**/ 2100 753, 2101 /**/ 2102 752, 2103 /**/ 2104 751, 2105 /**/ 2106 750, 2107 /**/ 2108 749, 2109 /**/ 2110 748, 2111 /**/ 2112 747, 2113 /**/ 2114 746, 2115 /**/ 2116 745, 2117 /**/ 2118 744, 2119 /**/ 2120 743, 2121 /**/ 2122 742, 2123 /**/ 2124 741, 2125 /**/ 2126 740, 2127 /**/ 2128 739, 2129 /**/ 2130 738, 2131 /**/ 2132 737, 2133 /**/ 2134 736, 2135 /**/ 2136 735, 2137 /**/ 2138 734, 2139 /**/ 2140 733, 2141 /**/ 2142 732, 2143 /**/ 2144 731, 2145 /**/ 2146 730, 2147 /**/ 2148 729, 2149 /**/ 2150 728, 2151 /**/ 2152 727, 2153 /**/ 2154 726, 2155 /**/ 2156 725, 2157 /**/ 2158 724, 2159 /**/ 2160 723, 2161 /**/ 2162 722, 2163 /**/ 2164 721, 2165 /**/ 2166 720, 2167 /**/ 2168 719, 2169 /**/ 2170 718, 2171 /**/ 2172 717, 2173 /**/ 2174 716, 2175 /**/ 2176 715, 2177 /**/ 2178 714, 2179 /**/ 2180 713, 2181 /**/ 2182 712, 2183 /**/ 2184 711, 2185 /**/ 2186 710, 2187 /**/ 2188 709, 2189 /**/ 2190 708, 2191 /**/ 2192 707, 2193 /**/ 2194 706, 2195 /**/ 2196 705, 2197 /**/ 2198 704, 2199 /**/ 2200 703, 2201 /**/ 2202 702, 2203 /**/ 2204 701, 2205 /**/ 2206 700, 2207 /**/ 2208 699, 2209 /**/ 2210 698, 2211 /**/ 2212 697, 2213 /**/ 2214 696, 2215 /**/ 2216 695, 2217 /**/ 2218 694, 2219 /**/ 2220 693, 2221 /**/ 2222 692, 2223 /**/ 2224 691, 2225 /**/ 2226 690, 2227 /**/ 2228 689, 2229 /**/ 2230 688, 2231 /**/ 2232 687, 2233 /**/ 2234 686, 2235 /**/ 2236 685, 2237 /**/ 2238 684, 2239 /**/ 2240 683, 2241 /**/ 2242 682, 2243 /**/ 2244 681, 2245 /**/ 2246 680, 2247 /**/ 2248 679, 2249 /**/ 2250 678, 2251 /**/ 2252 677, 2253 /**/ 2254 676, 2255 /**/ 2256 675, 2257 /**/ 2258 674, 2259 /**/ 2260 673, 2261 /**/ 2262 672, 2263 /**/ 2264 671, 2265 /**/ 2266 670, 2267 /**/ 2268 669, 2269 /**/ 2270 668, 2271 /**/ 2272 667, 2273 /**/ 2274 666, 2275 /**/ 2276 665, 2277 /**/ 2278 664, 2279 /**/ 2280 663, 2281 /**/ 2282 662, 2283 /**/ 2284 661, 2285 /**/ 2286 660, 2287 /**/ 2288 659, 2289 /**/ 2290 658, 2291 /**/ 2292 657, 2293 /**/ 2294 656, 2295 /**/ 2296 655, 2297 /**/ 2298 654, 2299 /**/ 2300 653, 2301 /**/ 2302 652, 2303 /**/ 2304 651, 2305 /**/ 2306 650, 2307 /**/ 2308 649, 2309 /**/ 2310 648, 2311 /**/ 2312 647, 2313 /**/ 2314 646, 2315 /**/ 2316 645, 2317 /**/ 2318 644, 2319 /**/ 2320 643, 2321 /**/ 2322 642, 2323 /**/ 2324 641, 2325 /**/ 2326 640, 2327 /**/ 2328 639, 2329 /**/ 2330 638, 2331 /**/ 2332 637, 2333 /**/ 2334 636, 2335 /**/ 2336 635, 2337 /**/ 2338 634, 2339 /**/ 2340 633, 2341 /**/ 2342 632, 2343 /**/ 2344 631, 2345 /**/ 2346 630, 2347 /**/ 2348 629, 2349 /**/ 2350 628, 2351 /**/ 2352 627, 2353 /**/ 2354 626, 2355 /**/ 2356 625, 2357 /**/ 2358 624, 2359 /**/ 2360 623, 2361 /**/ 2362 622, 2363 /**/ 2364 621, 2365 /**/ 2366 620, 2367 /**/ 2368 619, 2369 /**/ 2370 618, 2371 /**/ 2372 617, 2373 /**/ 2374 616, 2375 /**/ 2376 615, 2377 /**/ 2378 614, 2379 /**/ 2380 613, 2381 /**/ 2382 612, 2383 /**/ 2384 611, 2385 /**/ 2386 610, 2387 /**/ 2388 609, 2389 /**/ 2390 608, 2391 /**/ 2392 607, 2393 /**/ 2394 606, 2395 /**/ 2396 605, 2397 /**/ 2398 604, 2399 /**/ 2400 603, 2401 /**/ 2402 602, 2403 /**/ 2404 601, 2405 /**/ 2406 600, 2407 /**/ 2408 599, 2409 /**/ 2410 598, 2411 /**/ 2412 597, 2413 /**/ 2414 596, 2415 /**/ 2416 595, 2417 /**/ 2418 594, 2419 /**/ 2420 593, 2421 /**/ 2422 592, 2423 /**/ 2424 591, 2425 /**/ 2426 590, 2427 /**/ 2428 589, 2429 /**/ 2430 588, 2431 /**/ 2432 587, 2433 /**/ 2434 586, 2435 /**/ 2436 585, 2437 /**/ 2438 584, 2439 /**/ 2440 583, 2441 /**/ 2442 582, 2443 /**/ 2444 581, 2445 /**/ 2446 580, 2447 /**/ 2448 579, 2449 /**/ 2450 578, 2451 /**/ 2452 577, 2453 /**/ 2454 576, 2455 /**/ 2456 575, 2457 /**/ 2458 574, 2459 /**/ 2460 573, 2461 /**/ 2462 572, 2463 /**/ 2464 571, 2465 /**/ 2466 570, 2467 /**/ 2468 569, 2469 /**/ 2470 568, 2471 /**/ 2472 567, 2473 /**/ 2474 566, 2475 /**/ 2476 565, 2477 /**/ 2478 564, 2479 /**/ 2480 563, 2481 /**/ 2482 562, 2483 /**/ 2484 561, 2485 /**/ 2486 560, 2487 /**/ 2488 559, 2489 /**/ 2490 558, 2491 /**/ 2492 557, 2493 /**/ 2494 556, 2495 /**/ 2496 555, 2497 /**/ 2498 554, 2499 /**/ 2500 553, 2501 /**/ 2502 552, 2503 /**/ 2504 551, 2505 /**/ 2506 550, 2507 /**/ 2508 549, 2509 /**/ 2510 548, 2511 /**/ 2512 547, 2513 /**/ 2514 546, 2515 /**/ 2516 545, 2517 /**/ 2518 544, 2519 /**/ 2520 543, 2521 /**/ 2522 542, 2523 /**/ 2524 541, 2525 /**/ 2526 540, 2527 /**/ 2528 539, 2529 /**/ 2530 538, 2531 /**/ 2532 537, 2533 /**/ 2534 536, 2535 /**/ 2536 535, 2537 /**/ 2538 534, 2539 /**/ 2540 533, 2541 /**/ 2542 532, 2543 /**/ 2544 531, 2545 /**/ 2546 530, 2547 /**/ 2548 529, 2549 /**/ 2550 528, 2551 /**/ 2552 527, 2553 /**/ 2554 526, 2555 /**/ 2556 525, 2557 /**/ 2558 524, 2559 /**/ 2560 523, 2561 /**/ 2562 522, 2563 /**/ 2564 521, 2565 /**/ 2566 520, 2567 /**/ 2568 519, 2569 /**/ 2570 518, 2571 /**/ 2572 517, 2573 /**/ 2574 516, 2575 /**/ 2576 515, 2577 /**/ 2578 514, 2579 /**/ 2580 513, 2581 /**/ 2582 512, 2583 /**/ 2584 511, 2585 /**/ 2586 510, 2587 /**/ 2588 509, 2589 /**/ 2590 508, 2591 /**/ 2592 507, 2593 /**/ 2594 506, 2595 /**/ 2596 505, 2597 /**/ 2598 504, 2599 /**/ 2600 503, 2601 /**/ 2602 502, 2603 /**/ 2604 501, 2605 /**/ 2606 500, 2607 /**/ 2608 499, 2609 /**/ 2610 498, 2611 /**/ 2612 497, 2613 /**/ 2614 496, 2615 /**/ 2616 495, 2617 /**/ 2618 494, 2619 /**/ 2620 493, 2621 /**/ 2622 492, 2623 /**/ 2624 491, 2625 /**/ 2626 490, 2627 /**/ 2628 489, 2629 /**/ 2630 488, 2631 /**/ 2632 487, 2633 /**/ 2634 486, 2635 /**/ 2636 485, 2637 /**/ 2638 484, 2639 /**/ 2640 483, 2641 /**/ 2642 482, 2643 /**/ 2644 481, 2645 /**/ 2646 480, 2647 /**/ 2648 479, 2649 /**/ 2650 478, 2651 /**/ 2652 477, 2653 /**/ 2654 476, 2655 /**/ 2656 475, 2657 /**/ 2658 474, 2659 /**/ 2660 473, 2661 /**/ 2662 472, 2663 /**/ 2664 471, 2665 /**/ 2666 470, 2667 /**/ 2668 469, 2669 /**/ 2670 468, 2671 /**/ 2672 467, 2673 /**/ 2674 466, 2675 /**/ 2676 465, 2677 /**/ 2678 464, 2679 /**/ 2680 463, 2681 /**/ 2682 462, 2683 /**/ 2684 461, 2685 /**/ 2686 460, 2687 /**/ 2688 459, 2689 /**/ 2690 458, 2691 /**/ 2692 457, 2693 /**/ 2694 456, 2695 /**/ 2696 455, 2697 /**/ 2698 454, 2699 /**/ 2700 453, 2701 /**/ 2702 452, 2703 /**/ 2704 451, 2705 /**/ 2706 450, 2707 /**/ 2708 449, 2709 /**/ 2710 448, 2711 /**/ 2712 447, 2713 /**/ 2714 446, 2715 /**/ 2716 445, 2717 /**/ 2718 444, 2719 /**/ 2720 443, 2721 /**/ 2722 442, 2723 /**/ 2724 441, 2725 /**/ 2726 440, 2727 /**/ 2728 439, 2729 /**/ 2730 438, 2731 /**/ 2732 437, 2733 /**/ 2734 436, 2735 /**/ 2736 435, 2737 /**/ 2738 434, 2739 /**/ 2740 433, 2741 /**/ 2742 432, 2743 /**/ 2744 431, 2745 /**/ 2746 430, 2747 /**/ 2748 429, 2749 /**/ 2750 428, 2751 /**/ 2752 427, 2753 /**/ 2754 426, 2755 /**/ 2756 425, 2757 /**/ 2758 424, 2759 /**/ 2760 423, 2761 /**/ 2762 422, 2763 /**/ 2764 421, 2765 /**/ 2766 420, 2767 /**/ 2768 419, 2769 /**/ 2770 418, 2771 /**/ 2772 417, 2773 /**/ 2774 416, 2775 /**/ 2776 415, 2777 /**/ 2778 414, 2779 /**/ 2780 413, 2781 /**/ 2782 412, 2783 /**/ 2784 411, 2785 /**/ 2786 410, 2787 /**/ 2788 409, 2789 /**/ 2790 408, 2791 /**/ 2792 407, 2793 /**/ 2794 406, 2795 /**/ 2796 405, 2797 /**/ 2798 404, 2799 /**/ 2800 403, 2801 /**/ 2802 402, 2803 /**/ 2804 401, 2805 /**/ 2806 400, 2807 /**/ 2808 399, 2809 /**/ 2810 398, 2811 /**/ 2812 397, 2813 /**/ 2814 396, 2815 /**/ 2816 395, 2817 /**/ 2818 394, 2819 /**/ 2820 393, 2821 /**/ 2822 392, 2823 /**/ 2824 391, 2825 /**/ 2826 390, 2827 /**/ 2828 389, 2829 /**/ 2830 388, 2831 /**/ 2832 387, 2833 /**/ 2834 386, 2835 /**/ 2836 385, 2837 /**/ 2838 384, 2839 /**/ 2840 383, 2841 /**/ 2842 382, 2843 /**/ 2844 381, 2845 /**/ 2846 380, 2847 /**/ 2848 379, 2849 /**/ 2850 378, 2851 /**/ 2852 377, 2853 /**/ 2854 376, 2855 /**/ 2856 375, 2857 /**/ 2858 374, 2859 /**/ 2860 373, 2861 /**/ 2862 372, 2863 /**/ 2864 371, 2865 /**/ 2866 370, 2867 /**/ 2868 369, 2869 /**/ 2870 368, 2871 /**/ 2872 367, 2873 /**/ 2874 366, 2875 /**/ 2876 365, 2877 /**/ 2878 364, 2879 /**/ 2880 363, 2881 /**/ 2882 362, 2883 /**/ 2884 361, 2885 /**/ 2886 360, 2887 /**/ 2888 359, 2889 /**/ 2890 358, 2891 /**/ 2892 357, 2893 /**/ 2894 356, 2895 /**/ 2896 355, 2897 /**/ 2898 354, 2899 /**/ 2900 353, 2901 /**/ 2902 352, 2903 /**/ 2904 351, 2905 /**/ 2906 350, 2907 /**/ 2908 349, 2909 /**/ 2910 348, 2911 /**/ 2912 347, 2913 /**/ 2914 346, 2915 /**/ 2916 345, 2917 /**/ 2918 344, 2919 /**/ 2920 343, 2921 /**/ 2922 342, 2923 /**/ 2924 341, 2925 /**/ 2926 340, 2927 /**/ 2928 339, 2929 /**/ 2930 338, 2931 /**/ 2932 337, 2933 /**/ 2934 336, 2935 /**/ 2936 335, 2937 /**/ 2938 334, 2939 /**/ 2940 333, 2941 /**/ 2942 332, 2943 /**/ 2944 331, 2945 /**/ 2946 330, 2947 /**/ 2948 329, 2949 /**/ 2950 328, 2951 /**/ 2952 327, 2953 /**/ 2954 326, 2955 /**/ 2956 325, 2957 /**/ 2958 324, 2959 /**/ 2960 323, 2961 /**/ 2962 322, 2963 /**/ 2964 321, 2965 /**/ 2966 320, 2967 /**/ 2968 319, 2969 /**/ 2970 318, 2971 /**/ 2972 317, 2973 /**/ 2974 316, 2975 /**/ 2976 315, 2977 /**/ 2978 314, 2979 /**/ 2980 313, 2981 /**/ 2982 312, 2983 /**/ 2984 311, 2985 /**/ 2986 310, 2987 /**/ 2988 309, 2989 /**/ 2990 308, 2991 /**/ 2992 307, 2993 /**/ 2994 306, 2995 /**/ 2996 305, 2997 /**/ 2998 304, 2999 /**/ 3000 303, 3001 /**/ 3002 302, 3003 /**/ 3004 301, 3005 /**/ 3006 300, 3007 /**/ 3008 299, 3009 /**/ 3010 298, 3011 /**/ 3012 297, 3013 /**/ 3014 296, 3015 /**/ 3016 295, 3017 /**/ 3018 294, 3019 /**/ 3020 293, 3021 /**/ 3022 292, 3023 /**/ 3024 291, 3025 /**/ 3026 290, 3027 /**/ 3028 289, 3029 /**/ 3030 288, 3031 /**/ 3032 287, 3033 /**/ 3034 286, 3035 /**/ 3036 285, 3037 /**/ 3038 284, 3039 /**/ 3040 283, 3041 /**/ 3042 282, 3043 /**/ 3044 281, 3045 /**/ 3046 280, 3047 /**/ 3048 279, 3049 /**/ 3050 278, 3051 /**/ 3052 277, 3053 /**/ 3054 276, 3055 /**/ 3056 275, 3057 /**/ 3058 274, 3059 /**/ 3060 273, 3061 /**/ 3062 272, 3063 /**/ 3064 271, 3065 /**/ 3066 270, 3067 /**/ 3068 269, 3069 /**/ 3070 268, 3071 /**/ 3072 267, 3073 /**/ 3074 266, 3075 /**/ 3076 265, 3077 /**/ 3078 264, 3079 /**/ 3080 263, 3081 /**/ 3082 262, 3083 /**/ 3084 261, 3085 /**/ 3086 260, 3087 /**/ 3088 259, 3089 /**/ 3090 258, 3091 /**/ 3092 257, 3093 /**/ 3094 256, 3095 /**/ 3096 255, 3097 /**/ 3098 254, 3099 /**/ 3100 253, 3101 /**/ 3102 252, 3103 /**/ 3104 251, 3105 /**/ 3106 250, 3107 /**/ 3108 249, 3109 /**/ 3110 248, 3111 /**/ 3112 247, 3113 /**/ 3114 246, 3115 /**/ 3116 245, 3117 /**/ 3118 244, 3119 /**/ 3120 243, 3121 /**/ 3122 242, 3123 /**/ 3124 241, 3125 /**/ 3126 240, 3127 /**/ 3128 239, 3129 /**/ 3130 238, 3131 /**/ 3132 237, 3133 /**/ 3134 236, 3135 /**/ 3136 235, 3137 /**/ 3138 234, 3139 /**/ 3140 233, 3141 /**/ 3142 232, 3143 /**/ 3144 231, 3145 /**/ 3146 230, 3147 /**/ 3148 229, 3149 /**/ 3150 228, 3151 /**/ 3152 227, 3153 /**/ 3154 226, 3155 /**/ 3156 225, 3157 /**/ 3158 224, 3159 /**/ 3160 223, 3161 /**/ 3162 222, 3163 /**/ 3164 221, 3165 /**/ 3166 220, 3167 /**/ 3168 219, 3169 /**/ 3170 218, 3171 /**/ 3172 217, 3173 /**/ 3174 216, 3175 /**/ 3176 215, 3177 /**/ 3178 214, 3179 /**/ 3180 213, 3181 /**/ 3182 212, 3183 /**/ 3184 211, 3185 /**/ 3186 210, 3187 /**/ 3188 209, 3189 /**/ 3190 208, 3191 /**/ 3192 207, 3193 /**/ 3194 206, 3195 /**/ 3196 205, 3197 /**/ 3198 204, 3199 /**/ 3200 203, 3201 /**/ 3202 202, 3203 /**/ 3204 201, 3205 /**/ 3206 200, 3207 /**/ 3208 199, 3209 /**/ 3210 198, 3211 /**/ 3212 197, 3213 /**/ 3214 196, 3215 /**/ 3216 195, 3217 /**/ 3218 194, 3219 /**/ 3220 193, 3221 /**/ 3222 192, 3223 /**/ 3224 191, 3225 /**/ 3226 190, 3227 /**/ 3228 189, 3229 /**/ 3230 188, 3231 /**/ 3232 187, 3233 /**/ 3234 186, 3235 /**/ 3236 185, 3237 /**/ 3238 184, 3239 /**/ 3240 183, 3241 /**/ 3242 182, 3243 /**/ 3244 181, 3245 /**/ 3246 180, 3247 /**/ 3248 179, 3249 /**/ 3250 178, 3251 /**/ 3252 177, 3253 /**/ 3254 176, 3255 /**/ 3256 175, 3257 /**/ 3258 174, 3259 /**/ 3260 173, 3261 /**/ 3262 172, 3263 /**/ 3264 171, 3265 /**/ 3266 170, 3267 /**/ 3268 169, 3269 /**/ 3270 168, 3271 /**/ 3272 167, 3273 /**/ 3274 166, 3275 /**/ 3276 165, 3277 /**/ 3278 164, 3279 /**/ 3280 163, 3281 /**/ 3282 162, 3283 /**/ 3284 161, 3285 /**/ 3286 160, 3287 /**/ 3288 159, 3289 /**/ 3290 158, 3291 /**/ 3292 157, 3293 /**/ 3294 156, 3295 /**/ 3296 155, 3297 /**/ 3298 154, 3299 /**/ 3300 153, 3301 /**/ 3302 152, 3303 /**/ 3304 151, 3305 /**/ 3306 150, 3307 /**/ 3308 149, 3309 /**/ 3310 148, 3311 /**/ 3312 147, 3313 /**/ 3314 146, 3315 /**/ 3316 145, 3317 /**/ 3318 144, 3319 /**/ 3320 143, 3321 /**/ 3322 142, 3323 /**/ 3324 141, 3325 /**/ 3326 140, 3327 /**/ 3328 139, 3329 /**/ 3330 138, 3331 /**/ 3332 137, 3333 /**/ 3334 136, 3335 /**/ 3336 135, 3337 /**/ 3338 134, 3339 /**/ 3340 133, 3341 /**/ 3342 132, 3343 /**/ 3344 131, 3345 /**/ 3346 130, 3347 /**/ 3348 129, 3349 /**/ 3350 128, 3351 /**/ 3352 127, 3353 /**/ 3354 126, 3355 /**/ 3356 125, 3357 /**/ 3358 124, 3359 /**/ 3360 123, 3361 /**/ 3362 122, 3363 /**/ 3364 121, 3365 /**/ 3366 120, 3367 /**/ 3368 119, 3369 /**/ 3370 118, 3371 /**/ 3372 117, 3373 /**/ 3374 116, 3375 /**/ 3376 115, 3377 /**/ 3378 114, 3379 /**/ 3380 113, 3381 /**/ 3382 112, 3383 /**/ 3384 111, 3385 /**/ 3386 110, 3387 /**/ 3388 109, 3389 /**/ 3390 108, 3391 /**/ 3392 107, 3393 /**/ 3394 106, 3395 /**/ 3396 105, 3397 /**/ 3398 104, 3399 /**/ 3400 103, 3401 /**/ 3402 102, 3403 /**/ 3404 101, 3405 /**/ 3406 100, 3407 /**/ 3408 99, 3409 /**/ 3410 98, 3411 /**/ 3412 97, 3413 /**/ 3414 96, 3415 /**/ 3416 95, 3417 /**/ 3418 94, 3419 /**/ 3420 93, 3421 /**/ 3422 92, 3423 /**/ 3424 91, 3425 /**/ 3426 90, 3427 /**/ 3428 89, 3429 /**/ 3430 88, 3431 /**/ 3432 87, 3433 /**/ 3434 86, 3435 /**/ 3436 85, 3437 /**/ 3438 84, 3439 /**/ 3440 83, 3441 /**/ 3442 82, 3443 /**/ 3444 81, 3445 /**/ 3446 80, 3447 /**/ 3448 79, 3449 /**/ 3450 78, 3451 /**/ 3452 77, 3453 /**/ 3454 76, 3455 /**/ 3456 75, 3457 /**/ 3458 74, 3459 /**/ 3460 73, 3461 /**/ 3462 72, 3463 /**/ 3464 71, 3465 /**/ 3466 70, 3467 /**/ 3468 69, 3469 /**/ 3470 68, 3471 /**/ 3472 67, 3473 /**/ 3474 66, 3475 /**/ 3476 65, 3477 /**/ 3478 64, 3479 /**/ 3480 63, 3481 /**/ 3482 62, 3483 /**/ 3484 61, 3485 /**/ 3486 60, 3487 /**/ 3488 59, 3489 /**/ 3490 58, 3491 /**/ 3492 57, 3493 /**/ 3494 56, 3495 /**/ 3496 55, 3497 /**/ 3498 54, 3499 /**/ 3500 53, 3501 /**/ 3502 52, 3503 /**/ 3504 51, 3505 /**/ 3506 50, 3507 /**/ 3508 49, 3509 /**/ 3510 48, 3511 /**/ 3512 47, 3513 /**/ 3514 46, 3515 /**/ 3516 45, 3517 /**/ 3518 44, 3519 /**/ 3520 43, 3521 /**/ 3522 42, 3523 /**/ 3524 41, 3525 /**/ 3526 40, 3527 /**/ 3528 39, 3529 /**/ 3530 38, 3531 /**/ 3532 37, 3533 /**/ 3534 36, 3535 /**/ 3536 35, 3537 /**/ 3538 34, 3539 /**/ 3540 33, 3541 /**/ 3542 32, 3543 /**/ 3544 31, 3545 /**/ 3546 30, 3547 /**/ 3548 29, 3549 /**/ 3550 28, 3551 /**/ 3552 27, 3553 /**/ 3554 26, 3555 /**/ 3556 25, 3557 /**/ 3558 24, 3559 /**/ 3560 23, 3561 /**/ 3562 22, 3563 /**/ 3564 21, 3565 /**/ 3566 20, 3567 /**/ 3568 19, 3569 /**/ 3570 18, 3571 /**/ 3572 17, 3573 /**/ 3574 16, 3575 /**/ 3576 15, 3577 /**/ 3578 14, 3579 /**/ 3580 13, 3581 /**/ 3582 12, 3583 /**/ 3584 11, 3585 /**/ 3586 10, 3587 /**/ 3588 9, 3589 /**/ 3590 8, 3591 /**/ 3592 7, 3593 /**/ 3594 6, 3595 /**/ 3596 5, 3597 /**/ 3598 4, 3599 /**/ 3600 3, 3601 /**/ 3602 2, 3603 /**/ 3604 1, 3605 /**/ 3606 0 3607 }; 3608 3609 /* 3610 * Place to put a short description when adding a feature with a patch. 3611 * Keep it short, e.g.,: "relative numbers", "persistent undo". 3612 * Also add a comment marker to separate the lines. 3613 * See the official Vim patches for the diff format: It must use a context of 3614 * one line only. Create it by hand or use "diff -C2" and edit the patch. 3615 */ 3616 static char *(extra_patches[]) = 3617 { /* Add your patch description below this line */ 3618 /**/ 3619 NULL 3620 }; 3621 3622 int 3623 highest_patch(void) 3624 { 3625 // this relies on the highest patch number to be the first entry 3626 return included_patches[0]; 3627 } 3628 3629 #if defined(FEAT_EVAL) || defined(PROTO) 3630 /* 3631 * Return TRUE if patch "n" has been included. 3632 */ 3633 int 3634 has_patch(int n) 3635 { 3636 int i; 3637 3638 for (i = 0; included_patches[i] != 0; ++i) 3639 if (included_patches[i] == n) 3640 return TRUE; 3641 return FALSE; 3642 } 3643 #endif 3644 3645 void 3646 ex_version(exarg_T *eap) 3647 { 3648 /* 3649 * Ignore a ":version 9.99" command. 3650 */ 3651 if (*eap->arg == NUL) 3652 { 3653 msg_putchar('\n'); 3654 list_version(); 3655 } 3656 } 3657 3658 /* 3659 * Output a string for the version message. If it's going to wrap, output a 3660 * newline, unless the message is too long to fit on the screen anyway. 3661 * When "wrap" is TRUE wrap the string in []. 3662 */ 3663 static void 3664 version_msg_wrap(char_u *s, int wrap) 3665 { 3666 int len = (int)vim_strsize(s) + (wrap ? 2 : 0); 3667 3668 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns 3669 && *s != '\n') 3670 msg_putchar('\n'); 3671 if (!got_int) 3672 { 3673 if (wrap) 3674 msg_puts("["); 3675 msg_puts((char *)s); 3676 if (wrap) 3677 msg_puts("]"); 3678 } 3679 } 3680 3681 static void 3682 version_msg(char *s) 3683 { 3684 version_msg_wrap((char_u *)s, FALSE); 3685 } 3686 3687 /* 3688 * List all features aligned in columns, dictionary style. 3689 */ 3690 static void 3691 list_features(void) 3692 { 3693 list_in_columns((char_u **)features, -1, -1); 3694 } 3695 3696 /* 3697 * List string items nicely aligned in columns. 3698 * When "size" is < 0 then the last entry is marked with NULL. 3699 * The entry with index "current" is inclosed in []. 3700 */ 3701 void 3702 list_in_columns(char_u **items, int size, int current) 3703 { 3704 int i; 3705 int ncol; 3706 int nrow; 3707 int cur_row = 1; 3708 int item_count = 0; 3709 int width = 0; 3710 #ifdef FEAT_SYN_HL 3711 int use_highlight = (items == (char_u **)features); 3712 #endif 3713 3714 // Find the length of the longest item, use that + 1 as the column 3715 // width. 3716 for (i = 0; size < 0 ? items[i] != NULL : i < size; ++i) 3717 { 3718 int l = (int)vim_strsize(items[i]) + (i == current ? 2 : 0); 3719 3720 if (l > width) 3721 width = l; 3722 ++item_count; 3723 } 3724 width += 1; 3725 3726 if (Columns < width) 3727 { 3728 // Not enough screen columns - show one per line 3729 for (i = 0; i < item_count; ++i) 3730 { 3731 version_msg_wrap(items[i], i == current); 3732 if (msg_col > 0 && i < item_count - 1) 3733 msg_putchar('\n'); 3734 } 3735 return; 3736 } 3737 3738 // The rightmost column doesn't need a separator. 3739 // Sacrifice it to fit in one more column if possible. 3740 ncol = (int) (Columns + 1) / width; 3741 nrow = item_count / ncol + (item_count % ncol ? 1 : 0); 3742 3743 // "i" counts columns then rows. "idx" counts rows then columns. 3744 for (i = 0; !got_int && i < nrow * ncol; ++i) 3745 { 3746 int idx = (i / ncol) + (i % ncol) * nrow; 3747 3748 if (idx < item_count) 3749 { 3750 int last_col = (i + 1) % ncol == 0; 3751 3752 if (idx == current) 3753 msg_putchar('['); 3754 #ifdef FEAT_SYN_HL 3755 if (use_highlight && items[idx][0] == '-') 3756 msg_puts_attr((char *)items[idx], HL_ATTR(HLF_W)); 3757 else 3758 #endif 3759 msg_puts((char *)items[idx]); 3760 if (idx == current) 3761 msg_putchar(']'); 3762 if (last_col) 3763 { 3764 if (msg_col > 0 && cur_row < nrow) 3765 msg_putchar('\n'); 3766 ++cur_row; 3767 } 3768 else 3769 { 3770 while (msg_col % width) 3771 msg_putchar(' '); 3772 } 3773 } 3774 else 3775 { 3776 // this row is out of items, thus at the end of the row 3777 if (msg_col > 0) 3778 { 3779 if (cur_row < nrow) 3780 msg_putchar('\n'); 3781 ++cur_row; 3782 } 3783 } 3784 } 3785 } 3786 3787 void 3788 list_version(void) 3789 { 3790 int i; 3791 int first; 3792 char *s = ""; 3793 3794 /* 3795 * When adding features here, don't forget to update the list of 3796 * internal variables in eval.c! 3797 */ 3798 init_longVersion(); 3799 msg(longVersion); 3800 #ifdef MSWIN 3801 # ifdef FEAT_GUI_MSWIN 3802 # ifdef VIMDLL 3803 # ifdef _WIN64 3804 msg_puts(_("\nMS-Windows 64-bit GUI/console version")); 3805 # else 3806 msg_puts(_("\nMS-Windows 32-bit GUI/console version")); 3807 # endif 3808 # else 3809 # ifdef _WIN64 3810 msg_puts(_("\nMS-Windows 64-bit GUI version")); 3811 # else 3812 msg_puts(_("\nMS-Windows 32-bit GUI version")); 3813 # endif 3814 # endif 3815 # ifdef FEAT_OLE 3816 msg_puts(_(" with OLE support")); 3817 # endif 3818 # else 3819 # ifdef _WIN64 3820 msg_puts(_("\nMS-Windows 64-bit console version")); 3821 # else 3822 msg_puts(_("\nMS-Windows 32-bit console version")); 3823 # endif 3824 # endif 3825 #endif 3826 #if defined(MACOS_X) 3827 # if defined(MACOS_X_DARWIN) 3828 msg_puts(_("\nmacOS version")); 3829 # else 3830 msg_puts(_("\nmacOS version w/o darwin feat.")); 3831 # endif 3832 #endif 3833 3834 #ifdef VMS 3835 msg_puts(_("\nOpenVMS version")); 3836 # ifdef HAVE_PATHDEF 3837 if (*compiled_arch != NUL) 3838 { 3839 msg_puts(" - "); 3840 msg_puts((char *)compiled_arch); 3841 } 3842 # endif 3843 3844 #endif 3845 3846 // Print the list of patch numbers if there is at least one. 3847 // Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" 3848 if (included_patches[0] != 0) 3849 { 3850 msg_puts(_("\nIncluded patches: ")); 3851 first = -1; 3852 // find last one 3853 for (i = 0; included_patches[i] != 0; ++i) 3854 ; 3855 while (--i >= 0) 3856 { 3857 if (first < 0) 3858 first = included_patches[i]; 3859 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) 3860 { 3861 msg_puts(s); 3862 s = ", "; 3863 msg_outnum((long)first); 3864 if (first != included_patches[i]) 3865 { 3866 msg_puts("-"); 3867 msg_outnum((long)included_patches[i]); 3868 } 3869 first = -1; 3870 } 3871 } 3872 } 3873 3874 // Print the list of extra patch descriptions if there is at least one. 3875 if (extra_patches[0] != NULL) 3876 { 3877 msg_puts(_("\nExtra patches: ")); 3878 s = ""; 3879 for (i = 0; extra_patches[i] != NULL; ++i) 3880 { 3881 msg_puts(s); 3882 s = ", "; 3883 msg_puts(extra_patches[i]); 3884 } 3885 } 3886 3887 #ifdef MODIFIED_BY 3888 msg_puts("\n"); 3889 msg_puts(_("Modified by ")); 3890 msg_puts(MODIFIED_BY); 3891 #endif 3892 3893 #ifdef HAVE_PATHDEF 3894 if (*compiled_user != NUL || *compiled_sys != NUL) 3895 { 3896 msg_puts(_("\nCompiled ")); 3897 if (*compiled_user != NUL) 3898 { 3899 msg_puts(_("by ")); 3900 msg_puts((char *)compiled_user); 3901 } 3902 if (*compiled_sys != NUL) 3903 { 3904 msg_puts("@"); 3905 msg_puts((char *)compiled_sys); 3906 } 3907 } 3908 #endif 3909 3910 #ifdef FEAT_HUGE 3911 msg_puts(_("\nHuge version ")); 3912 #else 3913 # ifdef FEAT_BIG 3914 msg_puts(_("\nBig version ")); 3915 # else 3916 # ifdef FEAT_NORMAL 3917 msg_puts(_("\nNormal version ")); 3918 # else 3919 # ifdef FEAT_SMALL 3920 msg_puts(_("\nSmall version ")); 3921 # else 3922 msg_puts(_("\nTiny version ")); 3923 # endif 3924 # endif 3925 # endif 3926 #endif 3927 #ifndef FEAT_GUI 3928 msg_puts(_("without GUI.")); 3929 #else 3930 # ifdef FEAT_GUI_GTK 3931 # ifdef USE_GTK3 3932 msg_puts(_("with GTK3 GUI.")); 3933 # else 3934 # ifdef FEAT_GUI_GNOME 3935 msg_puts(_("with GTK2-GNOME GUI.")); 3936 # else 3937 msg_puts(_("with GTK2 GUI.")); 3938 # endif 3939 # endif 3940 # else 3941 # ifdef FEAT_GUI_MOTIF 3942 msg_puts(_("with X11-Motif GUI.")); 3943 # else 3944 # ifdef FEAT_GUI_ATHENA 3945 # ifdef FEAT_GUI_NEXTAW 3946 msg_puts(_("with X11-neXtaw GUI.")); 3947 # else 3948 msg_puts(_("with X11-Athena GUI.")); 3949 # endif 3950 # else 3951 # ifdef FEAT_GUI_HAIKU 3952 msg_puts(_("with Haiku GUI.")); 3953 # else 3954 # ifdef FEAT_GUI_PHOTON 3955 msg_puts(_("with Photon GUI.")); 3956 # else 3957 # if defined(MSWIN) 3958 msg_puts(_("with GUI.")); 3959 # endif 3960 # endif 3961 # endif 3962 # endif 3963 # endif 3964 # endif 3965 #endif 3966 version_msg(_(" Features included (+) or not (-):\n")); 3967 3968 list_features(); 3969 if (msg_col > 0) 3970 msg_putchar('\n'); 3971 3972 #ifdef SYS_VIMRC_FILE 3973 version_msg(_(" system vimrc file: \"")); 3974 version_msg(SYS_VIMRC_FILE); 3975 version_msg("\"\n"); 3976 #endif 3977 #ifdef USR_VIMRC_FILE 3978 version_msg(_(" user vimrc file: \"")); 3979 version_msg(USR_VIMRC_FILE); 3980 version_msg("\"\n"); 3981 #endif 3982 #ifdef USR_VIMRC_FILE2 3983 version_msg(_(" 2nd user vimrc file: \"")); 3984 version_msg(USR_VIMRC_FILE2); 3985 version_msg("\"\n"); 3986 #endif 3987 #ifdef USR_VIMRC_FILE3 3988 version_msg(_(" 3rd user vimrc file: \"")); 3989 version_msg(USR_VIMRC_FILE3); 3990 version_msg("\"\n"); 3991 #endif 3992 #ifdef USR_EXRC_FILE 3993 version_msg(_(" user exrc file: \"")); 3994 version_msg(USR_EXRC_FILE); 3995 version_msg("\"\n"); 3996 #endif 3997 #ifdef USR_EXRC_FILE2 3998 version_msg(_(" 2nd user exrc file: \"")); 3999 version_msg(USR_EXRC_FILE2); 4000 version_msg("\"\n"); 4001 #endif 4002 #ifdef FEAT_GUI 4003 # ifdef SYS_GVIMRC_FILE 4004 version_msg(_(" system gvimrc file: \"")); 4005 version_msg(SYS_GVIMRC_FILE); 4006 version_msg("\"\n"); 4007 # endif 4008 version_msg(_(" user gvimrc file: \"")); 4009 version_msg(USR_GVIMRC_FILE); 4010 version_msg("\"\n"); 4011 # ifdef USR_GVIMRC_FILE2 4012 version_msg(_("2nd user gvimrc file: \"")); 4013 version_msg(USR_GVIMRC_FILE2); 4014 version_msg("\"\n"); 4015 # endif 4016 # ifdef USR_GVIMRC_FILE3 4017 version_msg(_("3rd user gvimrc file: \"")); 4018 version_msg(USR_GVIMRC_FILE3); 4019 version_msg("\"\n"); 4020 # endif 4021 #endif 4022 version_msg(_(" defaults file: \"")); 4023 version_msg(VIM_DEFAULTS_FILE); 4024 version_msg("\"\n"); 4025 #ifdef FEAT_GUI 4026 # ifdef SYS_MENU_FILE 4027 version_msg(_(" system menu file: \"")); 4028 version_msg(SYS_MENU_FILE); 4029 version_msg("\"\n"); 4030 # endif 4031 #endif 4032 #ifdef HAVE_PATHDEF 4033 if (*default_vim_dir != NUL) 4034 { 4035 version_msg(_(" fall-back for $VIM: \"")); 4036 version_msg((char *)default_vim_dir); 4037 version_msg("\"\n"); 4038 } 4039 if (*default_vimruntime_dir != NUL) 4040 { 4041 version_msg(_(" f-b for $VIMRUNTIME: \"")); 4042 version_msg((char *)default_vimruntime_dir); 4043 version_msg("\"\n"); 4044 } 4045 version_msg(_("Compilation: ")); 4046 version_msg((char *)all_cflags); 4047 version_msg("\n"); 4048 #ifdef VMS 4049 if (*compiler_version != NUL) 4050 { 4051 version_msg(_("Compiler: ")); 4052 version_msg((char *)compiler_version); 4053 version_msg("\n"); 4054 } 4055 #endif 4056 version_msg(_("Linking: ")); 4057 version_msg((char *)all_lflags); 4058 #endif 4059 #ifdef DEBUG 4060 version_msg("\n"); 4061 version_msg(_(" DEBUG BUILD")); 4062 #endif 4063 } 4064 4065 static void do_intro_line(int row, char_u *mesg, int add_version, int attr); 4066 static void intro_message(int colon); 4067 4068 /* 4069 * Show the intro message when not editing a file. 4070 */ 4071 void 4072 maybe_intro_message(void) 4073 { 4074 if (BUFEMPTY() 4075 && curbuf->b_fname == NULL 4076 && firstwin->w_next == NULL 4077 && vim_strchr(p_shm, SHM_INTRO) == NULL) 4078 intro_message(FALSE); 4079 } 4080 4081 /* 4082 * Give an introductory message about Vim. 4083 * Only used when starting Vim on an empty file, without a file name. 4084 * Or with the ":intro" command (for Sven :-). 4085 */ 4086 static void 4087 intro_message( 4088 int colon) // TRUE for ":intro" 4089 { 4090 int i; 4091 int row; 4092 int blanklines; 4093 int sponsor; 4094 char *p; 4095 static char *(lines[]) = 4096 { 4097 N_("VIM - Vi IMproved"), 4098 "", 4099 N_("version "), 4100 N_("by Bram Moolenaar et al."), 4101 #ifdef MODIFIED_BY 4102 " ", 4103 #endif 4104 N_("Vim is open source and freely distributable"), 4105 "", 4106 N_("Help poor children in Uganda!"), 4107 N_("type :help iccf<Enter> for information "), 4108 "", 4109 N_("type :q<Enter> to exit "), 4110 N_("type :help<Enter> or <F1> for on-line help"), 4111 N_("type :help version8<Enter> for version info"), 4112 NULL, 4113 "", 4114 N_("Running in Vi compatible mode"), 4115 N_("type :set nocp<Enter> for Vim defaults"), 4116 N_("type :help cp-default<Enter> for info on this"), 4117 }; 4118 #ifdef FEAT_GUI 4119 static char *(gui_lines[]) = 4120 { 4121 NULL, 4122 NULL, 4123 NULL, 4124 NULL, 4125 #ifdef MODIFIED_BY 4126 NULL, 4127 #endif 4128 NULL, 4129 NULL, 4130 NULL, 4131 N_("menu Help->Orphans for information "), 4132 NULL, 4133 N_("Running modeless, typed text is inserted"), 4134 N_("menu Edit->Global Settings->Toggle Insert Mode "), 4135 N_(" for two modes "), 4136 NULL, 4137 NULL, 4138 NULL, 4139 N_("menu Edit->Global Settings->Toggle Vi Compatible"), 4140 N_(" for Vim defaults "), 4141 }; 4142 #endif 4143 4144 // blanklines = screen height - # message lines 4145 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); 4146 if (!p_cp) 4147 blanklines += 4; // add 4 for not showing "Vi compatible" message 4148 4149 // Don't overwrite a statusline. Depends on 'cmdheight'. 4150 if (p_ls > 1) 4151 blanklines -= Rows - topframe->fr_height; 4152 if (blanklines < 0) 4153 blanklines = 0; 4154 4155 // Show the sponsor and register message one out of four times, the Uganda 4156 // message two out of four times. 4157 sponsor = (int)time(NULL); 4158 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); 4159 4160 // start displaying the message lines after half of the blank lines 4161 row = blanklines / 2; 4162 if ((row >= 2 && Columns >= 50) || colon) 4163 { 4164 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) 4165 { 4166 p = lines[i]; 4167 #ifdef FEAT_GUI 4168 if (p_im && gui.in_use && gui_lines[i] != NULL) 4169 p = gui_lines[i]; 4170 #endif 4171 if (p == NULL) 4172 { 4173 if (!p_cp) 4174 break; 4175 continue; 4176 } 4177 if (sponsor != 0) 4178 { 4179 if (strstr(p, "children") != NULL) 4180 p = sponsor < 0 4181 ? N_("Sponsor Vim development!") 4182 : N_("Become a registered Vim user!"); 4183 else if (strstr(p, "iccf") != NULL) 4184 p = sponsor < 0 4185 ? N_("type :help sponsor<Enter> for information ") 4186 : N_("type :help register<Enter> for information "); 4187 else if (strstr(p, "Orphans") != NULL) 4188 p = N_("menu Help->Sponsor/Register for information "); 4189 } 4190 if (*p != NUL) 4191 do_intro_line(row, (char_u *)_(p), i == 2, 0); 4192 ++row; 4193 } 4194 } 4195 4196 // Make the wait-return message appear just below the text. 4197 if (colon) 4198 msg_row = row; 4199 } 4200 4201 static void 4202 do_intro_line( 4203 int row, 4204 char_u *mesg, 4205 int add_version, 4206 int attr) 4207 { 4208 char_u vers[20]; 4209 int col; 4210 char_u *p; 4211 int l; 4212 int clen; 4213 #ifdef MODIFIED_BY 4214 # define MODBY_LEN 150 4215 char_u modby[MODBY_LEN]; 4216 4217 if (*mesg == ' ') 4218 { 4219 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); 4220 l = (int)STRLEN(modby); 4221 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); 4222 mesg = modby; 4223 } 4224 #endif 4225 4226 // Center the message horizontally. 4227 col = vim_strsize(mesg); 4228 if (add_version) 4229 { 4230 STRCPY(vers, mediumVersion); 4231 if (highest_patch()) 4232 { 4233 // Check for 9.9x or 9.9xx, alpha/beta version 4234 if (isalpha((int)vers[3])) 4235 { 4236 int len = (isalpha((int)vers[4])) ? 5 : 4; 4237 sprintf((char *)vers + len, ".%d%s", highest_patch(), 4238 mediumVersion + len); 4239 } 4240 else 4241 sprintf((char *)vers + 3, ".%d", highest_patch()); 4242 } 4243 col += (int)STRLEN(vers); 4244 } 4245 col = (Columns - col) / 2; 4246 if (col < 0) 4247 col = 0; 4248 4249 // Split up in parts to highlight <> items differently. 4250 for (p = mesg; *p != NUL; p += l) 4251 { 4252 clen = 0; 4253 for (l = 0; p[l] != NUL 4254 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) 4255 { 4256 if (has_mbyte) 4257 { 4258 clen += ptr2cells(p + l); 4259 l += (*mb_ptr2len)(p + l) - 1; 4260 } 4261 else 4262 clen += byte2cells(p[l]); 4263 } 4264 screen_puts_len(p, l, row, col, *p == '<' ? HL_ATTR(HLF_8) : attr); 4265 col += clen; 4266 } 4267 4268 // Add the version number to the version line. 4269 if (add_version) 4270 screen_puts(vers, row, col, 0); 4271 } 4272 4273 /* 4274 * ":intro": clear screen, display intro screen and wait for return. 4275 */ 4276 void 4277 ex_intro(exarg_T *eap UNUSED) 4278 { 4279 screenclear(); 4280 intro_message(TRUE); 4281 wait_return(TRUE); 4282 } 4283