Mercurial > emacs
annotate src/s/ms-w32.h @ 11349:3b1d5cf74c93
(single_kboard): Renamed from kboard_locked. All refs renamed.
(struct kboard): Renamed from struct KBOARD.
Move flag fields to the end, and make them chars.
Delete the `unused' field.
(KBOARD, etc): Moved from lisp.h.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 10 Apr 1995 07:34:53 +0000 |
parents | a0f2ce3200d0 |
children | 5c486ab3c695 |
rev | line source |
---|---|
9803 | 1 /* System description file for Windows NT. |
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 2, or (at your option) | |
9 any later version. | |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
20 /* | |
21 * Define symbols to identify the version of Unix this is. | |
22 * Define all the symbols that apply correctly. | |
23 */ | |
24 | |
25 /* #define UNIPLUS */ | |
26 /* #define USG5 */ | |
27 /* #define USG */ | |
28 /* #define HPUX */ | |
29 /* #define UMAX */ | |
30 /* #define BSD4_1 */ | |
31 /* #define BSD4_2 */ | |
32 /* #define BSD4_3 */ | |
33 /* #define BSD */ | |
34 /* #define VMS */ | |
35 #ifndef WINDOWSNT | |
36 #define WINDOWSNT | |
37 #endif | |
38 #ifndef DOS_NT | |
39 #define DOS_NT /* MSDOS or WINDOWSNT */ | |
40 #endif | |
41 | |
42 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
43 It sets the Lisp variable system-type. */ | |
44 | |
45 #define SYSTEM_TYPE "windows-nt" | |
46 #define SYMS_SYSTEM syms_of_ntterm () | |
47 | |
48 #define NO_MATHERR | |
49 #define HAVE_FREXP | |
50 #define HAVE_FMOD | |
51 | |
52 /* NOMULTIPLEJOBS should be defined if your system's shell | |
53 does not have "job control" (the ability to stop a program, | |
54 run some other program, then continue the first one). */ | |
55 | |
56 /* #define NOMULTIPLEJOBS */ | |
57 | |
58 /* Emacs can read input using SIGIO and buffering characters itself, | |
59 or using CBREAK mode and making C-g cause SIGINT. | |
60 The choice is controlled by the variable interrupt_input. | |
61 | |
62 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
63 | |
64 Emacs uses the presence or absence of the SIGIO macro to indicate | |
65 whether or not signal-driven I/O is possible. It uses | |
66 INTERRUPT_INPUT to decide whether to use it by default. | |
67 | |
68 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
69 CBREAK mode has two disadvantages | |
70 1) At least in 4.2, it is impossible to handle the Meta key properly. | |
71 I hear that in system V this problem does not exist. | |
72 2) Control-G causes output to be discarded. | |
73 I do not know whether this can be fixed in system V. | |
74 | |
75 Another method of doing input is planned but not implemented. | |
76 It would have Emacs fork off a separate process | |
77 to read the input and send it to the true Emacs process | |
78 through a pipe. */ | |
79 | |
80 #define INTERRUPT_INPUT | |
81 | |
82 /* Letter to use in finding device name of first pty, | |
83 if system supports pty's. 'a' means it is /dev/ptya0 */ | |
84 | |
85 #define FIRST_PTY_LETTER 'a' | |
86 | |
87 /* | |
88 * Define HAVE_TERMIOS if the system provides POSIX-style | |
89 * functions and macros for terminal control. | |
90 * | |
91 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
92 * for terminal control. | |
93 * | |
94 * Do not define both. HAVE_TERMIOS is preferred, if it is | |
95 * supported on your system. | |
96 */ | |
97 | |
98 /* #define HAVE_TERMIOS */ | |
99 /* #define HAVE_TERMIO */ | |
100 | |
101 /* | |
102 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
103 * Look in <sys/time.h> for a timeval structure. | |
104 */ | |
105 | |
106 /* #define HAVE_TIMEVAL */ | |
107 | |
108 /* | |
109 * Define HAVE_SELECT if the system supports the `select' system call. | |
110 */ | |
111 | |
112 /* #define HAVE_SELECT */ | |
113 | |
114 /* | |
115 * Define HAVE_PTYS if the system supports pty devices. | |
116 */ | |
117 | |
118 /* #define HAVE_PTYS */ | |
119 | |
120 /* | |
121 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
122 * The 4.2 opendir, etc., library functions. | |
123 */ | |
124 | |
125 /* #define NONSYSTEM_DIR_LIBRARY */ | |
126 | |
127 /* Define this symbol if your system has the functions bcopy, etc. */ | |
128 | |
129 #define BSTRING | |
130 #define bzero(b, l) memset(b, 0, l) | |
131 #define bcopy(s, d, l) memcpy(d, s, l) | |
132 #define bcmp(a, b, l) memcmp(a, b, l) | |
133 | |
134 /* subprocesses should be defined if you want to | |
135 have code for asynchronous subprocesses | |
136 (as used in M-x compile and M-x shell). | |
137 This is generally OS dependent, and not supported | |
138 under most USG systems. */ | |
139 | |
140 #define subprocesses | |
141 | |
142 /* If your system uses COFF (Common Object File Format) then define the | |
143 preprocessor symbol "COFF". */ | |
144 | |
145 #define COFF | |
146 | |
147 /* define MAIL_USE_FLOCK if the mailer uses flock | |
148 to interlock access to /usr/spool/mail/$USER. | |
149 The alternative is that a lock file named | |
150 /usr/spool/mail/$USER.lock. */ | |
151 | |
152 /* #define MAIL_USE_FLOCK */ | |
153 | |
154 /* Define CLASH_DETECTION if you want lock files to be written | |
155 so that Emacs can tell instantly when you try to modify | |
156 a file that someone else has modified in his Emacs. */ | |
157 | |
158 /* #define CLASH_DETECTION */ | |
159 | |
160 /* Define this if your operating system declares signal handlers to | |
161 have a type other than the usual. `The usual' is `void' for ANSI C | |
162 systems (i.e. when the __STDC__ macro is defined), and `int' for | |
163 pre-ANSI systems. If you're using GCC on an older system, __STDC__ | |
164 will be defined, but the system's include files will still say that | |
165 signal returns int or whatever; in situations like that, define | |
166 this to be what the system's include files want. */ | |
167 /* #define SIGTYPE int */ | |
168 | |
169 /* If the character used to separate elements of the executable path | |
170 is not ':', #define this to be the appropriate character constant. */ | |
171 #define SEPCHAR ';' | |
172 | |
173 /* ============================================================ */ | |
174 | |
175 /* Here, add any special hacks needed | |
176 to make Emacs work on this system. For example, | |
177 you might define certain system call names that don't | |
178 exist on your system, or that do different things on | |
179 your system and must be used only through an encapsulation | |
180 (Which you should place, by convention, in sysdep.c). */ | |
181 | |
182 /* Define this to be the separator between path elements */ | |
183 #define DIRECTORY_SEP '\\' | |
184 | |
185 /* Define this to be the separator between devices and paths */ | |
186 #define DEVICE_SEP ':' | |
187 | |
188 /* We'll support either convention on NT. */ | |
189 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | |
190 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | |
191 | |
192 /* The null device on Windows NT. */ | |
193 #define NULL_DEVICE "NUL:" | |
194 #define EXEC_SUFFIXES ".exe:.com:.bat:" | |
195 | |
196 #ifndef MAXPATHLEN | |
197 #define MAXPATHLEN _MAX_PATH | |
198 #endif | |
199 | |
200 #define HAVE_DUP2 1 | |
201 #define HAVE_RENAME 1 | |
202 #define HAVE_RMDIR 1 | |
203 #define HAVE_MKDIR 1 | |
204 #define HAVE_GETHOSTNAME 1 | |
9818 | 205 #define HAVE_MOUSE 1 |
206 | |
207 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") | |
9803 | 208 |
209 /* These have to be defined because our compilers treat __STDC__ as being | |
210 defined (most of them anyway). */ | |
211 | |
212 #define access _access | |
213 #define chdir _chdir | |
214 #define chmod _chmod | |
215 #define close _close | |
216 #define creat _creat | |
217 #define dup _dup | |
218 #define dup2 _dup2 | |
219 #define execlp _execlp | |
220 #define execvp _execvp | |
221 #define getpid _getpid | |
222 #define index strchr | |
223 #define isatty _isatty | |
224 #define link _link | |
225 #define lseek _lseek | |
226 #define mkdir _mkdir | |
227 #define mktemp _mktemp | |
228 #define open _open | |
229 #define pipe _pipe | |
230 #define random rand | |
231 #define read _read | |
232 #define rmdir _rmdir | |
233 #define sleep nt_sleep | |
234 #define srandom srand | |
235 #define unlink _unlink | |
236 #define umask _umask | |
237 #define write _write | |
238 #define _longjmp longjmp | |
239 #define spawnve win32_spawnve | |
240 #define wait win32_wait | |
241 #define signal win32_signal | |
242 #define rindex strrchr | |
243 | |
244 /* Defines that we need that aren't in the standard signal.h */ | |
245 #define SIGHUP 1 /* Hang up */ | |
246 #define SIGQUIT 3 /* Quit process */ | |
247 #define SIGTRAP 5 /* Trace trap */ | |
248 #define SIGKILL 9 /* Die, die die */ | |
249 #define SIGPIPE 13 /* Write on pipe with no readers */ | |
250 #define SIGALRM 14 /* Alarm */ | |
251 #define SIGCHLD 18 /* Death of child */ | |
252 | |
253 /* For integration with MSDOS support. */ | |
254 #define getdisk() (_getdrive () - 1) | |
255 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | |
256 | |
257 /* Define this so that winsock.h definitions don't get included when windows.h | |
258 is... I don't know if they do the right thing for emacs. For this to | |
259 have proper effect, config.h must always be included before windows.h. */ | |
260 #define _WINSOCKAPI_ 1 | |
261 | |
9818 | 262 /* Defines size_t and alloca (). */ |
263 #include <malloc.h> | |
264 | |
9803 | 265 /* ============================================================ */ |
9804
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
266 |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
267 /* Give us extra pure storage. */ |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
268 |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
269 #define SYSTEM_PURESIZE_EXTRA 52000 |