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