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