annotate src/os_mac.h @ 667:9090f866cd57 v7.0197

updated for version 7.0197
author vimboss
date Tue, 14 Feb 2006 22:29:30 +0000
parents 5953bf5509ec
children 51794dc170f7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* vi:set ts=8 sts=4 sw=4:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 * VIM - Vi IMproved by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 * Do ":help uganda" in Vim to read copying and usage conditions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 * Do ":help credits" in Vim to see a list of people who contributed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /* Before Including the MacOS specific files,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 * lets set the OPAQUE_TOOLBOX_STRUCTS to 0 so we
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 * can access the internal structures.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 * (Until fully Carbon compliant)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 * TODO: Can we remove this? (Dany)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 #if 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # define OPAQUE_TOOLBOX_STRUCTS 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 * Macintosh machine-dependent things.
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
21 *
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
22 * Include the Mac header files, unless also compiling with X11 (the header
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
23 * files have many conflicts).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 */
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
25 #ifndef FEAT_X11
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
26 # include <QuickDraw.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
27 # include <ToolUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
28 # include <LowMem.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
29 # include <Scrap.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
30 # include <Sound.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
31 # include <TextUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
32 # include <Memory.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
33 # include <OSUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
34 # include <Files.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
35 # ifdef FEAT_MBYTE
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
36 # include <Script.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
37 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 * Unix interface
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 #if defined(__MWERKS__) /* for CodeWarrior */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 # include <unistd.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 # include <utsname.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 # include <unix.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 #if defined(__APPLE_CC__) /* for Project Builder and ... */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 # include <unistd.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 /* Get stat.h or something similar. Comment: How come some OS get in in vim.h */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 #if defined(__MWERKS__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # include <stat.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 #if defined(__APPLE_CC__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 # include <sys/stat.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 #if defined(__MRC__) || defined(__SC__) /* for Apple MPW Compilers */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 /* There's no stat.h for MPW? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 # ifdef powerc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 # pragma options align=power
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 struct stat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 UInt32 st_mtime;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 UInt32 st_mode;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 UInt32 st_size;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 # ifdef powerc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 # pragma options align=reset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 #if defined(__APPLE_CC__) /* && defined(HAVE_CURSE) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 /* The curses.h from MacOS X provides by default some BACKWARD compatibilty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 * definition which can cause us problem later on. So we undefine a few of them. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 # include <curses.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 # undef reg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 # undef ospeed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 /* OK defined to 0 in MacOS X 10.2 curses! Remove it, we define it to be 1. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 # undef OK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #include <signal.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 #include <errno.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #include <stdio.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 #include <stdlib.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 #include <time.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #ifdef MACOS_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 # include <dirent.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 * Incompatibility checks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 /* Got problem trying to use shared library in 68k */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 #if !defined(__POWERPC__) && defined(FEAT_PYTHON)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 # undef FEAT_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 # warning Auto-disabling Python. Not yet supported in 68k.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 #if !defined(__POWERPC__) && !defined(__ppc__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 # if !__option(enumsalwaysint)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 # error "You must compile with enums always int!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 # if defined(__MWERKS__) && !defined(__fourbyteints__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 # error "You must compile the project with 4-byte ints"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 /* MPW ints are always 4 byte long */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 * MacOS specific #define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 /* This will go away when CMD_KEY fully tested */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 #define USE_CMD_KEY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 /* On MacOS X use the / not the : */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 /* TODO: Should file such as ~/.vimrc reside instead in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 * ~/Library/Vim or ~/Library/Preferences/org.vim.vim/ ? (Dany)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 /* When compiled under MacOS X (including CARBON version)
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
122 * we use the Unix File path style. Also when UNIX is defined. */
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
123 #if defined(UNIX) || (defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 # undef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 # define USE_UNIXFILENAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 # define COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 # define DONT_ADD_PATHSEP_TO_DIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 * Generic Vim #define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 #define FEAT_SOURCE_FFS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 #define FEAT_SOURCE_FF_MAC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 #define USE_EXE_NAME /* to find $VIM */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 #define CASE_INSENSITIVE_FILENAME /* ignore case when comparing file names */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 #define SPACE_IN_FILENAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 #define BREAKCHECK_SKIP 32 /* call mch_breakcheck() each time, it's
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
143 quite fast. Did I forgot to update the
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
144 comment */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
584
5953bf5509ec updated for version 7.0166
vimboss
parents: 573
diff changeset
147 #define USE_FNAME_CASE /* make ":e os_Mac.c" open the file in its
5953bf5509ec updated for version 7.0166
vimboss
parents: 573
diff changeset
148 original case, as "os_mac.c" */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 #define BINARY_FILE_IO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 #define EOL_DEFAULT EOL_MAC
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
151 #ifndef MACOS_X_UNIX /* I hope that switching these two lines */
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 18
diff changeset
152 # define USE_CR /* does what I want -- BNF */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 # define NO_CONSOLE /* don't include console mode */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 #define HAVE_AVAIL_MEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 #ifndef HAVE_CONFIG_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 /* #define SYNC_DUP_CLOSE sync() a file with dup() and close() */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 # define HAVE_STRING_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 # define HAVE_STRCSPN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 # define HAVE_MEMSET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 # define HAVE_FCNTL_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 # define HAVE_QSORT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 # define HAVE_ST_MODE /* have stat.st_mode */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 # if defined(__DATE__) && defined(__TIME__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 # define HAVE_DATE_TIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 # define HAVE_STRFTIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 * Names for the EXRC, HELP and temporary files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 * Some of these may have been defined in the makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 #ifndef SYS_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 # define SYS_VIMRC_FILE "$VIM:vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 # define SYS_VIMRC_FILE "$VIM/vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 #ifndef SYS_GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 # define SYS_GVIMRC_FILE "$VIM:gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 #ifndef SYS_MENU_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 # define SYS_MENU_FILE "$VIMRUNTIME:menu.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 #ifndef SYS_OPTWIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # define SYS_OPTWIN_FILE "$VIMRUNTIME:optwin.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 # define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 #ifndef EVIM_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 # define EVIM_FILE "$VIMRUNTIME:evim.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 # ifndef USR_GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 # define USR_GVIMRC_FILE "$VIM:.gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 # define USR_GVIMRC_FILE "~/.gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 # ifndef GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 # define GVIMRC_FILE "_gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 #ifndef USR_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 # define USR_VIMRC_FILE "$VIM:.vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 # define USR_VIMRC_FILE "~/.vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 #ifndef USR_EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 # define USR_EXRC_FILE "$VIM:.exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 # define USR_EXRC_FILE "~/.exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 #ifndef VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 # define VIMRC_FILE "_vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 #ifndef EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 # define EXRC_FILE "_exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 #ifndef DFLT_HELPFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 # define DFLT_HELPFILE "$VIMRUNTIME:doc:help.txt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 #ifndef FILETYPE_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 # define FILETYPE_FILE "filetype.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 #ifndef FTPLUGIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 # define FTPLUGIN_FILE "ftplugin.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 #ifndef INDENT_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 # define INDENT_FILE "indent.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 #ifndef FTOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 # define FTOFF_FILE "ftoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 #ifndef FTPLUGOF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 # define FTPLUGOF_FILE "ftplugof.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 #ifndef INDOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 # define INDOFF_FILE "indoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 #ifndef SYNTAX_FNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 # define SYNTAX_FNAME "$VIMRUNTIME:syntax:%s.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 #ifdef FEAT_VIMINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 # ifndef VIMINFO_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 # define VIMINFO_FILE "$VIM:viminfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 # define VIMINFO_FILE "~/.viminfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 #endif /* FEAT_VIMINFO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 #ifndef DFLT_BDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 # define DFLT_BDIR "." /* default for 'backupdir' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 #ifndef DFLT_DIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 # define DFLT_DIR "." /* default for 'directory' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 #ifndef DFLT_VDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 # ifdef COLON_AS_PATHSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 # define DFLT_VDIR "$VIM:vimfiles:view" /* default for 'viewdir' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 #define DFLT_ERRORFILE "errors.err"
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
312
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
313 #ifndef DFLT_RUNTIMEPATH
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
314 # ifdef COLON_AS_PATHSEP
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
315 # define DFLT_RUNTIMEPATH "$VIM:vimfiles,$VIMRUNTIME,$VIM:vimfiles:after"
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
316 # else
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
317 # define DFLT_RUNTIMEPATH "~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after"
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
318 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 * Macintosh has plenty of memory, use large buffers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 #define CMDBUFFSIZE 1024 /* size of the command processing buffer */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 #if defined(MACOS_X_UNIX)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 # define MAXPATHL 1024
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 # define BASENAMELEN (MAXNAMLEN - 5) /* length of base of filename */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 # define MAXPATHL 256 /* Limited by the Pascal Strings */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 # define BASENAMELEN (32-5-1) /* length of base of filename */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 #ifndef DFLT_MAXMEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 # define DFLT_MAXMEM 512 /* use up to 512 Kbyte for buffer */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 #ifndef DFLT_MAXMEMTOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 # define DFLT_MAXMEMTOT 2048 /* use up to 2048 Kbyte for Vim */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 #define WILDCHAR_LIST "*?[{`$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 /**************/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 #define mch_rename(src, dst) rename(src, dst)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 #define mch_remove(x) unlink((char *)(x))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 #ifndef mch_getenv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 # if defined(__MRC__) || defined(__SC__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 # define mch_getenv(name) ((char_u *)getenv((char *)(name)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 # define mch_setenv(name, val, x) setenv((name), (val))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 # elif defined(__APPLE_CC__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 # define mch_getenv(name) ((char_u *)getenv((char *)(name)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 /*# define mch_setenv(name, val, x) setenv((name), (val)) */ /* Obsoleted by Dany on Oct 30, 2001 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 # define mch_setenv(name, val, x) setenv(name, val, x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 /* vim_getenv() is in pty.c */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 # define USE_VIMPTY_GETENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 # define mch_getenv(x) vimpty_getenv(x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 # define mch_setenv(name, val, x) setenv(name, val, x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 #ifndef HAVE_CONFIG_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 # ifdef __APPLE_CC__
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 /* Assuming compiling for MacOS X */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 /* Trying to take advantage of the prebinding */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 # define HAVE_TGETENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 # define OSPEED_EXTERN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 # define UP_BC_PC_EXTERN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 /* Some "prep work" definition to be able to compile the MacOS X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 * version with os_unix.x instead of os_mac.c. Based on the result
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 * of ./configure for console MacOS X.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 #ifdef MACOS_X_UNIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 # define SIGPROTOARG (int)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 # define SIGDEFARG(s) (s) int s;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 # define SIGDUMMYARG 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 # undef HAVE_AVAIL_MEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 # ifndef HAVE_CONFIG_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 # define RETSIGTYPE void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 # define SIGRETURN return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 /*# define USE_SYSTEM */ /* Output ship do debugger :(, but ot compile */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 # define HAVE_SYS_WAIT_H 1 /* Attempt */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 # define HAVE_TERMIOS_H 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 # define SYS_SELECT_WITH_SYS_TIME 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 # define HAVE_SELECT 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 # define HAVE_SYS_SELECT_H 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 # define HAVE_PUTENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 # define HAVE_SETENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 # define HAVE_RENAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 # define mch_chdir(s) chdir(s)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 #if defined(MACOS_X) && !defined(HAVE_CONFIG_H)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 # define HAVE_PUTENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 /* A Mac constant causing big problem to syntax highlighting */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 #define UNKNOWN_CREATOR '\?\?\?\?'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 * for debugging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 #ifdef MACOS_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 # ifdef _DEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 # define TRACE Trace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 void Trace(char *fmt, ...);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 # define TRACE 1 ? (void)0 : printf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 #ifdef MACOS_CLASSIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 # define TRACE 1 ? (int)0 : printf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 #endif