7
|
1 /* vi:set ts=8 sts=4 sw=4:
|
|
2 *
|
|
3 * VIM - Vi IMproved by Bram Moolenaar
|
|
4 *
|
|
5 * Do ":help uganda" in Vim to read copying and usage conditions.
|
|
6 * Do ":help credits" in Vim to see a list of people who contributed.
|
|
7 */
|
|
8
|
|
9 /*
|
|
10 * Amiga Machine-dependent things
|
|
11 */
|
|
12
|
|
13 #define CASE_INSENSITIVE_FILENAME /* ignore case when comparing file names */
|
|
14 #define SPACE_IN_FILENAME
|
|
15 #define USE_FNAME_CASE /* adjust case of file names */
|
|
16 #define USE_TERM_CONSOLE
|
|
17 #define HAVE_AVAIL_MEM
|
|
18
|
|
19 #ifndef HAVE_CONFIG_H
|
1030
|
20 # if defined(AZTEC_C) || defined(__amigaos4__)
|
7
|
21 # define HAVE_STAT_H
|
|
22 # endif
|
1030
|
23 # ifdef __amigaos4__
|
|
24 # define HAVE_STDARG_H
|
|
25 # endif
|
7
|
26 # define HAVE_STDLIB_H
|
|
27 # define HAVE_STRING_H
|
|
28 # define HAVE_FCNTL_H
|
|
29 # define HAVE_STRCSPN
|
|
30 # define HAVE_STRICMP
|
|
31 # define HAVE_STRNICMP
|
|
32 # define HAVE_STRFTIME /* guessed */
|
|
33 # define HAVE_SETENV
|
|
34 # define HAVE_MEMSET
|
|
35 # define HAVE_QSORT
|
|
36 # if defined(__DATE__) && defined(__TIME__)
|
|
37 # define HAVE_DATE_TIME
|
|
38 # endif
|
|
39
|
1030
|
40 #endif /* HAVE_CONFIG_H */
|
7
|
41
|
1030
|
42 #ifndef DFLT_ERRORFILE
|
|
43 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */
|
|
44 #endif
|
7
|
45
|
1030
|
46 #ifndef DFLT_RUNTIMEPATH
|
|
47 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
|
|
48 #endif
|
7
|
49
|
1030
|
50 #ifndef BASENAMELEN
|
|
51 # define BASENAMELEN 26 /* Amiga */
|
|
52 #endif
|
|
53
|
|
54 #ifndef TEMPNAME
|
|
55 # define TEMPNAME "t:v?XXXXXX"
|
|
56 # define TEMPNAMELEN 12
|
|
57 #endif
|
7
|
58
|
3927
|
59 /* cproto fails on missing include files */
|
|
60 #ifndef PROTO
|
|
61
|
7
|
62 #include <exec/types.h>
|
|
63 #include <libraries/dos.h>
|
|
64 #include <libraries/dosextens.h>
|
|
65
|
|
66 /* Currently, all Amiga compilers except AZTEC C have these... */
|
|
67 #ifndef AZTEC_C
|
|
68 # include <proto/exec.h>
|
|
69 # include <proto/dos.h>
|
|
70 # include <proto/intuition.h>
|
|
71 #endif
|
|
72
|
3927
|
73 #endif /* PROTO */
|
|
74
|
7
|
75 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
|
|
76
|
|
77 /*
|
|
78 * Manx doesn't have off_t, define it here.
|
|
79 */
|
|
80 #ifdef AZTEC_C
|
|
81 typedef long off_t;
|
|
82 #endif
|
|
83
|
|
84 #ifdef LATTICE
|
|
85 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */
|
|
86 #endif
|
|
87
|
|
88 #ifdef __GNUC__
|
|
89 # include <sys/stat.h>
|
|
90 # include <unistd.h>
|
|
91 #endif
|
|
92
|
3927
|
93 #ifndef PROTO
|
7
|
94 /*
|
|
95 * arpbase.h must be included before functions.h
|
|
96 */
|
|
97 #ifdef FEAT_ARP
|
|
98 # include <libraries/arpbase.h>
|
|
99 #endif
|
|
100
|
3927
|
101 #endif /* PROTO */
|
|
102
|
7
|
103 /*
|
|
104 * This won't be needed if you have a version of Lattice 4.01 without broken
|
|
105 * break signal handling.
|
|
106 */
|
|
107 #include <signal.h>
|
|
108
|
|
109 /*
|
|
110 * Names for the EXRC, HELP and temporary files.
|
|
111 * Some of these may have been defined in the makefile.
|
|
112 */
|
|
113 #ifndef SYS_VIMRC_FILE
|
|
114 # define SYS_VIMRC_FILE "$VIM/vimrc"
|
|
115 #endif
|
|
116 #ifndef SYS_GVIMRC_FILE
|
|
117 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
|
|
118 #endif
|
|
119 #ifndef SYS_MENU_FILE
|
|
120 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
|
|
121 #endif
|
|
122 #ifndef DFLT_HELPFILE
|
|
123 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
|
|
124 #endif
|
|
125 #ifndef FILETYPE_FILE
|
|
126 # define FILETYPE_FILE "filetype.vim"
|
|
127 #endif
|
|
128 #ifndef FTPLUGIN_FILE
|
|
129 # define FTPLUGIN_FILE "ftplugin.vim"
|
|
130 #endif
|
|
131 #ifndef INDENT_FILE
|
|
132 # define INDENT_FILE "indent.vim"
|
|
133 #endif
|
|
134 #ifndef FTOFF_FILE
|
|
135 # define FTOFF_FILE "ftoff.vim"
|
|
136 #endif
|
|
137 #ifndef FTPLUGOF_FILE
|
|
138 # define FTPLUGOF_FILE "ftplugof.vim"
|
|
139 #endif
|
|
140 #ifndef INDOFF_FILE
|
|
141 # define INDOFF_FILE "indoff.vim"
|
|
142 #endif
|
|
143 #ifndef SYNTAX_FNAME
|
|
144 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
|
|
145 #endif
|
|
146
|
|
147 #ifndef USR_EXRC_FILE
|
|
148 # define USR_EXRC_FILE "s:.exrc"
|
|
149 #endif
|
|
150 #ifndef USR_EXRC_FILE2
|
|
151 # define USR_EXRC_FILE2 "home:.exrc"
|
|
152 #endif
|
|
153
|
|
154 #ifndef USR_VIMRC_FILE
|
|
155 # define USR_VIMRC_FILE "s:.vimrc"
|
|
156 #endif
|
|
157 #ifndef USR_VIMRC_FILE2
|
|
158 # define USR_VIMRC_FILE2 "home:.vimrc"
|
|
159 #endif
|
|
160 #ifndef USR_VIMRC_FILE3
|
|
161 # define USR_VIMRC_FILE3 "$VIM/.vimrc"
|
|
162 #endif
|
|
163 #ifndef EVIM_FILE
|
|
164 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
|
|
165 #endif
|
|
166
|
|
167 #ifndef USR_GVIMRC_FILE
|
|
168 # define USR_GVIMRC_FILE "s:.gvimrc"
|
|
169 #endif
|
|
170 #ifndef USR_GVIMRC_FILE2
|
|
171 # define USR_GVIMRC_FILE2 "home:.gvimrc"
|
|
172 #endif
|
|
173 #ifndef USR_GVIMRC_FILE3
|
|
174 # define USR_GVIMRC_FILE3 "$VIM/.gvimrc"
|
|
175 #endif
|
|
176
|
|
177 #ifdef FEAT_VIMINFO
|
1030
|
178 # ifndef VIMINFO_FILE
|
|
179 # define VIMINFO_FILE "s:.viminfo"
|
|
180 # endif
|
7
|
181 #endif /* FEAT_VIMINFO */
|
|
182
|
|
183 #ifndef EXRC_FILE
|
|
184 # define EXRC_FILE ".exrc"
|
|
185 #endif
|
|
186
|
|
187 #ifndef VIMRC_FILE
|
|
188 # define VIMRC_FILE ".vimrc"
|
|
189 #endif
|
|
190
|
|
191 #ifndef GVIMRC_FILE
|
|
192 # define GVIMRC_FILE ".gvimrc"
|
|
193 #endif
|
|
194
|
|
195 #ifndef DFLT_BDIR
|
|
196 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */
|
|
197 #endif
|
|
198
|
|
199 #ifndef DFLT_DIR
|
|
200 # define DFLT_DIR ".,t:" /* default for 'directory' */
|
|
201 #endif
|
|
202
|
|
203 #ifndef DFLT_VDIR
|
|
204 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
|
|
205 #endif
|
|
206
|
|
207 #ifndef DFLT_MAXMEM
|
|
208 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */
|
|
209 #endif
|
|
210 #ifndef DFLT_MAXMEMTOT
|
|
211 # define DFLT_MAXMEMTOT 0 /* decide in set_init */
|
|
212 #endif
|
|
213
|
|
214 #if defined(SASC)
|
|
215 int setenv(const char *, const char *);
|
|
216 #endif
|
|
217
|
|
218 #define mch_remove(x) remove((char *)(x))
|
|
219 #define mch_rename(src, dst) rename(src, dst)
|
|
220 #define mch_chdir(s) chdir(s)
|
|
221 #define vim_mkdir(x, y) mch_mkdir(x)
|