Mercurial > vim
annotate src/os_amiga.h @ 8918:e838dc987c93
Added tag v7.4.1745 for changeset d07e51166f0865aa1334d0f3c744fb5ba9414888
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Apr 2016 21:00:06 +0200 |
parents | cfed0e9f0ca2 |
children | 284b4eb307fc |
rev | line source |
---|---|
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 | |
23 # define HAVE_STDLIB_H | |
24 # define HAVE_STRING_H | |
25 # define HAVE_FCNTL_H | |
26 # define HAVE_STRCSPN | |
27 # define HAVE_STRICMP | |
28 # define HAVE_STRNICMP | |
29 # define HAVE_STRFTIME /* guessed */ | |
30 # define HAVE_SETENV | |
31 # define HAVE_MEMSET | |
32 # define HAVE_QSORT | |
33 # if defined(__DATE__) && defined(__TIME__) | |
34 # define HAVE_DATE_TIME | |
35 # endif | |
36 | |
1030 | 37 #endif /* HAVE_CONFIG_H */ |
7 | 38 |
1030 | 39 #ifndef DFLT_ERRORFILE |
40 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */ | |
41 #endif | |
7 | 42 |
1030 | 43 #ifndef DFLT_RUNTIMEPATH |
44 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after" | |
45 #endif | |
7 | 46 |
1030 | 47 #ifndef BASENAMELEN |
48 # define BASENAMELEN 26 /* Amiga */ | |
49 #endif | |
50 | |
51 #ifndef TEMPNAME | |
52 # define TEMPNAME "t:v?XXXXXX" | |
53 # define TEMPNAMELEN 12 | |
54 #endif | |
7 | 55 |
3927 | 56 /* cproto fails on missing include files */ |
57 #ifndef PROTO | |
58 | |
7 | 59 #include <exec/types.h> |
60 #include <libraries/dos.h> | |
61 #include <libraries/dosextens.h> | |
62 | |
63 /* Currently, all Amiga compilers except AZTEC C have these... */ | |
64 #ifndef AZTEC_C | |
65 # include <proto/exec.h> | |
66 # include <proto/dos.h> | |
67 # include <proto/intuition.h> | |
68 #endif | |
69 | |
3927 | 70 #endif /* PROTO */ |
71 | |
7 | 72 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */ |
73 | |
74 /* | |
75 * Manx doesn't have off_t, define it here. | |
76 */ | |
77 #ifdef AZTEC_C | |
78 typedef long off_t; | |
79 #endif | |
80 | |
81 #ifdef LATTICE | |
82 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */ | |
83 #endif | |
84 | |
85 #ifdef __GNUC__ | |
86 # include <sys/stat.h> | |
87 # include <unistd.h> | |
88 #endif | |
89 | |
3927 | 90 #ifndef PROTO |
7 | 91 /* |
92 * arpbase.h must be included before functions.h | |
93 */ | |
94 #ifdef FEAT_ARP | |
95 # include <libraries/arpbase.h> | |
96 #endif | |
97 | |
3927 | 98 #endif /* PROTO */ |
99 | |
7 | 100 /* |
101 * This won't be needed if you have a version of Lattice 4.01 without broken | |
102 * break signal handling. | |
103 */ | |
104 #include <signal.h> | |
105 | |
106 /* | |
107 * Names for the EXRC, HELP and temporary files. | |
108 * Some of these may have been defined in the makefile. | |
109 */ | |
110 #ifndef SYS_VIMRC_FILE | |
111 # define SYS_VIMRC_FILE "$VIM/vimrc" | |
112 #endif | |
113 #ifndef SYS_GVIMRC_FILE | |
114 # define SYS_GVIMRC_FILE "$VIM/gvimrc" | |
115 #endif | |
116 #ifndef SYS_MENU_FILE | |
117 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim" | |
118 #endif | |
119 #ifndef DFLT_HELPFILE | |
120 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt" | |
121 #endif | |
122 #ifndef FILETYPE_FILE | |
123 # define FILETYPE_FILE "filetype.vim" | |
124 #endif | |
125 #ifndef FTPLUGIN_FILE | |
126 # define FTPLUGIN_FILE "ftplugin.vim" | |
127 #endif | |
128 #ifndef INDENT_FILE | |
129 # define INDENT_FILE "indent.vim" | |
130 #endif | |
131 #ifndef FTOFF_FILE | |
132 # define FTOFF_FILE "ftoff.vim" | |
133 #endif | |
134 #ifndef FTPLUGOF_FILE | |
135 # define FTPLUGOF_FILE "ftplugof.vim" | |
136 #endif | |
137 #ifndef INDOFF_FILE | |
138 # define INDOFF_FILE "indoff.vim" | |
139 #endif | |
140 #ifndef SYNTAX_FNAME | |
141 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim" | |
142 #endif | |
143 | |
144 #ifndef USR_EXRC_FILE | |
145 # define USR_EXRC_FILE "s:.exrc" | |
146 #endif | |
147 #ifndef USR_EXRC_FILE2 | |
148 # define USR_EXRC_FILE2 "home:.exrc" | |
149 #endif | |
150 | |
151 #ifndef USR_VIMRC_FILE | |
152 # define USR_VIMRC_FILE "s:.vimrc" | |
153 #endif | |
154 #ifndef USR_VIMRC_FILE2 | |
155 # define USR_VIMRC_FILE2 "home:.vimrc" | |
156 #endif | |
157 #ifndef USR_VIMRC_FILE3 | |
4863
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
158 # define USR_VIMRC_FILE3 "home:vimfiles:vimrc" |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
159 #endif |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
160 #ifndef USR_VIMRC_FILE4 |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
161 # define USR_VIMRC_FILE4 "$VIM/.vimrc" |
7 | 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 | |
4863
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
174 # define USR_GVIMRC_FILE3 "home:vimfiles:gvimrc" |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
175 #endif |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
176 #ifndef USR_GVIMRC_FILE4 |
c4d4f0fc12b9
updated for version 7.3.1178
Bram Moolenaar <bram@vim.org>
parents:
3927
diff
changeset
|
177 # define USR_GVIMRC_FILE4 "$VIM/.gvimrc" |
7 | 178 #endif |
179 | |
180 #ifdef FEAT_VIMINFO | |
1030 | 181 # ifndef VIMINFO_FILE |
182 # define VIMINFO_FILE "s:.viminfo" | |
183 # endif | |
7 | 184 #endif /* FEAT_VIMINFO */ |
185 | |
186 #ifndef EXRC_FILE | |
187 # define EXRC_FILE ".exrc" | |
188 #endif | |
189 | |
190 #ifndef VIMRC_FILE | |
191 # define VIMRC_FILE ".vimrc" | |
192 #endif | |
193 | |
194 #ifndef GVIMRC_FILE | |
195 # define GVIMRC_FILE ".gvimrc" | |
196 #endif | |
197 | |
198 #ifndef DFLT_BDIR | |
199 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */ | |
200 #endif | |
201 | |
202 #ifndef DFLT_DIR | |
203 # define DFLT_DIR ".,t:" /* default for 'directory' */ | |
204 #endif | |
205 | |
206 #ifndef DFLT_VDIR | |
207 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */ | |
208 #endif | |
209 | |
210 #ifndef DFLT_MAXMEM | |
211 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */ | |
212 #endif | |
213 #ifndef DFLT_MAXMEMTOT | |
214 # define DFLT_MAXMEMTOT 0 /* decide in set_init */ | |
215 #endif | |
216 | |
217 #if defined(SASC) | |
218 int setenv(const char *, const char *); | |
219 #endif | |
220 | |
221 #define mch_remove(x) remove((char *)(x)) | |
222 #define mch_rename(src, dst) rename(src, dst) | |
223 #define mch_chdir(s) chdir(s) | |
224 #define vim_mkdir(x, y) mch_mkdir(x) |