(Button Types): For define-button-type, clarify type of NAME.
[emacs.git] / src / s / msdos.h
blob9b0b8b0449be1a3ce15e1f476c12964f7b20be04
1 /* System description file for MS-DOS
3 Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004,
4 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* Note: lots of stuff here was taken from s-msdos.h in demacs. */
27 * Define symbols to identify the version of Unix this is.
28 * Define all the symbols that apply correctly.
31 /* #define UNIPLUS */
32 /* #define USG5 */
33 /* #define USG */
34 /* #define HPUX */
35 /* #define UMAX */
36 /* #define BSD4_1 */
37 /* #define BSD4_2 */
38 /* #define BSD4_3 */
39 /* #define BSD_SYSTEM */
40 /* #define VMS */
41 #ifndef MSDOS
42 #define MSDOS
43 #endif
45 #ifdef __GO32__
46 #ifndef __DJGPP__
47 #define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */
48 #endif
49 #else
50 You lose; /* Emacs for DOS must be compiled with DJGPP */
51 #endif
53 #define DOS_NT /* MSDOS or WINDOWSNT */
54 #undef BSD_SYSTEM
55 #undef VMS
57 /* SYSTEM_TYPE should indicate the kind of system you are using.
58 It sets the Lisp variable system-type. */
60 #define SYSTEM_TYPE "ms-dos"
62 #define SYMS_SYSTEM syms_of_dosfns();syms_of_msdos();syms_of_win16select()
64 /* NOMULTIPLEJOBS should be defined if your system's shell
65 does not have "job control" (the ability to stop a program,
66 run some other program, then continue the first one). */
68 #define NOMULTIPLEJOBS
70 /* Emacs can read input using SIGIO and buffering characters itself,
71 or using CBREAK mode and making C-g cause SIGINT.
72 The choice is controlled by the variable interrupt_input.
73 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
75 SIGIO can be used only on systems that implement it (4.2 and 4.3).
76 CBREAK mode has two disadvantages
77 1) At least in 4.2, it is impossible to handle the Meta key properly.
78 I hear that in system V this problem does not exist.
79 2) Control-G causes output to be discarded.
80 I do not know whether this can be fixed in system V.
82 Another method of doing input is planned but not implemented.
83 It would have Emacs fork off a separate process
84 to read the input and send it to the true Emacs process
85 through a pipe.
88 /* #define INTERRUPT_INPUT */
90 /* Letter to use in finding device name of first pty,
91 if system supports pty's. 'a' means it is /dev/ptya0 */
93 /* #define FIRST_PTY_LETTER 'a' */
96 * Define HAVE_PTYS if the system supports pty devices.
99 /* #define HAVE_PTYS */
102 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
103 * The 4.2 opendir, etc., library functions.
106 /* #define NONSYSTEM_DIR_LIBRARY */
108 #define SYSV_SYSTEM_DIR
110 /* Define this symbol if your system has the functions bcopy, etc. */
112 #define BSTRING
114 /* Define this is the compiler understands `volatile'. */
115 #define HAVE_VOLATILE
118 /* subprocesses should be defined if you want to
119 have code for asynchronous subprocesses
120 (as used in M-x compile and M-x shell).
121 This is generally OS dependent, and not supported
122 under most USG systems. */
124 #undef subprocesses
126 /* If your system uses COFF (Common Object File Format) then define the
127 preprocessor symbol "COFF". */
129 #define COFF
131 /* define MAIL_USE_FLOCK if the mailer uses flock
132 to interlock access to /usr/spool/mail/$USER.
133 The alternative is that a lock file named
134 /usr/spool/mail/$USER.lock. */
136 /* #define MAIL_USE_FLOCK */
138 /* Define CLASH_DETECTION if you want lock files to be written
139 so that Emacs can tell instantly when you try to modify
140 a file that someone else has modified in his Emacs. */
142 /* #define CLASH_DETECTION */
144 /* Here, on a separate page, add any special hacks needed
145 to make Emacs work on this system. For example,
146 you might define certain system call names that don't
147 exist on your system, or that do different things on
148 your system and must be used only through an encapsulation
149 (Which you should place, by convention, in sysdep.c). */
151 /* Avoid incompatibilities between gmalloc.c and system header files
152 in how to declare valloc. */
153 #define GMALLOC_INHIBIT_VALLOC
155 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
156 but they will run slower. */
158 #define _setjmp setjmp
159 #define _longjmp longjmp
161 #if __DJGPP__ < 2
163 #define NO_MODE_T
165 /* New chdir () routine.
166 DJGPP v2.0 and later doesn't need it because its chdir() does
167 set the drive itself. */
168 #ifdef chdir
169 #undef chdir
170 #endif
171 #define chdir sys_chdir
173 #define LIBS_SYSTEM -lpc /* isn't required in DJGPP v2.0, either */
175 #endif /* __DJGPP__ < 2 */
177 #if __DJGPP__ > 1
179 #define DATA_START (&etext + 1)
180 #define TEXT_START &start
181 #define TEXT_END &etext
183 #define _NAIVE_DOS_REGS
185 #else /* not __DJGPP__ > 1 */
187 /* This somehow needs to be defined even though we use COFF. */
188 #define TEXT_START -1
190 #endif /* not __DJGPP__ > 1 */
192 #define ORDINARY_LINK
194 /* command.com does not understand `...` so we define this. */
195 #define LIB_GCC -Lgcc
196 #define DONT_NEED_ENVIRON
197 #define SEPCHAR ';'
199 #define NULL_DEVICE "nul"
201 #if __DJGPP__ < 2
202 #define O_RDONLY 0x0001
203 #define O_WRONLY 0x0002
204 #define O_RDWR 0x0004
205 #define O_CREAT 0x0100
206 #define O_TRUNC 0x0200
207 #define O_EXCL 0x0400
208 #define O_APPEND 0x0800
209 #define O_TEXT 0x4000
210 #define O_BINARY 0x8000
211 #define NO_MATHERR
212 #endif
214 #define HAVE_INVERSE_HYPERBOLIC
215 #define FLOAT_CHECK_DOMAIN
217 /* When $TERM is "internal" then this is substituted: */
218 #define INTERNAL_TERMINAL "pc|bios|IBM PC with colour display:\
219 :co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\
220 :se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>:\
221 :AB=<BG %d>:AF=<FG %d>:op=<DefC>:"
223 /* Define this to a function (Fdowncase, Fupcase) if your file system
224 likes that */
225 #define FILE_SYSTEM_CASE Fmsdos_downcase_filename
227 /* Define this to be the separator between devices and paths */
228 #define DEVICE_SEP ':'
230 /* We'll support either convention on MSDOG. */
231 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
232 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
234 /* Call init_gettimeofday when TZ changes. */
235 #if __DJGPP__ < 2
236 #define LOCALTIME_CACHE
237 #define tzset init_gettimeofday
238 #endif
240 /* bcopy under djgpp is quite safe */
241 #define GAP_USE_BCOPY
242 #define BCOPY_UPWARD_SAFE 1
243 #define BCOPY_DOWNWARD_SAFE 1
245 /* Mode line description of a buffer's type. */
246 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
248 /* Do we have POSIX signals? */
249 #if __DJGPP__ > 1
250 #define POSIX_SIGNALS
251 #endif
253 /* We have (the code to control) a mouse. */
254 #define HAVE_MOUSE
256 /* We canuse mouse menus. */
257 #define HAVE_MENUS
259 /* We have support for faces. */
260 #define HAVE_FACES
262 /* Define one of these for easier conditionals. */
263 #ifdef HAVE_X_WINDOWS
264 /* We need a little extra space, see ../../lisp/loadup.el */
265 #define SYSTEM_PURESIZE_EXTRA 15000
266 #define LIBX11_SYSTEM -lxext -lsys
267 #else
268 /* We need a little extra space, see ../../lisp/loadup.el */
269 #define SYSTEM_PURESIZE_EXTRA 50000
270 #endif
272 /* Tell the garbage collector that setjmp is known to save all
273 registers relevant for conservative garbage collection in the
274 jmp_buf. */
276 #define GC_SETJMP_WORKS 1
277 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
279 /* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0
280 (do not change this comment) */