2 Subject: patch 7.0.233 (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: code formatted badly.
12 Solution: Fix code formatting
16 *** ../vim-7.0.232/src/gui_mac.c Thu Apr 26 18:22:12 2007
17 --- src/gui_mac.c Fri Mar 16 11:26:05 2007
24 ! * * Clipboard does not work (at least some cases)
25 ! * * ATSU font rendering has some problems
26 ! * * Investigate and remove dead code (there is still lots of that)
29 #include <Devices.h> /* included first to avoid CR problems */
36 ! * * Clipboard does not work (at least some cases)
37 ! * * ATSU font rendering has some problems
38 ! * * Investigate and remove dead code (there is still lots of that)
41 #include <Devices.h> /* included first to avoid CR problems */
45 /* Get number of files in list */
46 *error = AECountItems(theList, numFiles);
52 /* Allocate the pointer list */
53 fnames = (char_u **) alloc(*numFiles * sizeof(char_u *));
55 /* Get number of files in list */
56 *error = AECountItems(theList, numFiles);
60 /* Allocate the pointer list */
61 fnames = (char_u **) alloc(*numFiles * sizeof(char_u *));
65 /* Caller is able to clean up */
66 /* TODO: Should be clean up or not? For safety. */
70 /* Convert the FSSpec to a pathname */
73 /* Caller is able to clean up */
74 /* TODO: Should be clean up or not? For safety. */
78 /* Convert the FSSpec to a pathname */
82 error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &SearchData, sizeof(WindowSearch), &actualSize);
88 error = HandleUnusedParms(theAEvent);
94 for (buf = firstbuf; buf != NULL; buf = buf->b_next)
95 if (buf->b_ml.ml_mfp != NULL
98 error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &SearchData, sizeof(WindowSearch), &actualSize);
102 error = HandleUnusedParms(theAEvent);
106 for (buf = firstbuf; buf != NULL; buf = buf->b_next)
107 if (buf->b_ml.ml_mfp != NULL
111 error = HandleUnusedParms(theAEvent);
118 /* replyObject.descriptorType = typeNull;
121 error = HandleUnusedParms(theAEvent);
126 /* replyObject.descriptorType = typeNull;
129 /* AECreateDesc(typeChar, (Ptr)&title[1], title[0], &data) */
130 error = AECreateList(nil, 0, false, &replyList);
137 error = AECountItems(&replyList, &numFiles);
139 /* AECreateDesc(typeChar, (Ptr)&title[1], title[0], &data) */
140 error = AECreateList(nil, 0, false, &replyList);
145 error = AECountItems(&replyList, &numFiles);
148 error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &GetTextData, sizeof(GetTextData), &actualSize);
155 for (buf = firstbuf; buf != NULL; buf = buf->b_next)
156 if (buf->b_ml.ml_mfp != NULL)
158 error = AEGetParamPtr(theAEvent, keyDirectObject, typeChar, &typeCode, (Ptr) &GetTextData, sizeof(GetTextData), &actualSize);
163 for (buf = firstbuf; buf != NULL; buf = buf->b_next)
164 if (buf->b_ml.ml_mfp != NULL)
169 error = HandleUnusedParms(theAEvent);
182 error = HandleUnusedParms(theAEvent);
190 /* the direct object parameter is the list of aliases to files (one or more) */
191 error = AEGetParamDesc(theAEvent, keyDirectObject, typeAEList, &theList);
198 error = AEGetParamPtr(theAEvent, keyAEPosition, typeChar, &typeCode, (Ptr) &thePosition, sizeof(SelectionRange), &actualSize);
200 /* the direct object parameter is the list of aliases to files (one or more) */
201 error = AEGetParamDesc(theAEvent, keyDirectObject, typeAEList, &theList);
206 error = AEGetParamPtr(theAEvent, keyAEPosition, typeChar, &typeCode, (Ptr) &thePosition, sizeof(SelectionRange), &actualSize);
209 if (error == errAEDescNotFound)
217 error = AEGetParamDesc(theAEvent, keyAEPosition, typeChar, &thePosition);
219 if (error == errAEDescNotFound)
225 error = AEGetParamDesc(theAEvent, keyAEPosition, typeChar, &thePosition);
228 /* Fake mouse event to wake from stall */
229 PostEvent(mouseUp, 0);
232 AEDisposeDesc(&theList); /* dispose what we allocated */
234 error = HandleUnusedParms(theAEvent);
244 /* Fake mouse event to wake from stall */
245 PostEvent(mouseUp, 0);
248 AEDisposeDesc(&theList); /* dispose what we allocated */
250 error = HandleUnusedParms(theAEvent);
259 error = HandleUnusedParms(theAEvent);
272 error = HandleUnusedParms(theAEvent);
280 error = HandleUnusedParms(theAEvent);
286 /* Need to fake a :confirm qa */
287 do_cmdline_cmd((char_u *)"confirm qa");
295 error = HandleUnusedParms(theAEvent);
299 /* Need to fake a :confirm qa */
300 do_cmdline_cmd((char_u *)"confirm qa");
310 error = HandleUnusedParms(theAEvent);
323 error = HandleUnusedParms(theAEvent);
333 error = HandleUnusedParms(theAEvent);
346 error = HandleUnusedParms(theAEvent);
359 * when we fail give any additional callback handler a chance to perform
367 * when we fail give any additional callback handler a chance to perform
374 ! receiveHandler(WindowRef theWindow, void* handlerRefCon, DragRef theDrag)
382 ! receiveHandler(WindowRef theWindow, void *handlerRefCon, DragRef theDrag)
388 SetControl32BitMaximum (sb->id, max);
389 SetControl32BitMinimum (sb->id, 0);
390 SetControl32BitValue (sb->id, val);
391 ! SetControlViewSize (sb->id, size);
393 printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max);
396 SetControl32BitMaximum (sb->id, max);
397 SetControl32BitMinimum (sb->id, 0);
398 SetControl32BitValue (sb->id, val);
399 ! SetControlViewSize (sb->id, size);
401 printf("thumb_sb (%x) %x, %x,%x\n",sb->id, val, size, max);
403 *** ../vim-7.0.232/src/version.c Thu Apr 26 18:22:12 2007
404 --- src/version.c Thu Apr 26 18:41:08 2007
408 { /* Add new patch number below this line */
414 hundred-and-one symptoms of being an internet addict:
415 25. You believe nothing looks sexier than a man in boxer shorts illuminated
416 only by a 17" inch svga monitor.
418 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
419 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
420 \\\ download, build and distribute -- http://www.A-A-P.org ///
421 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///