2 Subject: Patch 6.2.141 (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: The b_FSSpec field is sometimes unused.
12 Solution: Change the #ifdef to FEAT_CW_EDITOR and defined it in feature.h
13 Files: src/fileio.c, src/gui_mac.c, src/structs.h, src/feature.h
16 *** ../vim-6.2.140/src/fileio.c Wed Oct 29 14:29:15 2003
17 --- src/fileio.c Sat Nov 1 13:42:24 2003
20 (void)mch_setperm(curbuf->b_ml.ml_mfp->mf_fname,
21 (long)((st.st_mode & 0777) | 0600));
23 ! #ifdef MACOS_CLASSIC /* TODO: Is it need for MACOS_X? (Dany) */
24 /* Get the FSSpec on MacOS
25 * TODO: Update it properly when the buffer name changes
28 (void)mch_setperm(curbuf->b_ml.ml_mfp->mf_fname,
29 (long)((st.st_mode & 0777) | 0600));
31 ! #ifdef FEAT_CW_EDITOR
32 /* Get the FSSpec on MacOS
33 * TODO: Update it properly when the buffer name changes
35 *** ../vim-6.2.140/src/gui_mac.c Mon Oct 13 22:21:06 2003
36 --- src/gui_mac.c Sun Nov 2 12:55:39 2003
41 /* Compile as CodeWarior External Editor */
42 - #define FEAT_CW_EDITOR
43 #if defined(FEAT_CW_EDITOR) && !defined(USE_AEVENT)
44 # define USE_AEVENT /* Need Apple Event Support */
56 mch_post_buffer_write (buf_T *buf)
59 printf ("Writing Buf...\n");
61 GetFSSpecFromPath (buf->b_ffname, &buf->b_FSSpec);
62 - #ifdef FEAT_CW_EDITOR
63 Send_KAHL_MOD_AE (buf);
73 ! #if defined(FEAT_CW_EDITOR) || defined(PROTO)
74 ! /* TODO: Is it need for MACOS_X? (Dany) */
76 mch_post_buffer_write(buf_T *buf)
79 printf ("Writing Buf...\n");
81 GetFSSpecFromPath (buf->b_ffname, &buf->b_FSSpec);
82 Send_KAHL_MOD_AE (buf);
88 *** ../vim-6.2.140/src/structs.h Sun Aug 10 22:24:37 2003
89 --- src/structs.h Sat Nov 1 13:42:02 2003
92 int b_dev; /* device number (-1 if not set) */
93 ino_t b_ino; /* inode number */
96 FSSpec b_FSSpec; /* MacOS File Identification */
100 int b_dev; /* device number (-1 if not set) */
101 ino_t b_ino; /* inode number */
103 ! #ifdef FEAT_CW_EDITOR
104 FSSpec b_FSSpec; /* MacOS File Identification */
107 *** ../vim-6.2.140/src/feature.h Mon Oct 13 22:48:17 2003
108 --- src/feature.h Sun Nov 2 12:56:37 2003
112 # define FEAT_GUI_TEXTDIALOG
115 + /* Mac specific thing: Codewarrior interface. */
116 + #ifdef FEAT_GUI_MAC
117 + # define FEAT_CW_EDITOR
123 *** ../vim-6.2.140/src/version.c Wed Oct 29 14:51:49 2003
124 --- src/version.c Sun Nov 2 15:26:23 2003
128 { /* Add new patch number below this line */
134 A parent can be arrested if his child cannot hold back a burp during a church
136 [real standing law in Nebraska, United States of America]
138 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
139 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
140 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
141 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///