Mercurial > emacs
annotate src/s/ms-w32.h @ 10258:0bcc67b3fe66
(mouse-minibuffer-check, mouse-drag-mode-line)
(mouse-yank-at-click, mouse-yank-secondary, mouse-choose-completion):
Run mouse-leave-buffer-hook.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 26 Dec 1994 05:09:41 +0000 |
parents | a4112f6321a5 |
children | a0f2ce3200d0 |
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 /* Some compilers tend to put everything declared static | |
183 into the initialized data area, which becomes pure after dumping Emacs. | |
184 On these systems, you must #define static as nothing to foil this. | |
185 Note that emacs carefully avoids static vars inside functions. */ | |
186 | |
187 /* Define this to be the separator between path elements */ | |
188 #define DIRECTORY_SEP '\\' | |
189 | |
190 /* Define this to be the separator between devices and paths */ | |
191 #define DEVICE_SEP ':' | |
192 | |
193 /* We'll support either convention on NT. */ | |
194 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | |
195 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | |
196 | |
197 /* The null device on Windows NT. */ | |
198 #define NULL_DEVICE "NUL:" | |
199 #define EXEC_SUFFIXES ".exe:.com:.bat:" | |
200 | |
201 #ifndef MAXPATHLEN | |
202 #define MAXPATHLEN _MAX_PATH | |
203 #endif | |
204 | |
205 #define HAVE_DUP2 1 | |
206 #define HAVE_RENAME 1 | |
207 #define HAVE_RMDIR 1 | |
208 #define HAVE_MKDIR 1 | |
209 #define HAVE_GETHOSTNAME 1 | |
9818 | 210 #define HAVE_MOUSE 1 |
211 | |
212 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") | |
9803 | 213 |
214 /* These have to be defined because our compilers treat __STDC__ as being | |
215 defined (most of them anyway). */ | |
216 | |
217 #define access _access | |
218 #define chdir _chdir | |
219 #define chmod _chmod | |
220 #define close _close | |
221 #define creat _creat | |
222 #define dup _dup | |
223 #define dup2 _dup2 | |
224 #define execlp _execlp | |
225 #define execvp _execvp | |
226 #define getpid _getpid | |
227 #define index strchr | |
228 #define isatty _isatty | |
229 #define link _link | |
230 #define lseek _lseek | |
231 #define mkdir _mkdir | |
232 #define mktemp _mktemp | |
233 #define open _open | |
234 #define pipe _pipe | |
235 #define random rand | |
236 #define read _read | |
237 #define rmdir _rmdir | |
238 #define sleep nt_sleep | |
239 #define srandom srand | |
240 #define unlink _unlink | |
241 #define umask _umask | |
242 #define write _write | |
243 #define _longjmp longjmp | |
244 #define spawnve win32_spawnve | |
245 #define wait win32_wait | |
246 #define signal win32_signal | |
247 #define rindex strrchr | |
248 | |
249 /* Defines that we need that aren't in the standard signal.h */ | |
250 #define SIGHUP 1 /* Hang up */ | |
251 #define SIGQUIT 3 /* Quit process */ | |
252 #define SIGTRAP 5 /* Trace trap */ | |
253 #define SIGKILL 9 /* Die, die die */ | |
254 #define SIGPIPE 13 /* Write on pipe with no readers */ | |
255 #define SIGALRM 14 /* Alarm */ | |
256 #define SIGCHLD 18 /* Death of child */ | |
257 | |
258 /* For integration with MSDOS support. */ | |
259 #define getdisk() (_getdrive () - 1) | |
260 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | |
261 | |
262 /* Define this so that winsock.h definitions don't get included when windows.h | |
263 is... I don't know if they do the right thing for emacs. For this to | |
264 have proper effect, config.h must always be included before windows.h. */ | |
265 #define _WINSOCKAPI_ 1 | |
266 | |
9818 | 267 /* Defines size_t and alloca (). */ |
268 #include <malloc.h> | |
269 | |
9803 | 270 /* ============================================================ */ |
9804
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
271 |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
272 /* Give us extra pure storage. */ |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
273 |
f98b24714f01
(SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
9803
diff
changeset
|
274 #define SYSTEM_PURESIZE_EXTRA 52000 |