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.
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
20 # if defined(AZTEC_C) || defined(__amigaos4__)
24 # define HAVE_STDARG_H
26 # define HAVE_STDLIB_H
27 # define HAVE_STRING_H
31 # define HAVE_STRNICMP
32 # define HAVE_STRFTIME /* guessed */
36 # if defined(__DATE__) && defined(__TIME__)
37 # define HAVE_DATE_TIME
40 #endif /* HAVE_CONFIG_H */
42 #ifndef DFLT_ERRORFILE
43 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */
46 #ifndef DFLT_RUNTIMEPATH
47 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
51 # define BASENAMELEN 26 /* Amiga */
55 # define TEMPNAME "t:v?XXXXXX"
56 # define TEMPNAMELEN 12
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... */
65 # include <proto/exec.h>
66 # include <proto/dos.h>
67 # include <proto/intuition.h>
70 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
73 * Manx doesn't have off_t, define it here.
80 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */
84 # include <sys/stat.h>
89 * arpbase.h must be included before functions.h
92 # include <libraries/arpbase.h>
96 * This won't be needed if you have a version of Lattice 4.01 without broken
97 * break signal handling.
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"
108 #ifndef SYS_GVIMRC_FILE
109 # define SYS_GVIMRC_FILE "$VIM/gvimrc"
111 #ifndef SYS_MENU_FILE
112 # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
114 #ifndef DFLT_HELPFILE
115 # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
117 #ifndef FILETYPE_FILE
118 # define FILETYPE_FILE "filetype.vim"
120 #ifndef FTPLUGIN_FILE
121 # define FTPLUGIN_FILE "ftplugin.vim"
124 # define INDENT_FILE "indent.vim"
127 # define FTOFF_FILE "ftoff.vim"
129 #ifndef FTPLUGOF_FILE
130 # define FTPLUGOF_FILE "ftplugof.vim"
133 # define INDOFF_FILE "indoff.vim"
136 # define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
139 #ifndef USR_EXRC_FILE
140 # define USR_EXRC_FILE "s:.exrc"
142 #ifndef USR_EXRC_FILE2
143 # define USR_EXRC_FILE2 "home:.exrc"
146 #ifndef USR_VIMRC_FILE
147 # define USR_VIMRC_FILE "s:.vimrc"
149 #ifndef USR_VIMRC_FILE2
150 # define USR_VIMRC_FILE2 "home:.vimrc"
152 #ifndef USR_VIMRC_FILE3
153 # define USR_VIMRC_FILE3 "$VIM/.vimrc"
156 # define EVIM_FILE "$VIMRUNTIME/evim.vim"
159 #ifndef USR_GVIMRC_FILE
160 # define USR_GVIMRC_FILE "s:.gvimrc"
162 #ifndef USR_GVIMRC_FILE2
163 # define USR_GVIMRC_FILE2 "home:.gvimrc"
165 #ifndef USR_GVIMRC_FILE3
166 # define USR_GVIMRC_FILE3 "$VIM/.gvimrc"
170 # ifndef VIMINFO_FILE
171 # define VIMINFO_FILE "s:.viminfo"
173 #endif /* FEAT_VIMINFO */
176 # define EXRC_FILE ".exrc"
180 # define VIMRC_FILE ".vimrc"
184 # define GVIMRC_FILE ".gvimrc"
188 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */
192 # define DFLT_DIR ".,t:" /* default for 'directory' */
196 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
200 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */
202 #ifndef DFLT_MAXMEMTOT
203 # define DFLT_MAXMEMTOT 0 /* decide in set_init */
207 int setenv(const char *, const char *);
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)