Merge branch 'feat/tagfunc'
[vim_extended.git] / src / os_riscos.h
blob4c3f35c9e2a8987791105be7734734c5ec294888
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 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <sys/ioctl.h>
12 #include <termios.h>
13 #include <stdlib.h>
14 #include <unixlib/local.h>
15 #include <errno.h>
16 #include <fcntl.h>
18 #define CASE_INSENSITIVE_FILENAME
19 #define FEAT_MODIFY_FNAME
20 #define FEAT_OSFILETYPE
21 #define DFLT_OFT "Text"
22 #define USE_TERM_CONSOLE
23 #define HAVE_AVAIL_MEM
25 /* Longer filenames now accessible to all */
26 #ifndef BASENAMELEN
27 # define BASENAMELEN 64 /* Same length as unzip */
28 #endif
30 #ifndef TEMNAME
31 # define TEMPNAME "<Wimp$ScrapDir>.v?XXXXXX"
32 # define TEMPNAMELEN 25
33 #endif
35 #ifndef DFLT_HELPFILE
36 # define DFLT_HELPFILE "Vim:doc.help"
37 #endif
39 #ifndef DFLT_BDIR
40 # define DFLT_BDIR ".,<Wimp$ScrapDir>." /* default for 'backupdir' */
41 #endif
43 /* Paths to try putting swap file in. */
44 #ifndef DFLT_DIR
45 # define DFLT_DIR "<Wimp$ScrapDir>.,." /* default for 'directory' */
46 #endif
48 #ifndef DFLT_UDIR
49 # define DFLT_UDIR "Choices:vimfiles/undo" /* default for 'undodir' */
50 #endif
52 #ifndef DFLT_VDIR
53 # define DFLT_VDIR "Choices:Vim.view" /* default for 'viewdir' */
54 #endif
56 #ifndef TERMCAPFILE
57 # define TERMCAPFILE "Vim:TermCap"
58 #endif
59 #define HAVE_TGETENT
61 #ifndef SYNTAX_FNAME
62 # define SYNTAX_FNAME "Vim:Syntax.%s"
63 #endif
65 #ifndef EVIM_FILE
66 # define EVIM_FILE "Vim:Evim"
67 #endif
69 #define FEAT_VIMINFO
71 #ifndef VIMINFO_FILE
72 # define VIMINFO_FILE "<Choices$Write>.Vim.VimInfo"
73 #endif
74 #ifndef VIMINFO_FILE2
75 # define VIMINFO_FILE2 "Choices:Vim.VimInfo"
76 #endif
78 #ifndef VIMRC_FILE
79 # define VIMRC_FILE "/vimrc"
80 #endif
81 #ifndef EXRC_FILE
82 # define EXRC_FILE "/exrc"
83 #endif
84 #ifndef GVIMRC_FILE
85 # define GVIMRC_FILE "/gvimrc"
86 #endif
87 #ifndef USR_VIMRC_FILE
88 # define USR_VIMRC_FILE "Vim:Evim"
89 #endif
90 #ifndef SESSION_FILE
91 # define SESSION_FILE "/Session.vim"
92 #endif
93 #ifndef USR_VIMRC_FILE
94 # define USR_VIMRC_FILE "Choices:Vim.VimRC"
95 #endif
96 #ifndef USR_GVIMRC_FILE
97 # define USR_GVIMRC_FILE "Choices:Vim.GVimRC"
98 #endif
99 #ifndef USR_EXRC_FILE
100 # define USR_EXRC_FILE "Choices:Vim.ExRC"
101 #endif
102 #ifndef SYS_VIMRC_FILE
103 # define SYS_VIMRC_FILE "Vim:VimRC"
104 #endif
105 #ifndef SYS_GVIMRC_FILE
106 # define SYS_GVIMRC_FILE "Vim:GVimRC"
107 #endif
108 #ifndef SYS_MENU_FILE
109 # define SYS_MENU_FILE "Vim:Menu"
110 #endif
111 #ifndef SYS_OPTWIN_FILE
112 # define SYS_OPTWIN_FILE "Vim:Optwin"
113 #endif
114 #ifndef FILETYPE_FILE
115 # define FILETYPE_FILE "Vim:Filetype"
116 #endif
117 #ifndef FTPLUGIN_FILE
118 # define FTPLUGIN_FILE "Vim:Ftplugin/vim"
119 #endif
120 #ifndef INDENT_FILE
121 # define INDENT_FILE "Vim:Indent/vim"
122 #endif
123 #ifndef FTOFF_FILE
124 # define FTOFF_FILE "Vim:Ftoff"
125 #endif
126 #ifndef FTPLUGOF_FILE
127 # define FTPLUGOF_FILE "Vim:Ftplugof"
128 #endif
129 #ifndef INDOFF_FILE
130 # define INDOFF_FILE "Vim:Indoff"
131 #endif
133 #define DFLT_ERRORFILE "errors/vim"
134 #define DFLT_RUNTIMEPATH "Choices:Vim,Vim:,Choices:Vim.after"
137 * RISC PCs have plenty of memory, use large buffers
139 #define CMDBUFFSIZE 1024 /* size of the command processing buffer */
140 #define MAXPATHL 256 /* paths are always quite short though */
142 #ifndef DFLT_MAXMEM
143 # define DFLT_MAXMEM (5*1024) /* use up to 5 Mbyte for a buffer */
144 #endif
146 #ifndef DFLT_MAXMEMTOT
147 # define DFLT_MAXMEMTOT (10*1024) /* use up to 10 Mbyte for Vim */
148 #endif
150 #ifdef HAVE_SIGSET
151 # define signal sigset
152 #endif
154 #define n_flag (1<<31)
155 #define z_flag (1<<30)
156 #define c_flag (1<<29)
157 #define v_flag (1<<28)
159 /* These take r0-r7 as inputs, returns r0-r7 in global variables. */
160 void swi(int swinum, ...); /* Handles errors itself */
161 int xswi(int swinum, ...); /* Returns errors using v flag */
162 extern int r0, r1, r2, r3, r4, r5, r6, r7; /* For return values */
164 #include <kernel.h>
165 #include <swis.h>
167 #define mch_memmove(to, from, len) memmove((char *)(to), (char *)(from), len)
168 #define mch_rename(src, dst) rename(src, dst)
169 #define mch_getenv(x) (char_u *)getenv((char *)x)
170 #define mch_setenv(name, val, x) setenv(name, val, x)