2 Subject: Patch 6.2.041 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 6.2.041 (extra, after 6.2.033)
11 Problem: Mac: Compiler warnings for conversion types, missing prototype,
13 Solution: Change sscanf "%hd" to "%d", the argument is an int now. Add
14 gui_mch_init_check() prototype. Add "int" to termlib functions.
15 Files: src/gui_mac.c, src/proto/gui_mac.pro, src/termlib.c
18 *** ../vim-6.2.040/src/gui_mac.c Fri Jul 25 22:22:15 2003
19 --- src/gui_mac.c Sat Jul 26 21:03:13 2003
25 ! i = sscanf(line, "%hd %hd %hd %n", &r, &g, &b, &pos);
33 ! i = sscanf(line, "%d %d %d %n", &r, &g, &b, &pos);
37 *** ../vim-6.2.040/src/proto/gui_mac.pro Sun Mar 17 15:05:37 2002
38 --- src/proto/gui_mac.pro Sat Jul 26 21:05:32 2003
42 int gui_mch_get_mouse_y __ARGS((void));
43 void gui_mch_setmouse __ARGS((int x, int y));
44 void gui_mch_prepare __ARGS((int *argc, char **argv));
45 + int gui_mch_init_check __ARGS((void));
46 int gui_mch_init __ARGS((void));
47 void gui_mch_new_colors __ARGS((void));
48 int gui_mch_open __ARGS((void));
49 *** ../vim-6.2.040/src/termlib.c Tue Jul 10 21:06:56 2001
50 --- src/termlib.c Sat Jul 26 21:15:51 2003
59 char *tbuf; /* Buffer to hold termcap entry, TBUFSZ bytes max */
60 char *term; /* Name of terminal */
64 * Returned values: 1 for success, 0 for failure.
74 * Returned values: -1 for failure, else numerical value.
84 600, 1200, 1800, 2400,
85 4800, 9600, 19200, 19200 };
88 tputs(cp, affcnt, outc)
89 char *cp; /* string to print */
90 int affcnt; /* Number of lines affected */
91 *** ../vim-6.2.040/src/version.c Sat Jul 26 21:22:37 2003
92 --- src/version.c Sat Jul 26 21:24:04 2003
96 { /* Add new patch number below this line */
102 ARTHUR: You are indeed brave Sir knight, but the fight is mine.
103 BLACK KNIGHT: Had enough?
104 ARTHUR: You stupid bastard. You havn't got any arms left.
105 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
107 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
108 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
109 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
110 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///