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