annotate src/s/windowsnt.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 4be1180a9e89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* System description file for Windows NT.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 * Define symbols to identify the version of Unix this is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 * Define all the symbols that apply correctly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 /* #define UNIPLUS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 /* #define USG5 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 /* #define USG */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 /* #define HPUX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* #define UMAX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 /* #define BSD4_1 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 /* #define BSD4_2 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 /* #define BSD4_3 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* #define BSD */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 /* #define VMS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #ifndef WINDOWSNT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #define WINDOWSNT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #ifndef DOS_NT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #define DOS_NT /* MSDOS or WINDOWSNT */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* If you are compiling with a non-C calling convention but need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 declare vararg routines differently, put it here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #define _VARARGS_ __cdecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 /* If you are providing a function to something that will call the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 function back (like a signal handler and signal, or main) its calling
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 convention must be whatever standard the libraries expect */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #define _CALLBACK_ __cdecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /* SYSTEM_TYPE should indicate the kind of system you are using.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 It sets the Lisp variable system-type. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #define SYSTEM_TYPE "windows-nt"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #define SYMS_SYSTEM syms_of_ntterm ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define NO_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 /* NOMULTIPLEJOBS should be defined if your system's shell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 does not have "job control" (the ability to stop a program,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 run some other program, then continue the first one). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 /* #define NOMULTIPLEJOBS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* Letter to use in finding device name of first pty,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 if system supports pty's. 'a' means it is /dev/ptya0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #define FIRST_PTY_LETTER 'a'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 * Look in <sys/time.h> for a timeval structure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #define HAVE_TIMEVAL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 * Define HAVE_SELECT if the system supports the `select' system call.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 /* #define HAVE_SELECT */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 * Define HAVE_PTYS if the system supports pty devices.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* #define HAVE_PTYS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 /* If your system uses COFF (Common Object File Format) then define the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 preprocessor symbol "COFF". */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #define COFF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 /* NT supports Winsock which is close enough (with some hacks) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 #define HAVE_SOCKETS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 /* define MAIL_USE_FLOCK if the mailer uses flock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 to interlock access to /usr/spool/mail/$USER.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 The alternative is that a lock file named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 /usr/spool/mail/$USER.lock. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 /* #define MAIL_USE_FLOCK */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 #define MAIL_USE_POP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #define MAIL_USE_SYSTEM_LOCK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 /* If the character used to separate elements of the executable path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 is not ':', #define this to be the appropriate character constant. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #define SEPCHAR ';'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 /* ============================================================ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 /* Here, add any special hacks needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 to make Emacs work on this system. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 you might define certain system call names that don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 exist on your system, or that do different things on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 your system and must be used only through an encapsulation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (Which you should place, by convention, in sysdep.c). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 /* Define this to be the separator between path elements */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 #define DIRECTORY_SEP XINT (Vdirectory_sep_char)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 /* Define this to be the separator between devices and paths */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 #define DEVICE_SEP ':'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 /* We'll support either convention on NT. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 /* The null device on Windows NT. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #define NULL_DEVICE "NUL:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 #define EXEC_SUFFIXES ".exe:.com:.bat:.cmd:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 #ifndef MAXPATHLEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #define MAXPATHLEN _MAX_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 #define LISP_FLOAT_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 #define HAVE_SYS_TIMEB_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 #define HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 #define HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 #define STDC_HEADERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 #define TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 #define HAVE_GETTIMEOFDAY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 #define HAVE_GETHOSTNAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 #define HAVE_DUP2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 #define HAVE_RENAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 #define HAVE_CLOSEDIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 #define HAVE_TZNAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 #define HAVE_LONG_FILE_NAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 #define HAVE_MKDIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 #define HAVE_RMDIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 #define HAVE_RANDOM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 #define HAVE_BCOPY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 #define HAVE_BCMP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 #define HAVE_LOGB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 #define HAVE_FREXP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 #define HAVE_FMOD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 #define HAVE_FTIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 #define HAVE_MKTIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 #define HAVE_MOUSE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 #define HAVE_H_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 #ifdef HAVE_NTGUI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 #define HAVE_WINDOW_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 #define HAVE_FACES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 /* get some redefinitions in place */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 /* IO calls that are emulated or shadowed */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 #define access sys_access
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 #define chdir sys_chdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 #define chmod sys_chmod
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 #define close sys_close
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 #define creat sys_creat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 #define ctime sys_ctime
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 #define dup sys_dup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 #define dup2 sys_dup2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 #define fopen sys_fopen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 #define link sys_link
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 #define mkdir sys_mkdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 #define mktemp sys_mktemp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 #define open sys_open
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 #define pipe sys_pipe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 #define read sys_read
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 #define rename sys_rename
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 #define rmdir sys_rmdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 #define select sys_select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 #define sleep sys_sleep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 #define unlink sys_unlink
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 #define write sys_write
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 /* this is hacky, but is necessary to avoid warnings about macro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 redefinitions using the SDK compilers */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 #ifndef __STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 #define __STDC__ 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 #define MUST_UNDEF__STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 #include <direct.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 #include <io.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 #ifdef MUST_UNDEF__STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 #undef __STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 #undef MUST_UNDEF__STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 /* subprocess calls that are emulated */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 #define spawnve sys_spawnve
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 #define wait sys_wait
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 #define kill sys_kill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 #define signal sys_signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 /* map to MSVC names */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 #define execlp _execlp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 #define execvp _execvp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 #define fcloseall _fcloseall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 #define fdopen _fdopen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 #define fgetchar _fgetchar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 #define fileno _fileno
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 #define flushall _flushall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 #define fputchar _fputchar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 #define getw _getw
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 #define getpid _getpid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 #define isatty _isatty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 #define logb _logb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 #define _longjmp longjmp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 #define lseek _lseek
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 #define popen _popen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 #define pclose _pclose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 #define putw _putw
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 #define umask _umask
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 #define utime _utime
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 #define index strchr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 #define rindex strrchr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 #ifdef HAVE_NTGUI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 #define abort win32_abort
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 /* Defines that we need that aren't in the standard signal.h */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 #define SIGHUP 1 /* Hang up */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 #define SIGQUIT 3 /* Quit process */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 #define SIGTRAP 5 /* Trace trap */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 #define SIGKILL 9 /* Die, die die */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 #define SIGPIPE 13 /* Write on pipe with no readers */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 #define SIGALRM 14 /* Alarm */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 #define SIGCHLD 18 /* Death of child */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 /* For integration with MSDOS support. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 #define getdisk() (_getdrive () - 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 #define EMACS_CONFIGURATION get_emacs_configuration ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 /* Define this so that winsock.h definitions don't get included when windows.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 is... I don't know if they do the right thing for emacs. For this to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 have proper effect, config.h must always be included before windows.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 #define _WINSOCKAPI_ 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 /* Defines size_t and alloca (). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 #include <malloc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 /* Define for those source files that do not include enough NT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 system files. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 #ifndef NULL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 #ifdef __cplusplus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 #define NULL 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 #define NULL ((void *)0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 /* For proper declaration of environ. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 /* Emacs takes care of ensuring that these are defined. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 #ifdef max
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 #undef max
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 #undef min
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 /* We need a little extra space, see ../../lisp/loadup.el */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 #define SYSTEM_PURESIZE_EXTRA 15000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 /* ============================================================ */