annotate src/os_mac.h @ 19400:bd9069d21c5d v8.2.0258

patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled Commit: https://github.com/vim/vim/commit/4132eb505c506f7a0710b03a275d1c5a247e4196 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 14 16:53:00 2020 +0100 patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled Problem: ModifyOtherKeys cannot be temporarily disabled. Solution: Add echoraw() with an example for modifyOtherKeys.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Feb 2020 17:00:04 +0100
parents 6e3dc2d630c2
children c85d1e043d16
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10042
4aead6a9b7a9 commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
1 /* vi:set ts=8 sts=4 sw=4 noet:
7
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
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
9 // Before Including the MacOS specific files,
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
10 // lets set the OPAQUE_TOOLBOX_STRUCTS to 0 so we
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
11 // can access the internal structures.
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
12 // (Until fully Carbon compliant)
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
13 // TODO: Can we remove this? (Dany)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 #if 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # define OPAQUE_TOOLBOX_STRUCTS 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
18 // Include MAC_OS_X_VERSION_* macros
5409
38a755adc580 updated for version 7.4.055
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
19 #ifdef HAVE_AVAILABILITYMACROS_H
38a755adc580 updated for version 7.4.055
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
20 # include <AvailabilityMacros.h>
38a755adc580 updated for version 7.4.055
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
21 #endif
38a755adc580 updated for version 7.4.055
Bram Moolenaar <bram@vim.org>
parents: 4352
diff changeset
22
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 * Macintosh machine-dependent things.
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
25 *
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
26 * Include the Mac header files, unless also compiling with X11 (the header
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
27 * files have many conflicts).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 */
2309
543ea69d037f Add clipboard support in Mac console. (Bjorn Winckler)
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
29 #ifdef FEAT_GUI_MAC
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
30 # include <Quickdraw.h> // Apple calls it QuickDraw.h...
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
31 # include <ToolUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
32 # include <LowMem.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
33 # include <Scrap.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
34 # include <Sound.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
35 # include <TextUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
36 # include <Memory.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
37 # include <OSUtils.h>
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
38 # include <Files.h>
15605
62b3805506b3 patch 8.1.0810: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents: 14822
diff changeset
39 # include <Script.h>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 * Unix interface
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 */
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
45 #if defined(__APPLE_CC__) // for Project Builder and ...
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 # include <unistd.h>
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
47 // Get stat.h or something similar. Comment: How come some OS get in in vim.h
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 # include <sys/stat.h>
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
49 // && defined(HAVE_CURSE)
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
50 // The curses.h from MacOS X provides by default some BACKWARD compatibility
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
51 // definition which can cause us problem later on. So we undefine a few of them.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 # include <curses.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # undef reg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 # undef ospeed
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
55 // OK defined to 0 in MacOS X 10.2 curses! Remove it, we define it to be 1.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 # undef OK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 #include <signal.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 #include <errno.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 #include <stdio.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 #include <stdlib.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 #include <time.h>
718
7b21554be7a1 updated for version 7.0219
vimboss
parents: 675
diff changeset
63 #include <dirent.h>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 * MacOS specific #define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
69 // This will go away when CMD_KEY fully tested
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 #define USE_CMD_KEY
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
71 // On MacOS X use the / not the :
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
72 // TODO: Should file such as ~/.vimrc reside instead in
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
73 // ~/Library/Vim or ~/Library/Preferences/org.vim.vim/ ? (Dany)
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
74 // When compiled under MacOS X (including CARBON version)
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
75 // we use the Unix File path style. Also when UNIX is defined.
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
76 #define USE_UNIXFILENAME
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 * Generic Vim #define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 #define FEAT_SOURCE_FFS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #define FEAT_SOURCE_FF_MAC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
86 #define USE_EXE_NAME // to find $VIM
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
87 #define CASE_INSENSITIVE_FILENAME // ignore case when comparing file names
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 #define SPACE_IN_FILENAME
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
89 #define BREAKCHECK_SKIP 32 // call mch_breakcheck() each time, it's
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
90 // quite fast. Did I forgot to update the
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
91 // comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
93 #define USE_FNAME_CASE // make ":e os_Mac.c" open the file in its
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
94 // original case, as "os_mac.c"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 #define BINARY_FILE_IO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 #define EOL_DEFAULT EOL_MAC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 #define HAVE_AVAIL_MEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #ifndef HAVE_CONFIG_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 # define HAVE_STRING_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 # define HAVE_STRCSPN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 # define HAVE_MEMSET
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
103 # define USE_TMPNAM // use tmpnam() instead of mktemp()
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 # define HAVE_FCNTL_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 # define HAVE_QSORT
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
106 # define HAVE_ST_MODE // have stat.st_mode
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 841
diff changeset
107 # define HAVE_MATH_H
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 # if defined(__DATE__) && defined(__TIME__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 # define HAVE_DATE_TIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 # define HAVE_STRFTIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 * Names for the EXRC, HELP and temporary files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 * Some of these may have been defined in the makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 #ifndef SYS_VIMRC_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
121 # define SYS_VIMRC_FILE "$VIM/vimrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 #ifndef SYS_GVIMRC_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
124 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 #ifndef SYS_MENU_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
127 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 #ifndef SYS_OPTWIN_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
130 # define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 #endif
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 5409
diff changeset
132 #ifndef VIM_DEFAULTS_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
133 # define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim"
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 5409
diff changeset
134 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 #ifndef EVIM_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
136 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 # ifndef USR_GVIMRC_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
141 # define USR_GVIMRC_FILE "~/.gvimrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 # ifndef GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 # define GVIMRC_FILE "_gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 #ifndef USR_VIMRC_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
148 # define USR_VIMRC_FILE "~/.vimrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 #ifndef USR_EXRC_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
152 # define USR_EXRC_FILE "~/.exrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 #ifndef VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 # define VIMRC_FILE "_vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 #ifndef EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 # define EXRC_FILE "_exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 #ifndef DFLT_HELPFILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
164 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 #ifndef FILETYPE_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 # define FILETYPE_FILE "filetype.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 #ifndef FTPLUGIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 # define FTPLUGIN_FILE "ftplugin.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 #ifndef INDENT_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 # define INDENT_FILE "indent.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 #ifndef FTOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 # define FTOFF_FILE "ftoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 #ifndef FTPLUGOF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 # define FTPLUGOF_FILE "ftplugof.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 #ifndef INDOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 # define INDOFF_FILE "indoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 #ifndef SYNTAX_FNAME
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
187 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 #ifdef FEAT_VIMINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 # ifndef VIMINFO_FILE
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
192 # define VIMINFO_FILE "~/.viminfo"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 # endif
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
194 #endif // FEAT_VIMINFO
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 #ifndef DFLT_BDIR
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
197 # define DFLT_BDIR "." // default for 'backupdir'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 #ifndef DFLT_DIR
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
201 # define DFLT_DIR "." // default for 'directory'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 #ifndef DFLT_VDIR
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
205 # define DFLT_VDIR "$VIM/vimfiles/view" // default for 'viewdir'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 #define DFLT_ERRORFILE "errors.err"
18
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
209
293621502c4d updated for version 7.0010
vimboss
parents: 7
diff changeset
210 #ifndef DFLT_RUNTIMEPATH
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
211 # define DFLT_RUNTIMEPATH "~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 #endif
13361
65c29bd4548b patch 8.0.1554: custom plugins loaded with --clean
Christian Brabandt <cb@256bit.org>
parents: 12716
diff changeset
213 #ifndef CLEAN_RUNTIMEPATH
65c29bd4548b patch 8.0.1554: custom plugins loaded with --clean
Christian Brabandt <cb@256bit.org>
parents: 12716
diff changeset
214 # define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
65c29bd4548b patch 8.0.1554: custom plugins loaded with --clean
Christian Brabandt <cb@256bit.org>
parents: 12716
diff changeset
215 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 * Macintosh has plenty of memory, use large buffers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 */
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
220 #define CMDBUFFSIZE 1024 // size of the command processing buffer
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 #ifndef DFLT_MAXMEM
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
223 # define DFLT_MAXMEM 512 // use up to 512 Kbyte for buffer
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 #ifndef DFLT_MAXMEMTOT
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
227 # define DFLT_MAXMEMTOT 2048 // use up to 2048 Kbyte for Vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 #define WILDCHAR_LIST "*?[{`$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 /**************/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 #define mch_rename(src, dst) rename(src, dst)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 #define mch_remove(x) unlink((char *)(x))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 #ifndef mch_getenv
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
236 # if defined(__APPLE_CC__)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 # define mch_getenv(name) ((char_u *)getenv((char *)(name)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 # define mch_setenv(name, val, x) setenv(name, val, x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 # else
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
240 // vim_getenv() is in pty.c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 # define USE_VIMPTY_GETENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 # define mch_getenv(x) vimpty_getenv(x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 # define mch_setenv(name, val, x) setenv(name, val, x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 #ifndef HAVE_CONFIG_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 # ifdef __APPLE_CC__
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
249 // Assuming compiling for MacOS X
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
250 // Trying to take advantage of the prebinding
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 # define HAVE_TGETENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 # define OSPEED_EXTERN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 # define UP_BC_PC_EXTERN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
257 // Some "prep work" definition to be able to compile the MacOS X
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
258 // version with os_unix.c instead of os_mac.c. Based on the result
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
259 // of ./configure for console MacOS X.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
261 #ifndef SIGPROTOARG
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
262 # define SIGPROTOARG (int)
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
263 #endif
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
264 #ifndef SIGDEFARG
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
265 # define SIGDEFARG(s) (s) int s UNUSED;
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
266 #endif
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
267 #ifndef SIGDUMMYARG
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
268 # define SIGDUMMYARG 0
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
269 #endif
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
270 #undef HAVE_AVAIL_MEM
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
271 #ifndef HAVE_CONFIG_H
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
272 # define RETSIGTYPE void
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
273 # define SIGRETURN return
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
274 //# define USE_SYSTEM // Output ship do debugger :(, but not compile
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
275 # define HAVE_SYS_WAIT_H 1 // Attempt
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
276 # define HAVE_TERMIOS_H 1
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
277 # define SYS_SELECT_WITH_SYS_TIME 1
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
278 # define HAVE_SELECT 1
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
279 # define HAVE_SYS_SELECT_H 1
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
280 # define HAVE_PUTENV
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
281 # define HAVE_SETENV
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
282 # define HAVE_RENAME
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
12716
351cf7c67bbe patch 8.0.1236: Mac features are confusing
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
285 #if !defined(HAVE_CONFIG_H)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 # define HAVE_PUTENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
18753
6e3dc2d630c2 patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents: 15605
diff changeset
289 // A Mac constant causing big problem to syntax highlighting
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 #define UNKNOWN_CREATOR '\?\?\?\?'