Merge branch 'vim' into feat/code-check
[vim_extended.git] / src / os_amiga.h
blob0395bceb6f906659e68e96848ddc3f254e1c31cb
1 /* vi:set ts=8 sts=4 sw=4:
3 * VIM - Vi IMproved by Bram Moolenaar
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 */
9 /*
10 * Amiga Machine-dependent things
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
19 #ifndef HAVE_CONFIG_H
20 # if defined(AZTEC_C) || defined(__amigaos4__)
21 # define HAVE_STAT_H
22 # endif
23 # ifdef __amigaos4__
24 # define HAVE_STDARG_H
25 # endif
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
40 #endif /* HAVE_CONFIG_H */
42 #ifndef DFLT_ERRORFILE
43 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */
44 #endif
46 #ifndef DFLT_RUNTIMEPATH
47 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
48 #endif
50 #ifndef BASENAMELEN
51 # define BASENAMELEN 26 /* Amiga */
52 #endif
54 #ifndef TEMPNAME
55 # define TEMPNAME "t:v?XXXXXX"
56 # define TEMPNAMELEN 12
57 #endif
59 #include <exec/types.h>
60 #include <libraries/dos.h>
61 #include <libraries/dosextens.h>
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
70 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
73 * Manx doesn't have off_t, define it here.
75 #ifdef AZTEC_C
76 typedef long off_t;
77 #endif
79 #ifdef LATTICE
80 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */
81 #endif
83 #ifdef __GNUC__
84 # include <sys/stat.h>
85 # include <unistd.h>
86 #endif
89 * arpbase.h must be included before functions.h
91 #ifdef FEAT_ARP
92 # include <libraries/arpbase.h>
93 #endif
96 * This won't be needed if you have a version of Lattice 4.01 without broken
97 * break signal handling.
99 #include <signal.h>
102 * Names for the EXRC, HELP and temporary files.
103 * Some of these may have been defined in the makefile.
105 #ifndef SYS_VIMRC_FILE
106 # define SYS_VIMRC_FILE "$VIM/vimrc"
107 #endif
108 #ifndef SYS_GVIMRC_FILE
109 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
110 #endif
111 #ifndef SYS_MENU_FILE
112 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
113 #endif
114 #ifndef DFLT_HELPFILE
115 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
116 #endif
117 #ifndef FILETYPE_FILE
118 # define FILETYPE_FILE "filetype.vim"
119 #endif
120 #ifndef FTPLUGIN_FILE
121 # define FTPLUGIN_FILE "ftplugin.vim"
122 #endif
123 #ifndef INDENT_FILE
124 # define INDENT_FILE "indent.vim"
125 #endif
126 #ifndef FTOFF_FILE
127 # define FTOFF_FILE "ftoff.vim"
128 #endif
129 #ifndef FTPLUGOF_FILE
130 # define FTPLUGOF_FILE "ftplugof.vim"
131 #endif
132 #ifndef INDOFF_FILE
133 # define INDOFF_FILE "indoff.vim"
134 #endif
135 #ifndef SYNTAX_FNAME
136 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
137 #endif
139 #ifndef USR_EXRC_FILE
140 # define USR_EXRC_FILE "s:.exrc"
141 #endif
142 #ifndef USR_EXRC_FILE2
143 # define USR_EXRC_FILE2 "home:.exrc"
144 #endif
146 #ifndef USR_VIMRC_FILE
147 # define USR_VIMRC_FILE "s:.vimrc"
148 #endif
149 #ifndef USR_VIMRC_FILE2
150 # define USR_VIMRC_FILE2 "home:.vimrc"
151 #endif
152 #ifndef USR_VIMRC_FILE3
153 # define USR_VIMRC_FILE3 "$VIM/.vimrc"
154 #endif
155 #ifndef EVIM_FILE
156 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
157 #endif
159 #ifndef USR_GVIMRC_FILE
160 # define USR_GVIMRC_FILE "s:.gvimrc"
161 #endif
162 #ifndef USR_GVIMRC_FILE2
163 # define USR_GVIMRC_FILE2 "home:.gvimrc"
164 #endif
165 #ifndef USR_GVIMRC_FILE3
166 # define USR_GVIMRC_FILE3 "$VIM/.gvimrc"
167 #endif
169 #ifdef FEAT_VIMINFO
170 # ifndef VIMINFO_FILE
171 # define VIMINFO_FILE "s:.viminfo"
172 # endif
173 #endif /* FEAT_VIMINFO */
175 #ifndef EXRC_FILE
176 # define EXRC_FILE ".exrc"
177 #endif
179 #ifndef VIMRC_FILE
180 # define VIMRC_FILE ".vimrc"
181 #endif
183 #ifndef GVIMRC_FILE
184 # define GVIMRC_FILE ".gvimrc"
185 #endif
187 #ifndef DFLT_BDIR
188 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */
189 #endif
191 #ifndef DFLT_DIR
192 # define DFLT_DIR ".,t:" /* default for 'directory' */
193 #endif
195 #ifndef DFLT_VDIR
196 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
197 #endif
199 #ifndef DFLT_MAXMEM
200 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */
201 #endif
202 #ifndef DFLT_MAXMEMTOT
203 # define DFLT_MAXMEMTOT 0 /* decide in set_init */
204 #endif
206 #if defined(SASC)
207 int setenv(const char *, const char *);
208 #endif
210 #define mch_remove(x) remove((char *)(x))
211 #define mch_rename(src, dst) rename(src, dst)
212 #define mch_chdir(s) chdir(s)
213 #define vim_mkdir(x, y) mch_mkdir(x)