239
|
1 /* System description file for cygwin32.
|
231
|
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
|
|
3
|
|
4 This file is part of GNU Emacs.
|
|
5
|
|
6 GNU Emacs is free software; you can redistribute it and/or modify
|
|
7 it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
9 any later version.
|
|
10
|
|
11 GNU Emacs is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
239
|
21 /* Building under cygwin
|
|
22 *
|
|
23 * The approach I have taken with this port is to use primarily the UNIX
|
|
24 * code base adding stuff that is MS-Windows specific. This works quite
|
|
25 * well, and is in keeping with my perception of the cygwin philosophy.
|
|
26 * Note that if you make changes to this file you do NOT want to define
|
|
27 * WINDOWSNT, I repeat - do not define this, it will break everything
|
|
28 * horribly. What does get defined is HAVE_MS_WINDOWS, but this is
|
|
29 * done by configure and only applies to the window system.
|
|
30 *
|
|
31 * The important thing about building is that it is done on a binary
|
|
32 * mounted filesystem. i.e. something mounted like: mount -b c:
|
|
33 * /binary. If you do not do this then compilation of el files will
|
|
34 * produce garbage. Make sure you have installed cygwin32 b18 +
|
|
35 * patched dll (which can be found at http://www.lexa.ru/sos or on my
|
|
36 * home page. Alternatively when b19 comes out the patched dll will be
|
|
37 * unnecessary. Also make sure your HOME path is unix style -
|
|
38 * i.e. without a drive letter.
|
|
39 *
|
|
40 * once you have done this, configure and make. The
|
|
41 * undump phase will fail but that is to be expected. To run you need
|
|
42 * to set EMACSLOADPATH, EMACSDOC, EMACSDATA etc appropriately and then do:
|
|
43 * temacs -batch -l loadup.el run-temacs
|
|
44 *
|
|
45 * What I want to do
|
|
46 *
|
|
47 * the fileio stuff merely uses the unix system calls this means that
|
|
48 * the mount type of your fs will determine how files are edited. This
|
|
49 * is fine except in the instance that you want to convert one to the
|
|
50 * other. In this instance I would like to bring the buffer_file_type
|
|
51 * code into the picture without all the other windows-nt cruft.
|
|
52 *
|
|
53 * Also the undumped version should be able to do path guessing, I
|
|
54 * don't know why it doesn't currently.
|
|
55 *
|
|
56 * Ideally a dumped version would be done but I'm not sure I am up to
|
|
57 * the task.
|
|
58 *
|
|
59 * Andy Piper <andyp@parallax.co.uk> 8/1/98
|
|
60 * http://parallax.co.uk/~andyp
|
|
61 */
|
231
|
62
|
|
63
|
|
64 /* Need the win32 api */
|
|
65 #ifndef NOT_C_CODE
|
|
66 #ifdef CONST
|
|
67 #undef CONST
|
239
|
68 #endif
|
231
|
69
|
|
70 /* Start and end of text and data. */
|
|
71 extern void* _data_start__;
|
|
72 extern void* _data_end__;
|
|
73
|
239
|
74 #include <windows.h>
|
231
|
75 #endif
|
|
76
|
|
77 #define HAVE_NTGUI
|
239
|
78 #define HAVE_FACES
|
231
|
79
|
|
80 #ifndef ORDINARY_LINK
|
|
81 #define ORDINARY_LINK
|
|
82 #endif
|
|
83
|
|
84 #undef MOD_ALT
|
|
85 #undef MOD_CONTROL
|
|
86 #undef MOD_SHIFT
|
|
87
|
|
88 #define SIF_TRACKPOS 0x0010
|
|
89 #define FW_BLACK FW_HEAVY
|
|
90 #define FW_ULTRABOLD FW_EXTRABOLD
|
|
91 #define FW_ULTRALIGHT FW_EXTRALIGHT
|
|
92 #define TMPF_FIXED_PITCH 0x01
|
|
93 #define VK_APPS 0x5D
|
|
94 #define SIGPROF 0
|
|
95 #define NO_LIM_DATA
|
|
96 #define HAVE_TEXT_START
|
|
97
|
|
98 #undef MAIL_USE_SYSTEM_LOCK
|
|
99
|
|
100 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
|
|
101 * group of arguments and treat it as an array of the arguments. */
|
|
102
|
|
103 #define NO_ARG_ARRAY
|
|
104
|
|
105 /* Define WORD_MACHINE if addresses and such have
|
|
106 * to be corrected before they can be used as byte counts. */
|
|
107
|
|
108 #define WORD_MACHINE
|
|
109
|
|
110 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
|
|
111 the 24-bit bit field into an int. In other words, if bit fields
|
|
112 are always unsigned.
|
|
113
|
|
114 If you use NO_UNION_TYPE, this flag does not matter. */
|
|
115
|
|
116 #define EXPLICIT_SIGN_EXTEND
|
|
117
|
|
118 /* Data type of load average, as read out of kmem. */
|
|
119
|
|
120 #define LOAD_AVE_TYPE long
|
|
121
|
|
122 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
123
|
|
124 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
|
|
125
|
|
126 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
127 Then the function dump-emacs will not be defined
|
|
128 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
129
|
|
130 #define CANNOT_DUMP 1
|
|
131 #define CANNOT_UNEXEC 1
|
|
132 #define UNEXEC /* unexnt.o */
|
|
133
|
|
134 #define DATA_START _data_start__
|
|
135 #define DATA_END _data_end__
|
|
136
|
|
137 /* Define VIRT_ADDR_VARIES if the virtual addresses of
|
|
138 pure and impure space as loaded can vary, and even their
|
|
139 relative order cannot be relied on.
|
|
140
|
|
141 Otherwise Emacs assumes that text space precedes data space,
|
|
142 numerically. */
|
|
143
|
|
144 /* Text does precede data space, but this is never a safe assumption. */
|
|
145 #define VIRT_ADDR_VARIES
|
|
146
|
|
147 /* If you are compiling with a non-C calling convention but need to
|
|
148 declare vararg routines differently, put it here */
|
|
149 #define _VARARGS_ __cdecl
|
|
150
|
|
151 /* If you are providing a function to something that will call the
|
|
152 function back (like a signal handler and signal, or main) its calling
|
|
153 convention must be whatever standard the libraries expect */
|
|
154 #define _CALLBACK_ __cdecl
|
|
155
|
|
156 /* SYSTEM_TYPE should indicate the kind of system you are using.
|
|
157 It sets the Lisp variable system-type. */
|
|
158
|
239
|
159 #define SYSTEM_TYPE "windows-nt"
|
231
|
160
|
|
161 #define NO_MATHERR
|
|
162
|
|
163 /* NOMULTIPLEJOBS should be defined if your system's shell
|
|
164 does not have "job control" (the ability to stop a program,
|
|
165 run some other program, then continue the first one). */
|
|
166
|
|
167 #define NOMULTIPLEJOBS
|
|
168
|
|
169 /* Letter to use in finding device name of first pty,
|
|
170 if system supports pty's. 'a' means it is /dev/ptya0 */
|
|
171
|
|
172 #define FIRST_PTY_LETTER 'a'
|
|
173
|
|
174 /*
|
|
175 * Define HAVE_PTYS if the system supports pty devices.
|
|
176 */
|
|
177
|
|
178 /* #define HAVE_PTYS */
|
|
179
|
|
180 /* If your system uses COFF (Common Object File Format) then define the
|
|
181 preprocessor symbol "COFF". */
|
|
182
|
|
183 #define COFF
|
|
184
|
|
185 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
186 to interlock access to /usr/spool/mail/$USER.
|
|
187 The alternative is that a lock file named
|
|
188 /usr/spool/mail/$USER.lock. */
|
|
189
|
|
190 /* If the character used to separate elements of the executable path
|
|
191 is not ':', #define this to be the appropriate character constant. */
|
|
192 #define SEPCHAR ';'
|
|
193
|
|
194 /* ============================================================ */
|
|
195
|
|
196 /* Here, add any special hacks needed
|
|
197 to make Emacs work on this system. For example,
|
|
198 you might define certain system call names that don't
|
|
199 exist on your system, or that do different things on
|
|
200 your system and must be used only through an encapsulation
|
|
201 (Which you should place, by convention, in sysdep.c). */
|
|
202
|
|
203 /* Define this to be the separator between path elements */
|
|
204 /* #define DIRECTORY_SEP XINT (Vdirectory_sep_char) */
|
|
205
|
|
206 /* Define this to be the separator between devices and paths */
|
|
207 #define DEVICE_SEP ':'
|
|
208
|
|
209 #define SIGWINCH NSIG
|
|
210
|
|
211 /* We'll support either convention on NT. */
|
|
212 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
|
|
213 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
|
|
214
|
|
215 /* The null device on Windows NT. */
|
|
216 #define NULL_DEVICE "NUL:"
|
|
217 #define EXEC_SUFFIXES ".exe:.com:.bat:.cmd:"
|
|
218
|
|
219 #define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B")
|
|
220
|
|
221 /* For integration with MSDOS support.
|
|
222 #define getdisk() (_getdrive () - 1)
|
|
223 #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN)
|
|
224 */
|
|
225
|
|
226 /* Defines size_t and alloca (). */
|
|
227
|
|
228 /* We need a little extra space, see ../../lisp/loadup.el */
|
|
229 #define SYSTEM_PURESIZE_EXTRA 15000
|
|
230
|
|
231 /* ============================================================ */
|