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