aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes1998-06-01 14:23:44 +0000
committerAndrew Innes1998-06-01 14:23:44 +0000
commit124abc748d15498edb49159a84e36c3b9cd281a1 (patch)
treec0f46d97937a690f10fed527ad6d10ba82dee403 /src
parent65ae11d9d18022d152dacba92b79de56fcd9ddef (diff)
downloademacs-124abc748d15498edb49159a84e36c3b9cd281a1.tar.gz
emacs-124abc748d15498edb49159a84e36c3b9cd281a1.zip
Use 1 as explicit value of empty #defines.
Diffstat (limited to 'src')
-rw-r--r--src/s/ms-w32.h94
1 files changed, 49 insertions, 45 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index c0d3436738d..4b9b08426d7 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -55,13 +55,13 @@ Boston, MA 02111-1307, USA. */
55#define SYSTEM_TYPE "windows-nt" 55#define SYSTEM_TYPE "windows-nt"
56#define SYMS_SYSTEM syms_of_ntterm () 56#define SYMS_SYSTEM syms_of_ntterm ()
57 57
58#define NO_MATHERR 58#define NO_MATHERR 1
59 59
60/* NOMULTIPLEJOBS should be defined if your system's shell 60/* NOMULTIPLEJOBS should be defined if your system's shell
61 does not have "job control" (the ability to stop a program, 61 does not have "job control" (the ability to stop a program,
62 run some other program, then continue the first one). */ 62 run some other program, then continue the first one). */
63 63
64/* #define NOMULTIPLEJOBS */ 64/* #define NOMULTIPLEJOBS 1 */
65 65
66/* Emacs can read input using SIGIO and buffering characters itself, 66/* Emacs can read input using SIGIO and buffering characters itself,
67 or using CBREAK mode and making C-g cause SIGINT. 67 or using CBREAK mode and making C-g cause SIGINT.
@@ -85,7 +85,7 @@ Boston, MA 02111-1307, USA. */
85 to read the input and send it to the true Emacs process 85 to read the input and send it to the true Emacs process
86 through a pipe. */ 86 through a pipe. */
87 87
88/* #define INTERRUPT_INPUT */ 88/* #define INTERRUPT_INPUT 1 */
89 89
90/* Letter to use in finding device name of first pty, 90/* Letter to use in finding device name of first pty,
91 if system supports pty's. 'a' means it is /dev/ptya0 */ 91 if system supports pty's. 'a' means it is /dev/ptya0 */
@@ -103,27 +103,27 @@ Boston, MA 02111-1307, USA. */
103 * supported on your system. 103 * supported on your system.
104 */ 104 */
105 105
106/* #define HAVE_TERMIOS */ 106/* #define HAVE_TERMIOS 1 */
107/* #define HAVE_TERMIO */ 107/* #define HAVE_TERMIO 1 */
108 108
109/* 109/*
110 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. 110 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
111 * Look in <sys/time.h> for a timeval structure. 111 * Look in <sys/time.h> for a timeval structure.
112 */ 112 */
113 113
114#define HAVE_TIMEVAL 114#define HAVE_TIMEVAL 1
115 115
116/* 116/*
117 * Define HAVE_SELECT if the system supports the `select' system call. 117 * Define HAVE_SELECT if the system supports the `select' system call.
118 */ 118 */
119 119
120/* #define HAVE_SELECT */ 120/* #define HAVE_SELECT 1 */
121 121
122/* 122/*
123 * Define HAVE_PTYS if the system supports pty devices. 123 * Define HAVE_PTYS if the system supports pty devices.
124 */ 124 */
125 125
126/* #define HAVE_PTYS */ 126/* #define HAVE_PTYS 1 */
127 127
128/* 128/*
129 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate 129 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
@@ -134,7 +134,7 @@ Boston, MA 02111-1307, USA. */
134 134
135/* NT supports Winsock which is close enough (with some hacks) */ 135/* NT supports Winsock which is close enough (with some hacks) */
136 136
137#define HAVE_SOCKETS 137#define HAVE_SOCKETS 1
138 138
139/* Define this symbol if your system has the functions bcopy, etc. */ 139/* Define this symbol if your system has the functions bcopy, etc. */
140 140
@@ -144,7 +144,7 @@ Boston, MA 02111-1307, USA. */
144#define bcmp(a, b, l) memcmp(a, b, l) 144#define bcmp(a, b, l) memcmp(a, b, l)
145 145
146/* bcopy (aka memmove aka memcpy at least on x86) under MSVC is quite safe */ 146/* bcopy (aka memmove aka memcpy at least on x86) under MSVC is quite safe */
147#define GAP_USE_BCOPY 147#define GAP_USE_BCOPY 1
148#define BCOPY_UPWARD_SAFE 1 148#define BCOPY_UPWARD_SAFE 1
149#define BCOPY_DOWNWARD_SAFE 1 149#define BCOPY_DOWNWARD_SAFE 1
150 150
@@ -154,12 +154,12 @@ Boston, MA 02111-1307, USA. */
154 This is generally OS dependent, and not supported 154 This is generally OS dependent, and not supported
155 under most USG systems. */ 155 under most USG systems. */
156 156
157#define subprocesses 157#define subprocesses 1
158 158
159/* If your system uses COFF (Common Object File Format) then define the 159/* If your system uses COFF (Common Object File Format) then define the
160 preprocessor symbol "COFF". */ 160 preprocessor symbol "COFF". */
161 161
162#define COFF 162#define COFF 1
163 163
164/* define MAIL_USE_FLOCK if the mailer uses flock 164/* define MAIL_USE_FLOCK if the mailer uses flock
165 to interlock access to /usr/spool/mail/$USER. 165 to interlock access to /usr/spool/mail/$USER.
@@ -167,14 +167,14 @@ Boston, MA 02111-1307, USA. */
167 /usr/spool/mail/$USER.lock. */ 167 /usr/spool/mail/$USER.lock. */
168 168
169/* #define MAIL_USE_FLOCK */ 169/* #define MAIL_USE_FLOCK */
170#define MAIL_USE_POP 170#define MAIL_USE_POP 1
171#define MAIL_USE_SYSTEM_LOCK 171#define MAIL_USE_SYSTEM_LOCK 1
172 172
173/* Define CLASH_DETECTION if you want lock files to be written 173/* Define CLASH_DETECTION if you want lock files to be written
174 so that Emacs can tell instantly when you try to modify 174 so that Emacs can tell instantly when you try to modify
175 a file that someone else has modified in his Emacs. */ 175 a file that someone else has modified in his Emacs. */
176 176
177/* #define CLASH_DETECTION */ 177/* #define CLASH_DETECTION 1 */
178 178
179/* Define this if your operating system declares signal handlers to 179/* Define this if your operating system declares signal handlers to
180 have a type other than the usual. `The usual' is `void' for ANSI C 180 have a type other than the usual. `The usual' is `void' for ANSI C
@@ -216,61 +216,61 @@ Boston, MA 02111-1307, USA. */
216#define MAXPATHLEN _MAX_PATH 216#define MAXPATHLEN _MAX_PATH
217#endif 217#endif
218 218
219#define LISP_FLOAT_TYPE 219#define LISP_FLOAT_TYPE 1
220 220
221#undef HAVE_SYS_SELECT_H 221#undef HAVE_SYS_SELECT_H
222#define HAVE_SYS_TIMEB_H 222#define HAVE_SYS_TIMEB_H 1
223#define HAVE_SYS_TIME_H 223#define HAVE_SYS_TIME_H 1
224#define HAVE_UNISTD_H 224#define HAVE_UNISTD_H 1
225#undef HAVE_UTIME_H 225#undef HAVE_UTIME_H
226#undef HAVE_LINUX_VERSION_H 226#undef HAVE_LINUX_VERSION_H
227#undef HAVE_SYS_SYSTEMINFO_H 227#undef HAVE_SYS_SYSTEMINFO_H
228#undef HAVE_TERMIOS_H 228#undef HAVE_TERMIOS_H
229#define HAVE_LIMITS_H 1 229#define HAVE_LIMITS_H 1
230#define HAVE_STRING_H 230#define HAVE_STRING_H 1
231#define STDC_HEADERS 1 231#define STDC_HEADERS 1
232#define TIME_WITH_SYS_TIME 232#define TIME_WITH_SYS_TIME 1
233 233
234#define HAVE_GETTIMEOFDAY 234#define HAVE_GETTIMEOFDAY 1
235#define HAVE_GETHOSTNAME 235#define HAVE_GETHOSTNAME 1
236#undef HAVE_GETDOMAINNAME 236#undef HAVE_GETDOMAINNAME
237#define HAVE_DUP2 237#define HAVE_DUP2 1
238#define HAVE_RENAME 238#define HAVE_RENAME 1
239#define HAVE_CLOSEDIR 239#define HAVE_CLOSEDIR 1
240 240
241#undef TM_IN_SYS_TIME 241#undef TM_IN_SYS_TIME
242#undef HAVE_TM_ZONE 242#undef HAVE_TM_ZONE
243#define HAVE_TZNAME 1 243#define HAVE_TZNAME 1
244 244
245#define HAVE_LONG_FILE_NAMES 245#define HAVE_LONG_FILE_NAMES 1
246 246
247#define HAVE_MKDIR 247#define HAVE_MKDIR 1
248#define HAVE_RMDIR 248#define HAVE_RMDIR 1
249#define HAVE_RANDOM 249#define HAVE_RANDOM 1
250#undef HAVE_SYSINFO 250#undef HAVE_SYSINFO
251#undef HAVE_LRAND48 251#undef HAVE_LRAND48
252#define HAVE_BCOPY 252#define HAVE_BCOPY 1
253#define HAVE_BCMP 253#define HAVE_BCMP 1
254#define HAVE_LOGB 254#define HAVE_LOGB 1
255#define HAVE_FREXP 255#define HAVE_FREXP 1
256#define HAVE_FMOD 256#define HAVE_FMOD 1
257#undef HAVE_RINT 257#undef HAVE_RINT
258#undef HAVE_CBRT 258#undef HAVE_CBRT
259#define HAVE_FTIME 259#define HAVE_FTIME 1
260#undef HAVE_RES_INIT /* For -lresolv on Suns. */ 260#undef HAVE_RES_INIT /* For -lresolv on Suns. */
261#undef HAVE_SETSID 261#undef HAVE_SETSID
262#undef HAVE_FPATHCONF 262#undef HAVE_FPATHCONF
263#undef HAVE_SELECT 263#undef HAVE_SELECT
264#define HAVE_MKTIME 1 264#define HAVE_MKTIME 1
265#undef HAVE_EUIDACCESS 265#undef HAVE_EUIDACCESS
266#define HAVE_GETPAGESIZE 266#define HAVE_GETPAGESIZE 1
267#define HAVE_TZSET 1 267#define HAVE_TZSET 1
268#define HAVE_SETLOCALE 268#define HAVE_SETLOCALE 1
269#undef HAVE_UTIMES 269#undef HAVE_UTIMES
270#undef HAVE_SETRLIMIT 270#undef HAVE_SETRLIMIT
271#undef HAVE_SETPGID 271#undef HAVE_SETPGID
272#undef HAVE_GETCWD 272#undef HAVE_GETCWD
273#define HAVE_SHUTDOWN 273#define HAVE_SHUTDOWN 1
274#define HAVE_STRFTIME 1 274#define HAVE_STRFTIME 1
275 275
276#undef LOCALTIME_CACHE 276#undef LOCALTIME_CACHE
@@ -280,24 +280,26 @@ Boston, MA 02111-1307, USA. */
280 280
281/* Define if you have the ANSI `strerror' function. 281/* Define if you have the ANSI `strerror' function.
282 Otherwise you must have the variable `char *sys_errlist[]'. */ 282 Otherwise you must have the variable `char *sys_errlist[]'. */
283#define HAVE_STRERROR 283#define HAVE_STRERROR 1
284 284
285/* Define if `struct utimbuf' is declared by <utime.h>. */ 285/* Define if `struct utimbuf' is declared by <utime.h>. */
286#undef HAVE_STRUCT_UTIMBUF 286#undef HAVE_STRUCT_UTIMBUF
287 287
288#define HAVE_MOUSE 288#define HAVE_MOUSE 1
289#define HAVE_H_ERRNO 289#define HAVE_H_ERRNO 1
290 290
291#ifdef HAVE_NTGUI 291#ifdef HAVE_NTGUI
292#define HAVE_WINDOW_SYSTEM 292#define HAVE_WINDOW_SYSTEM 1
293#define HAVE_FACES 293#define HAVE_FACES 1
294#define HAVE_MENUS 294#define HAVE_MENUS 1
295#endif 295#endif
296 296
297#define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") 297#define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
298 298
299/* get some redefinitions in place */ 299/* get some redefinitions in place */
300 300
301#ifdef emacs
302
301/* IO calls that are emulated or shadowed */ 303/* IO calls that are emulated or shadowed */
302#undef access 304#undef access
303#define access sys_access 305#define access sys_access
@@ -339,6 +341,8 @@ Boston, MA 02111-1307, USA. */
339#define kill sys_kill 341#define kill sys_kill
340#define signal sys_signal 342#define signal sys_signal
341 343
344#endif /* emacs */
345
342/* map to MSVC names */ 346/* map to MSVC names */
343#define execlp _execlp 347#define execlp _execlp
344#define execvp _execvp 348#define execvp _execvp