Mercurial > emacs
annotate src/s/cygwin.h @ 108074:39488fd097e8
Simplify STARTFILES definition.
* s/hpux10-20.h (START_FILES): Explicitly define here instead of
relying on Makefile.in to define it.
* s/cygwin.h (START_FILES): Likewise.
* Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 23 Apr 2010 00:21:18 -0700 |
parents | 9882f2fb5dab |
children | 783e1b7c827d |
rev | line source |
---|---|
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
1 /* System description header file for Cygwin. |
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
2 Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006, |
106815 | 3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
49548 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
49548 | 8 it under the terms of the GNU General Public License as published by |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
10 (at your option) any later version. |
49548 | 11 |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91394
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
49548 | 19 |
20 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
21 It sets the Lisp variable system-type. */ | |
22 | |
23 #define SYSTEM_TYPE "cygwin" | |
24 | |
25 /* Emacs can read input using SIGIO and buffering characters itself, | |
26 or using CBREAK mode and making C-g cause SIGINT. | |
27 The choice is controlled by the variable interrupt_input. | |
28 | |
29 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
30 | |
31 Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros | |
32 to indicate whether or not signal-driven I/O is possible. It uses | |
33 INTERRUPT_INPUT to decide whether to use it by default. | |
34 | |
35 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
36 CBREAK mode has two disadvantages | |
37 1) At least in 4.2, it is impossible to handle the Meta key properly. | |
38 I hear that in system V this problem does not exist. | |
39 2) Control-G causes output to be discarded. | |
40 I do not know whether this can be fixed in system V. | |
41 | |
42 Another method of doing input is planned but not implemented. | |
43 It would have Emacs fork off a separate process | |
44 to read the input and send it to the true Emacs process | |
45 through a pipe. */ | |
46 | |
47 #undef INTERRUPT_INPUT | |
48 | |
49 /* | |
50 * Define HAVE_TERMIOS if the system provides POSIX-style | |
51 * functions and macros for terminal control. | |
52 * | |
53 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
54 * for terminal control. | |
55 * | |
56 * Do not define both. HAVE_TERMIOS is preferred, if it is | |
57 * supported on your system. | |
58 */ | |
59 | |
60 #define HAVE_TERMIOS | |
61 | |
62 /* | |
63 * Define HAVE_PTYS if the system supports pty devices. | |
64 */ | |
65 | |
66 #define HAVE_PTYS | |
67 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ | |
68 #define PTY_NAME_SPRINTF /* none */ | |
69 #define PTY_TTY_NAME_SPRINTF /* none */ | |
70 #define PTY_OPEN \ | |
71 do \ | |
72 { \ | |
73 int dummy; \ | |
74 SIGMASKTYPE mask; \ | |
75 mask = sigblock (sigmask (SIGCHLD)); \ | |
76 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ | |
77 fd = -1; \ | |
78 sigsetmask (mask); \ | |
79 emacs_close (dummy); \ | |
80 } \ | |
81 while (0) | |
82 | |
83 /* Define this symbol if your system has the functions bcopy, etc. */ | |
84 | |
85 #define BSTRING | |
86 | |
87 /* Define CLASH_DETECTION if you want lock files to be written | |
88 so that Emacs can tell instantly when you try to modify | |
89 a file that someone else has modified in his Emacs. */ | |
90 | |
91 #define CLASH_DETECTION | |
92 | |
93 /* If the system's imake configuration file defines `NeedWidePrototypes' | |
94 as `NO', we must define NARROWPROTO manually. Such a define is | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49548
diff
changeset
|
95 generated in the Makefile generated by `xmkmf'. If we don't |
49548 | 96 define NARROWPROTO, we will see the wrong function prototypes |
97 for X functions taking float or double parameters. */ | |
98 | |
99 #define NARROWPROTO 1 | |
100 | |
101 /* used in various places to enable cygwin-specific code changes */ | |
102 #define CYGWIN 1 | |
103 | |
104 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | |
105 #define SYSV_SYSTEM_DIR 1 | |
54825
59000534cc29
Changes for Cygwin unexec() support, changes in Cygwin itself.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
106 #define UNEXEC unexcw.o |
49548 | 107 #define POSIX_SIGNALS 1 |
106174
542223b15e9b
* s/cygwin.h: Remove unneeded linker flags.
Chong Yidong <cyd@stupidchicken.com>
parents:
100951
diff
changeset
|
108 #define LINKER $(CC) |
542223b15e9b
* s/cygwin.h: Remove unneeded linker flags.
Chong Yidong <cyd@stupidchicken.com>
parents:
100951
diff
changeset
|
109 |
49548 | 110 /* Use terminfo instead of termcap. Fewer environment variables to |
111 go wrong, more terminal types. */ | |
112 #define TERMINFO | |
113 | |
114 #define HAVE_SOCKETS | |
115 | |
116 /* vfork() interacts badly with setsid(), causing ptys to fail to | |
117 change their controlling terminal */ | |
118 #define vfork fork | |
119 | |
84383
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
120 /* This should work (at least when compiling with gcc). But I have no way |
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
121 or intention to verify or even test it. If you encounter a problem with |
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
122 it, feel free to change this setting, but please add a comment here about |
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
123 why it needed to be changed. */ |
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
124 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
497448aab7db
(GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
78259
diff
changeset
|
125 |
91394 | 126 /* Virtual addresses of pure and impure space can vary, as on Windows. */ |
127 #define VIRT_ADDR_VARIES | |
128 | |
106497
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
129 /* Emacs supplies its own malloc, but glib (part of Gtk+) calls |
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
130 memalign and on Cygwin, that becomes the Cygwin-supplied memalign. |
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
131 As malloc is not the Cygwin malloc, the Cygwin memalign always |
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
132 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ |
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
133 #define G_SLICE_ALWAYS_MALLOC |
d06619fa1742
* configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents:
106180
diff
changeset
|
134 |
107872
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
135 /* Don't link against static libgcc */ |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
136 #define LIB_GCC |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
137 |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
138 /* Don't list system libs on link command line */ |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
139 #define LIB_STANDARD |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
140 #define LIB_MATH |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
141 #define LIBS_DEBUG |
9882f2fb5dab
* s/cygwin.h: Avoid linking against static libgcc.
Chong Yidong <cyd@stupidchicken.com>
parents:
106815
diff
changeset
|
142 |
108074
39488fd097e8
Simplify STARTFILES definition.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
107872
diff
changeset
|
143 #define START_FILES ecrt0.o |
39488fd097e8
Simplify STARTFILES definition.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
107872
diff
changeset
|
144 |
49548 | 145 /* the end */ |
52401 | 146 |
147 /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b | |
148 (do not change this comment) */ |