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