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