annotate src/s/ms-w32.h @ 12663:14d407b83eb3

(run-hook-with-args): Fix previous code.
author Karl Heuer <kwzh@gnu.org>
date Tue, 25 Jul 1995 20:27:48 +0000
parents 5c486ab3c695
children b3cefdfb34a9
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
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
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 * Define symbols to identify the version of Unix this is.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 * Define all the symbols that apply correctly.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 */
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 /* #define UNIPLUS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 /* #define USG5 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 /* #define USG */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 /* #define HPUX */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* #define UMAX */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 /* #define BSD4_1 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 /* #define BSD4_2 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 /* #define BSD4_3 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 /* #define BSD */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 /* #define VMS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 #ifndef WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 #define WINDOWSNT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 #ifndef DOS_NT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 #define DOS_NT /* MSDOS or WINDOWSNT */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
42 /* 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
43 declare vararg routines differently, put it here */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
44 #define _VARARGS_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
45
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
46 /* 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
47 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
48 convention must be whatever standard the libraries expect */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
49 #define _CALLBACK_ __cdecl
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
50
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 /* SYSTEM_TYPE should indicate the kind of system you are using.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 It sets the Lisp variable system-type. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 #define SYSTEM_TYPE "windows-nt"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 #define SYMS_SYSTEM syms_of_ntterm ()
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 #define NO_MATHERR
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 #define HAVE_FREXP
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 #define HAVE_FMOD
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 /* NOMULTIPLEJOBS should be defined if your system's shell
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 does not have "job control" (the ability to stop a program,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 run some other program, then continue the first one). */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 /* #define NOMULTIPLEJOBS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 /* Emacs can read input using SIGIO and buffering characters itself,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 or using CBREAK mode and making C-g cause SIGINT.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 The choice is controlled by the variable interrupt_input.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 Emacs uses the presence or absence of the SIGIO macro to indicate
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 whether or not signal-driven I/O is possible. It uses
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 INTERRUPT_INPUT to decide whether to use it by default.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 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
78 CBREAK mode has two disadvantages
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 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
80 I hear that in system V this problem does not exist.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 2) Control-G causes output to be discarded.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 I do not know whether this can be fixed in system V.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 Another method of doing input is planned but not implemented.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 It would have Emacs fork off a separate process
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 to read the input and send it to the true Emacs process
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 through a pipe. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 #define INTERRUPT_INPUT
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 /* Letter to use in finding device name of first pty,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 if system supports pty's. 'a' means it is /dev/ptya0 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 #define FIRST_PTY_LETTER 'a'
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 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 * Define HAVE_TERMIOS if the system provides POSIX-style
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 * functions and macros for terminal control.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 *
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 * Define HAVE_TERMIO if the system provides sysV-style ioctls
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 * for terminal control.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 *
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 * Do not define both. HAVE_TERMIOS is preferred, if it is
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 * supported on your system.
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
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 /* #define HAVE_TERMIOS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 /* #define HAVE_TERMIO */
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 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 * Look in <sys/time.h> for a timeval structure.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
115 #define HAVE_TIMEVAL
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
116 struct timeval
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
117 {
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
118 long tv_sec; /* seconds */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
119 long tv_usec; /* microseconds */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
120 };
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
121 struct timezone
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
122 {
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
123 int tz_minuteswest; /* minutes west of Greenwich */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
124 int tz_dsttime; /* type of dst correction */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
125 };
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
126
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
127 void gettimeofday (struct timeval *, struct timezone *);
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
128
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 * Define HAVE_SELECT if the system supports the `select' system call.
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
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 /* #define HAVE_SELECT */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 * Define HAVE_PTYS if the system supports pty devices.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 /* #define HAVE_PTYS */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 /*
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 * The 4.2 opendir, etc., library functions.
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
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 /* #define NONSYSTEM_DIR_LIBRARY */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 /* Define this symbol if your system has the functions bcopy, etc. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151 #define BSTRING
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 #define bzero(b, l) memset(b, 0, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153 #define bcopy(s, d, l) memcpy(d, s, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 #define bcmp(a, b, l) memcmp(a, b, l)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156 /* subprocesses should be defined if you want to
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 have code for asynchronous subprocesses
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 (as used in M-x compile and M-x shell).
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 This is generally OS dependent, and not supported
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 under most USG systems. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 #define subprocesses
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 /* If your system uses COFF (Common Object File Format) then define the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165 preprocessor symbol "COFF". */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 #define COFF
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 /* define MAIL_USE_FLOCK if the mailer uses flock
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 to interlock access to /usr/spool/mail/$USER.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171 The alternative is that a lock file named
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172 /usr/spool/mail/$USER.lock. */
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 MAIL_USE_FLOCK */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 /* Define CLASH_DETECTION if you want lock files to be written
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 so that Emacs can tell instantly when you try to modify
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178 a file that someone else has modified in his Emacs. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 /* #define CLASH_DETECTION */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 /* Define this if your operating system declares signal handlers to
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 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
184 systems (i.e. when the __STDC__ macro is defined), and `int' for
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 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
186 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
187 signal returns int or whatever; in situations like that, define
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188 this to be what the system's include files want. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189 /* #define SIGTYPE int */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191 /* If the character used to separate elements of the executable path
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 is not ':', #define this to be the appropriate character constant. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 #define SEPCHAR ';'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194
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
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197 /* Here, add any special hacks needed
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 to make Emacs work on this system. For example,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199 you might define certain system call names that don't
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 exist on your system, or that do different things on
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201 your system and must be used only through an encapsulation
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 (Which you should place, by convention, in sysdep.c). */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
203
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 /* Define this to be the separator between path elements */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 #define DIRECTORY_SEP '\\'
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
207 /* Define this to be the separator between devices and paths */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
208 #define DEVICE_SEP ':'
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 /* We'll support either convention on NT. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
211 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
212 #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
213
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
214 /* The null device on Windows NT. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
215 #define NULL_DEVICE "NUL:"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
216 #define EXEC_SUFFIXES ".exe:.com:.bat:"
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
217
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
218 #ifndef MAXPATHLEN
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
219 #define MAXPATHLEN _MAX_PATH
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
220 #endif
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
221
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
222 #define LISP_FLOAT_TYPE
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
223
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
224 #define HAVE_DUP2 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
225 #define HAVE_RENAME 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
226 #define HAVE_RMDIR 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
227 #define HAVE_MKDIR 1
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
228 #define HAVE_GETHOSTNAME 1
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
229 #define HAVE_RANDOM 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
230 #define USE_UTIME 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
231 #define HAVE_MOUSE 1
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
232 #define HAVE_TZNAME 1
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
233
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
234 #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
235
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
236 /* These have to be defined because our compilers treat __STDC__ as being
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
237 defined (most of them anyway). */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
238
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
239 #define access _access
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
240 #define chdir _chdir
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
241 #define chmod _chmod
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
242 #define close _close
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
243 #define creat _creat
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
244 #define dup _dup
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
245 #define dup2 _dup2
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
246 #define execlp _execlp
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
247 #define execvp _execvp
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
248 #define getpid _getpid
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
249 #define index strchr
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
250 #define isatty _isatty
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
251 #define link _link
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
252 #define lseek _lseek
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
253 #define mkdir _mkdir
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
254 #define mktemp _mktemp
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
255 #define open _open
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
256 #define pipe _pipe
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
257 #define read _read
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
258 #define rmdir _rmdir
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
259 #define sleep nt_sleep
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
260 #define unlink _unlink
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
261 #define umask _umask
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
262 #define utime _utime
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
263 #define write _write
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
264 #define _longjmp longjmp
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
265 #define spawnve win32_spawnve
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
266 #define wait win32_wait
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
267 #define signal win32_signal
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
268 #define rindex strrchr
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
269 #define ctime nt_ctime /* Place a wrapper around ctime (see nt.c). */
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
270
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
271 /* Defines that we need that aren't in the standard signal.h */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
272 #define SIGHUP 1 /* Hang up */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
273 #define SIGQUIT 3 /* Quit process */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
274 #define SIGTRAP 5 /* Trace trap */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
275 #define SIGKILL 9 /* Die, die die */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
276 #define SIGPIPE 13 /* Write on pipe with no readers */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
277 #define SIGALRM 14 /* Alarm */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
278 #define SIGCHLD 18 /* Death of child */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
279
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
280 /* For integration with MSDOS support. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
281 #define getdisk() (_getdrive () - 1)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
282 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
283
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
284 #define EMACS_CONFIGURATION get_emacs_configuration ()
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
285 #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
286
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
287 /* Define this so that winsock.h definitions don't get included when windows.h
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
288 is... I don't know if they do the right thing for emacs. For this to
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
289 have proper effect, config.h must always be included before windows.h. */
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
290 #define _WINSOCKAPI_ 1
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
291
9818
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
292 /* Defines size_t and alloca (). */
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
293 #include <malloc.h>
a4112f6321a5 #include <malloc.h>.
Karl Heuer <kwzh@gnu.org>
parents: 9804
diff changeset
294
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
295 /* We have to handle stat specially. However, #defining stat to
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
296 something else not only redefines uses of the function, but also
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
297 redefines uses of the type struct stat. What unfortunate parallel
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
298 naming. */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
299 #include <sys/stat.h>
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
300 struct nt_stat
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
301 {
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
302 struct _stat statbuf;
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
303 };
9804
f98b24714f01 (SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9803
diff changeset
304
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
305 #ifdef stat
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
306 #undef stat
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
307 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
308 #define stat nt_stat
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
309 #define st_dev statbuf.st_dev
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
310 #define st_ino statbuf.st_ino
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
311 #define st_mode statbuf.st_mode
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
312 #define st_nlink statbuf.st_nlink
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
313 #define st_uid statbuf.st_uid
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
314 #define st_gid statbuf.st_gid
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
315 #define st_rdev statbuf.st_rdev
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
316 #define st_size statbuf.st_size
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
317 #define st_atime statbuf.st_atime
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
318 #define st_mtime statbuf.st_mtime
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
319 #define st_ctime statbuf.st_ctime
9804
f98b24714f01 (SYSTEM_PURESIZE_EXTRA): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 9803
diff changeset
320
11390
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
321 /* Define for those source files that do not include enough NT
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
322 system files. */
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
323 #ifndef NULL
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
324 #ifdef __cplusplus
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
325 #define NULL 0
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
326 #else
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
327 #define NULL ((void *)0)
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
328 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
329 #endif
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
330
5c486ab3c695 (HAVE_RANDOM): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 10511
diff changeset
331 /* ============================================================ */