annotate src/s/ms-w32.h @ 16588:481b7874a1e9

Change identifiers of the form win32* to w32*.
author Geoff Voelker <voelker@cs.washington.edu>
date Tue, 19 Nov 1996 04:59:23 +0000
parents d8360498f935
children f0f8ac814b26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* System description file for Windows NT.
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 This file is part of GNU Emacs.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 any later version.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 GNU General Public License for more details.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
14186
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 13422
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 13422
diff changeset
19 Boston, MA 02111-1307, USA. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 * Define symbols to identify the version of Unix this is.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 * Define all the symbols that apply correctly.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 /* #define UNIPLUS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 /* #define USG5 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 /* #define USG */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* #define HPUX */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 /* #define UMAX */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* #define BSD4_1 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 /* #define BSD4_2 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 /* #define BSD4_3 */
16221
d8360498f935 Comment change.
Karl Heuer <kwzh@gnu.org>
parents: 15234
diff changeset
34 /* #define BSD_SYSTEM */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 /* #define VMS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 #ifndef WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 #define WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 #ifndef DOS_NT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #define DOS_NT /* MSDOS or WINDOWSNT */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
43 /* If you are compiling with a non-C calling convention but need to
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
44 declare vararg routines differently, put it here */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
45 #define _VARARGS_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
46
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
47 /* If you are providing a function to something that will call the
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
48 function back (like a signal handler and signal, or main) its calling
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
49 convention must be whatever standard the libraries expect */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
50 #define _CALLBACK_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
51
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 /* SYSTEM_TYPE should indicate the kind of system you are using.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 It sets the Lisp variable system-type. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 #define SYSTEM_TYPE "windows-nt"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 #define SYMS_SYSTEM syms_of_ntterm ()
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 #define NO_MATHERR
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 /* NOMULTIPLEJOBS should be defined if your system's shell
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 does not have "job control" (the ability to stop a program,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 run some other program, then continue the first one). */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 /* #define NOMULTIPLEJOBS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 /* Emacs can read input using SIGIO and buffering characters itself,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 or using CBREAK mode and making C-g cause SIGINT.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 The choice is controlled by the variable interrupt_input.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 Emacs uses the presence or absence of the SIGIO macro to indicate
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 whether or not signal-driven I/O is possible. It uses
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 INTERRUPT_INPUT to decide whether to use it by default.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 SIGIO can be used only on systems that implement it (4.2 and 4.3).
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 CBREAK mode has two disadvantages
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 1) At least in 4.2, it is impossible to handle the Meta key properly.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 I hear that in system V this problem does not exist.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 2) Control-G causes output to be discarded.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 I do not know whether this can be fixed in system V.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 Another method of doing input is planned but not implemented.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 It would have Emacs fork off a separate process
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 to read the input and send it to the true Emacs process
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 through a pipe. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 #define INTERRUPT_INPUT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 /* Letter to use in finding device name of first pty,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 if system supports pty's. 'a' means it is /dev/ptya0 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 #define FIRST_PTY_LETTER 'a'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 * Define HAVE_TERMIOS if the system provides POSIX-style
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 * functions and macros for terminal control.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 *
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 * Define HAVE_TERMIO if the system provides sysV-style ioctls
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 * for terminal control.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 *
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 * Do not define both. HAVE_TERMIOS is preferred, if it is
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 * supported on your system.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 /* #define HAVE_TERMIOS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 /* #define HAVE_TERMIO */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 * Look in <sys/time.h> for a timeval structure.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
114 #define HAVE_TIMEVAL
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 * Define HAVE_SELECT if the system supports the `select' system call.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 /* #define HAVE_SELECT */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 * Define HAVE_PTYS if the system supports pty devices.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 /* #define HAVE_PTYS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 * The 4.2 opendir, etc., library functions.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 /* #define NONSYSTEM_DIR_LIBRARY */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
135 /* NT supports Winsock which is close enough (with some hacks) */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
136
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
137 #define HAVE_SOCKETS
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
138
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 /* Define this symbol if your system has the functions bcopy, etc. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141 #define BSTRING
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 #define bzero(b, l) memset(b, 0, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 #define bcopy(s, d, l) memcpy(d, s, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 #define bcmp(a, b, l) memcmp(a, b, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146 /* subprocesses should be defined if you want to
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 have code for asynchronous subprocesses
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148 (as used in M-x compile and M-x shell).
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 This is generally OS dependent, and not supported
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 under most USG systems. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 #define subprocesses
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 /* If your system uses COFF (Common Object File Format) then define the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 preprocessor symbol "COFF". */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 #define COFF
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 /* define MAIL_USE_FLOCK if the mailer uses flock
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 to interlock access to /usr/spool/mail/$USER.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 The alternative is that a lock file named
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 /usr/spool/mail/$USER.lock. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 /* #define MAIL_USE_FLOCK */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
165 #define MAIL_USE_POP
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
166 #define MAIL_USE_SYSTEM_LOCK
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 /* Define CLASH_DETECTION if you want lock files to be written
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 so that Emacs can tell instantly when you try to modify
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 a file that someone else has modified in his Emacs. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172 /* #define CLASH_DETECTION */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174 /* Define this if your operating system declares signal handlers to
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175 have a type other than the usual. `The usual' is `void' for ANSI C
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 systems (i.e. when the __STDC__ macro is defined), and `int' for
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 pre-ANSI systems. If you're using GCC on an older system, __STDC__
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 will be defined, but the system's include files will still say that
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 signal returns int or whatever; in situations like that, define
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 this to be what the system's include files want. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181 /* #define SIGTYPE int */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 /* If the character used to separate elements of the executable path
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184 is not ':', #define this to be the appropriate character constant. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 #define SEPCHAR ';'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187 /* ============================================================ */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 /* Here, add any special hacks needed
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 to make Emacs work on this system. For example,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191 you might define certain system call names that don't
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 exist on your system, or that do different things on
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 your system and must be used only through an encapsulation
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194 (Which you should place, by convention, in sysdep.c). */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 /* Define this to be the separator between path elements */
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
197 #define DIRECTORY_SEP XINT (Vdirectory_sep_char)
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199 /* Define this to be the separator between devices and paths */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 #define DEVICE_SEP ':'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 /* We'll support either convention on NT. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
203 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 /* The null device on Windows NT. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207 #define NULL_DEVICE "NUL:"
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
208 #define EXEC_SUFFIXES ".exe:.com:.bat:.cmd:"
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
209
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
210 #ifndef MAXPATHLEN
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 #define MAXPATHLEN _MAX_PATH
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
213
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
214 #define LISP_FLOAT_TYPE
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
215
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
216 #define HAVE_SYS_TIMEB_H
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
217 #define HAVE_SYS_TIME_H
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
218 #define HAVE_UNISTD_H
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
219 #define STDC_HEADERS
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
220 #define TIME_WITH_SYS_TIME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
221
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
222 #define HAVE_GETTIMEOFDAY
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
223 #define HAVE_GETHOSTNAME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
224 #define HAVE_DUP2
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
225 #define HAVE_RENAME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
226 #define HAVE_CLOSEDIR
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
227
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
228 #define HAVE_TZNAME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
229
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
230 #define HAVE_LONG_FILE_NAMES
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
231
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
232 #define HAVE_MKDIR
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
233 #define HAVE_RMDIR
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
234 #define HAVE_RANDOM
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
235 #define HAVE_BCOPY
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
236 #define HAVE_BCMP
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
237 #define HAVE_LOGB
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
238 #define HAVE_FREXP
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
239 #define HAVE_FMOD
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
240 #define HAVE_FTIME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
241 #define HAVE_MKTIME
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
242
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
243 #define HAVE_MOUSE
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
244 #define HAVE_H_ERRNO
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
245
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
246 #ifdef HAVE_NTGUI
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
247 #define HAVE_WINDOW_SYSTEM
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
248 #define HAVE_FACES
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
249 #endif
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
250
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
251 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
252
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
253 /* get some redefinitions in place */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
254
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
255 /* IO calls that are emulated or shadowed */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
256 #define access sys_access
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
257 #define chdir sys_chdir
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
258 #define chmod sys_chmod
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
259 #define close sys_close
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
260 #define creat sys_creat
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
261 #define ctime sys_ctime
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
262 #define dup sys_dup
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
263 #define dup2 sys_dup2
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
264 #define fopen sys_fopen
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
265 #define link sys_link
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
266 #define mkdir sys_mkdir
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
267 #define mktemp sys_mktemp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
268 #define open sys_open
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
269 #define pipe sys_pipe
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
270 #define read sys_read
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
271 #define rename sys_rename
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
272 #define rmdir sys_rmdir
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
273 #define select sys_select
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
274 #define sleep sys_sleep
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
275 #define unlink sys_unlink
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
276 #define write sys_write
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
277
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
278 /* this is hacky, but is necessary to avoid warnings about macro
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
279 redefinitions using the SDK compilers */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
280 #ifndef __STDC__
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
281 #define __STDC__ 1
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
282 #define MUST_UNDEF__STDC__
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
283 #endif
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
284 #include <direct.h>
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
285 #include <io.h>
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
286 #include <stdio.h>
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
287 #ifdef MUST_UNDEF__STDC__
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
288 #undef __STDC__
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
289 #undef MUST_UNDEF__STDC__
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
290 #endif
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
291
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
292 /* subprocess calls that are emulated */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
293 #define spawnve sys_spawnve
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
294 #define wait sys_wait
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
295 #define kill sys_kill
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
296 #define signal sys_signal
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
297
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
298 /* map to MSVC names */
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
299 #define execlp _execlp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
300 #define execvp _execvp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
301 #define fcloseall _fcloseall
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
302 #define fdopen _fdopen
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
303 #define fgetchar _fgetchar
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
304 #define fileno _fileno
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
305 #define flushall _flushall
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
306 #define fputchar _fputchar
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
307 #define getw _getw
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
308 #define getpid _getpid
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
309 #define isatty _isatty
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
310 #define logb _logb
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
311 #define _longjmp longjmp
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
312 #define lseek _lseek
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
313 #define popen _popen
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
314 #define pclose _pclose
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
315 #define putw _putw
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
316 #define umask _umask
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
317 #define utime _utime
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
318 #define index strchr
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
319 #define rindex strrchr
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
320
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
321 #ifdef HAVE_NTGUI
16588
481b7874a1e9 Change identifiers of the form win32* to w32*.
Geoff Voelker <voelker@cs.washington.edu>
parents: 16221
diff changeset
322 #define abort w32_abort
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
323 #endif
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
324
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
325 /* Defines that we need that aren't in the standard signal.h */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
326 #define SIGHUP 1 /* Hang up */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
327 #define SIGQUIT 3 /* Quit process */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
328 #define SIGTRAP 5 /* Trace trap */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
329 #define SIGKILL 9 /* Die, die die */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
330 #define SIGPIPE 13 /* Write on pipe with no readers */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
331 #define SIGALRM 14 /* Alarm */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
332 #define SIGCHLD 18 /* Death of child */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
333
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
334 /* For integration with MSDOS support. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
335 #define getdisk() (_getdrive () - 1)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
336 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
337
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
338 #define EMACS_CONFIGURATION get_emacs_configuration ()
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
339 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
340
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
341 /* Define this so that winsock.h definitions don't get included with
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
342 windows.h. For this to have proper effect, config.h must always be
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
343 included before windows.h. */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
344 #define _WINSOCKAPI_ 1
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
345
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
346 /* Defines size_t and alloca (). */
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
347 #include <malloc.h>
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
348
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
349 #include <sys/stat.h>
9804
f98b24714f01 (SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9803
diff changeset
350
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
351 /* Define for those source files that do not include enough NT
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
352 system files. */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
353 #ifndef NULL
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
354 #ifdef __cplusplus
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
355 #define NULL 0
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
356 #else
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
357 #define NULL ((void *)0)
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
358 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
359 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
360
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
361 /* For proper declaration of environ. */
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
362 #include <stdlib.h>
15154
bcc66f4bc5ff Include string.h.
Geoff Voelker <voelker@cs.washington.edu>
parents: 14186
diff changeset
363 #include <string.h>
13422
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
364
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
365 /* Emacs takes care of ensuring that these are defined. */
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
366 #ifdef max
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
367 #undef max
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
368 #undef min
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
369 #endif
b3cefdfb34a9 [HAVE_NTGUI] (abort): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11390
diff changeset
370
15234
2af580000f27 (SYSTEM_PURESIZE_EXTRA): Macro defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15154
diff changeset
371 /* We need a little extra space, see ../../lisp/loadup.el */
2af580000f27 (SYSTEM_PURESIZE_EXTRA): Macro defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15154
diff changeset
372 #define SYSTEM_PURESIZE_EXTRA 15000
2af580000f27 (SYSTEM_PURESIZE_EXTRA): Macro defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15154
diff changeset
373
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
374 /* ============================================================ */