annotate src/os_amiga.h @ 13598:8723e4496dd1 v8.0.1671

patch 8.0.1671: crash when passing non-dict argument as env to job_start() commit https://github.com/vim/vim/commit/22efba47deb7e504142487fdc1617ec638cf0683 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 7 13:22:21 2018 +0200 patch 8.0.1671: crash when passing non-dict argument as env to job_start() Problem: Crash when passing non-dict argument as env to job_start(). Solution: Check for valid argument. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2765)
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Apr 2018 13:30:06 +0200
parents 65c29bd4548b
children e7a4d1ac0d0d
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 * Amiga Machine-dependent things
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 #define CASE_INSENSITIVE_FILENAME /* ignore case when comparing file names */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 #define SPACE_IN_FILENAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 #define USE_FNAME_CASE /* adjust case of file names */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 #define USE_TERM_CONSOLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 #define HAVE_AVAIL_MEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 #ifndef HAVE_CONFIG_H
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
20 # if defined(AZTEC_C) || defined(__amigaos4__)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 # define HAVE_STAT_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 # define HAVE_STDLIB_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 # define HAVE_STRING_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 # define HAVE_FCNTL_H
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 # define HAVE_STRCSPN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 # define HAVE_STRICMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 # define HAVE_STRNICMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 # define HAVE_STRFTIME /* guessed */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 # define HAVE_SETENV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # define HAVE_MEMSET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 # define HAVE_QSORT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 # if defined(__DATE__) && defined(__TIME__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 # define HAVE_DATE_TIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
37 #endif /* HAVE_CONFIG_H */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
39 #ifndef DFLT_ERRORFILE
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
40 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
41 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
43 #ifndef DFLT_RUNTIMEPATH
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
44 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
45 #endif
13361
65c29bd4548b patch 8.0.1554: custom plugins loaded with --clean
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
46 #ifndef CLEAN_RUNTIMEPATH
65c29bd4548b patch 8.0.1554: custom plugins loaded with --clean
Christian Brabandt <cb@256bit.org>
parents: 10042
diff changeset
47 # 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: 10042
diff changeset
48 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
50 #ifndef BASENAMELEN
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
51 # define BASENAMELEN 26 /* Amiga */
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
52 #endif
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
53
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
54 #ifndef TEMPNAME
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
55 # define TEMPNAME "t:v?XXXXXX"
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
56 # define TEMPNAMELEN 12
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
57 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3927
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
59 /* cproto fails on missing include files */
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
60 #ifndef PROTO
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
61
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 #include <exec/types.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 #include <libraries/dos.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 #include <libraries/dosextens.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 /* Currently, all Amiga compilers except AZTEC C have these... */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 #ifndef AZTEC_C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 # include <proto/exec.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 # include <proto/dos.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 # include <proto/intuition.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3927
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
73 #endif /* PROTO */
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
74
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 * Manx doesn't have off_t, define it here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 #ifdef AZTEC_C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 typedef long off_t;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #ifdef LATTICE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 #ifdef __GNUC__
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 # include <sys/stat.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 # include <unistd.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3927
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
93 #ifndef PROTO
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 * arpbase.h must be included before functions.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 #ifdef FEAT_ARP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 # include <libraries/arpbase.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3927
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
101 #endif /* PROTO */
e6d8b44065bc updated for version 7.3.719
Bram Moolenaar <bram@vim.org>
parents: 1030
diff changeset
102
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 * This won't be needed if you have a version of Lattice 4.01 without broken
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 * break signal handling.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 #include <signal.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 * Names for the EXRC, HELP and temporary files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 * Some of these may have been defined in the makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 #ifndef SYS_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 # define SYS_VIMRC_FILE "$VIM/vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 #ifndef SYS_GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 #ifndef SYS_MENU_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 #ifndef DFLT_HELPFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 #ifndef FILETYPE_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 # define FILETYPE_FILE "filetype.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 #ifndef FTPLUGIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 # define FTPLUGIN_FILE "ftplugin.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 #ifndef INDENT_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 # define INDENT_FILE "indent.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 #ifndef FTOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 # define FTOFF_FILE "ftoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 #ifndef FTPLUGOF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 # define FTPLUGOF_FILE "ftplugof.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 #ifndef INDOFF_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 # define INDOFF_FILE "indoff.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 #ifndef SYNTAX_FNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 #ifndef USR_EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 # define USR_EXRC_FILE "s:.exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 #ifndef USR_EXRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 # define USR_EXRC_FILE2 "home:.exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 #ifndef USR_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 # define USR_VIMRC_FILE "s:.vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 #ifndef USR_VIMRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 # define USR_VIMRC_FILE2 "home:.vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 #ifndef USR_VIMRC_FILE3
4863
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
161 # define USR_VIMRC_FILE3 "home:vimfiles:vimrc"
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
162 #endif
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
163 #ifndef USR_VIMRC_FILE4
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
164 # define USR_VIMRC_FILE4 "$VIM/.vimrc"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 #endif
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 7838
diff changeset
166 #ifndef VIM_DEFAULTS_FILE
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 7838
diff changeset
167 # define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim"
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 7838
diff changeset
168 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 #ifndef EVIM_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
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 #ifndef USR_GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 # define USR_GVIMRC_FILE "s:.gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 #ifndef USR_GVIMRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 # define USR_GVIMRC_FILE2 "home:.gvimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 #ifndef USR_GVIMRC_FILE3
4863
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
180 # define USR_GVIMRC_FILE3 "home:vimfiles:gvimrc"
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
181 #endif
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
182 #ifndef USR_GVIMRC_FILE4
c4d4f0fc12b9 updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents: 3927
diff changeset
183 # define USR_GVIMRC_FILE4 "$VIM/.gvimrc"
7
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 #ifdef FEAT_VIMINFO
1030
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
187 # ifndef VIMINFO_FILE
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
188 # define VIMINFO_FILE "s:.viminfo"
d4bc24e6a281 updated for version 7.0-156
vimboss
parents: 7
diff changeset
189 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 #endif /* FEAT_VIMINFO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 #ifndef EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 # define EXRC_FILE ".exrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 #ifndef VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 # define VIMRC_FILE ".vimrc"
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 GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # define GVIMRC_FILE ".gvimrc"
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_BDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */
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 #ifndef DFLT_DIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 # define DFLT_DIR ".,t:" /* default for 'directory' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 #ifndef DFLT_VDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 #ifndef DFLT_MAXMEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 #ifndef DFLT_MAXMEMTOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 # define DFLT_MAXMEMTOT 0 /* decide in set_init */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 #if defined(SASC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 int setenv(const char *, const char *);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 #define mch_remove(x) remove((char *)(x))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 #define mch_rename(src, dst) rename(src, dst)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 #define mch_chdir(s) chdir(s)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 #define vim_mkdir(x, y) mch_mkdir(x)