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