blob: 06e4d1cb9b300e0c3d3c326f0df346a0622e9923 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* 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
20# ifdef AZTEC_C
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
37#define DFLT_ERRORFILE "AztecC.Err"
38#define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
39
40#define BASENAMELEN 26 /* Amiga */
41
42#define TEMPNAME "t:v?XXXXXX"
43#define TEMPNAMELEN 12
44
45#endif /* HAVE_CONFIG_H */
46
47#include <exec/types.h>
48#include <libraries/dos.h>
49#include <libraries/dosextens.h>
50
51/* Currently, all Amiga compilers except AZTEC C have these... */
52#ifndef AZTEC_C
53# include <proto/exec.h>
54# include <proto/dos.h>
55# include <proto/intuition.h>
56#endif
57
58#define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
59
60/*
61 * Manx doesn't have off_t, define it here.
62 */
63#ifdef AZTEC_C
64typedef long off_t;
65#endif
66
67#ifdef LATTICE
68# define USE_TMPNAM /* use tmpnam() instead of mktemp() */
69#endif
70
71#ifdef __GNUC__
72# include <sys/stat.h>
73# include <unistd.h>
74#endif
75
76/*
77 * arpbase.h must be included before functions.h
78 */
79#ifdef FEAT_ARP
80# include <libraries/arpbase.h>
81#endif
82
83/*
84 * This won't be needed if you have a version of Lattice 4.01 without broken
85 * break signal handling.
86 */
87#include <signal.h>
88
89/*
90 * Names for the EXRC, HELP and temporary files.
91 * Some of these may have been defined in the makefile.
92 */
93#ifndef SYS_VIMRC_FILE
94# define SYS_VIMRC_FILE "$VIM/vimrc"
95#endif
96#ifndef SYS_GVIMRC_FILE
97# define SYS_GVIMRC_FILE "$VIM/gvimrc"
98#endif
99#ifndef SYS_MENU_FILE
100# define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
101#endif
102#ifndef DFLT_HELPFILE
103# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
104#endif
105#ifndef FILETYPE_FILE
106# define FILETYPE_FILE "filetype.vim"
107#endif
108#ifndef FTPLUGIN_FILE
109# define FTPLUGIN_FILE "ftplugin.vim"
110#endif
111#ifndef INDENT_FILE
112# define INDENT_FILE "indent.vim"
113#endif
114#ifndef FTOFF_FILE
115# define FTOFF_FILE "ftoff.vim"
116#endif
117#ifndef FTPLUGOF_FILE
118# define FTPLUGOF_FILE "ftplugof.vim"
119#endif
120#ifndef INDOFF_FILE
121# define INDOFF_FILE "indoff.vim"
122#endif
123#ifndef SYNTAX_FNAME
124# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
125#endif
126
127#ifndef USR_EXRC_FILE
128# define USR_EXRC_FILE "s:.exrc"
129#endif
130#ifndef USR_EXRC_FILE2
131# define USR_EXRC_FILE2 "home:.exrc"
132#endif
133
134#ifndef USR_VIMRC_FILE
135# define USR_VIMRC_FILE "s:.vimrc"
136#endif
137#ifndef USR_VIMRC_FILE2
138# define USR_VIMRC_FILE2 "home:.vimrc"
139#endif
140#ifndef USR_VIMRC_FILE3
141# define USR_VIMRC_FILE3 "$VIM/.vimrc"
142#endif
143#ifndef EVIM_FILE
144# define EVIM_FILE "$VIMRUNTIME/evim.vim"
145#endif
146
147#ifndef USR_GVIMRC_FILE
148# define USR_GVIMRC_FILE "s:.gvimrc"
149#endif
150#ifndef USR_GVIMRC_FILE2
151# define USR_GVIMRC_FILE2 "home:.gvimrc"
152#endif
153#ifndef USR_GVIMRC_FILE3
154# define USR_GVIMRC_FILE3 "$VIM/.gvimrc"
155#endif
156
157#ifdef FEAT_VIMINFO
158#ifndef VIMINFO_FILE
159# define VIMINFO_FILE "s:.viminfo"
160#endif
161#endif /* FEAT_VIMINFO */
162
163#ifndef EXRC_FILE
164# define EXRC_FILE ".exrc"
165#endif
166
167#ifndef VIMRC_FILE
168# define VIMRC_FILE ".vimrc"
169#endif
170
171#ifndef GVIMRC_FILE
172# define GVIMRC_FILE ".gvimrc"
173#endif
174
175#ifndef DFLT_BDIR
176# define DFLT_BDIR ".,t:" /* default for 'backupdir' */
177#endif
178
179#ifndef DFLT_DIR
180# define DFLT_DIR ".,t:" /* default for 'directory' */
181#endif
182
183#ifndef DFLT_VDIR
184# define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */
185#endif
186
187#ifndef DFLT_MAXMEM
188# define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */
189#endif
190#ifndef DFLT_MAXMEMTOT
191# define DFLT_MAXMEMTOT 0 /* decide in set_init */
192#endif
193
194#if defined(SASC)
195int setenv(const char *, const char *);
196#endif
197
198#define mch_remove(x) remove((char *)(x))
199#define mch_rename(src, dst) rename(src, dst)
200#define mch_chdir(s) chdir(s)
201#define vim_mkdir(x, y) mch_mkdir(x)