2 Subject: Patch 6.2.033 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Mac: Various compiler warnings.
12 Solution: Don't include Classic-only headers in Unix version.
13 Remove references to several unused variables. (Ben Fowler)
14 Use int instead of unsigned short for pixel values, so that the
15 negative error values are recognized.
19 *** ../vim-6.2.032/src/gui_mac.c Sat May 17 15:30:40 2003
20 --- src/gui_mac.c Fri Jul 25 22:21:05 2003
24 /* Include some file. TODO: move into os_mac.h */
26 #include <Resources.h>
27 + #if !TARGET_API_MAC_CARBON
28 #include <StandardFile.h>
32 #include <Processes.h>
36 {"Violet", RGB(0x8D, 0x38, 0xC9)}, /*U*/
39 ! unsigned short r, g, b;
42 if (name[0] == '#' && strlen((char *) name) == 7)
45 {"Violet", RGB(0x8D, 0x38, 0xC9)}, /*U*/
51 if (name[0] == '#' && strlen((char *) name) == 7)
55 * TODO: Add protection for 256 char max.
59 ! Str255 directoryName;
60 ! char_u temporary[255];
61 ! /* char filename[255]; */
63 ! char_u *temporaryPtr = temporary;
64 ! char_u *filenamePtr = fname;
67 #ifdef USE_UNIXFILENAME
69 SInt16 dfltVol_vRefNum;
70 ! SInt32 dfltVol_dirID;
73 UInt32 pathSize = 256;
75 char_u *path = pathname;
78 #ifdef USE_UNIXFILENAME
80 * TODO: Add protection for 256 char max.
85 ! char_u *filenamePtr = fname;
88 #ifdef USE_UNIXFILENAME
89 SInt16 dfltVol_vRefNum;
90 ! SInt32 dfltVol_dirID;
93 UInt32 pathSize = 256;
95 char_u *path = pathname;
97 + Str255 directoryName;
98 + char_u temporary[255];
99 + char_u *temporaryPtr = temporary;
102 #ifdef USE_UNIXFILENAME
106 STRCPY(&temporaryPtr[1], filenamePtr);
107 temporaryPtr[0] = '/';
108 STRCPY(filenamePtr, temporaryPtr);
111 for (p = fname; *p; p++)
117 return (vim_strsave (fname));
118 *** ../vim-6.2.032/src/version.c Fri Jul 25 21:39:40 2003
119 --- src/version.c Fri Jul 25 22:19:09 2003
123 { /* Add new patch number below this line */
129 FIRST SOLDIER: So they wouldn't be able to bring a coconut back anyway.
130 SECOND SOLDIER: Wait a minute! Suppose two swallows carried it together?
131 FIRST SOLDIER: No, they'd have to have it on a line.
132 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
134 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
135 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
136 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
137 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///