annotate src/s/cygwin.h @ 108765:d835100c3e8b

Replace Lisp calls to delete-backward-char by delete-char. * bs.el, expand.el, ido.el, image-dired.el, lpr.el, pcomplete.el, skeleton.el, term.el, time.el, wid-edit.el, woman.el, calc/calc-graph.el, calc/calc-help.el, calc/calc-incom.el, calc/calc.el, emacs-cl-extra.el, emacs-cl-loaddefs.el, emulation/cua-rect.el, emulation/viper-ex.el, eshell/esh-test.el, eshell/eshell.el, gnus/gnus-uu.el, gnus/nndoc.el, gnus/nnrss.el, gnus/rfc2047.el, gnus/utf7.el, international/utf-7.el, language/ethio-util.el, mh-e/mh-alias.el, mh-e/mh-search.el, net/imap.el, net/rcirc.el, obsolete/complete.el, play/decipher.el, progmodes/ada-mode.el, progmodes/cc-awk.el, progmodes/dcl-mode.el, progmodes/ps-mode.el, progmodes/verilog-mode.el, progmodes/vhdl-mode.el, textmodes/bibtex.el, textmodes/fill.el, textmodes/reftex-auc.el, textmodes/rst.el, textmodes/sgml-mode.el, textmodes/table.el, textmodes/texinfmt.el: Replace Lisp calls to delete-backward-char by calls to delete-char.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 24 May 2010 22:11:08 -0400
parents 5a44435f0c71
children 3ff97bad1c47
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
2
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
3 Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006,
108691
5a44435f0c71 Set linker-related things with configure.
Glenn Morris <rgm@gnu.org>
parents: 108511
diff changeset
4 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
5
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
6 This file is part of GNU Emacs.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
7
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91394
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
9 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
10 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
11 (at your option) any later version.
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
12
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
16 GNU General Public License for more details.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
17
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
18 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
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
20
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
21 /* SYSTEM_TYPE should indicate the kind of system you are using.
108691
5a44435f0c71 Set linker-related things with configure.
Glenn Morris <rgm@gnu.org>
parents: 108511
diff changeset
22 It sets the Lisp variable system-type. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
23 #define SYSTEM_TYPE "cygwin"
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
24
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
25 /* Emacs can read input using SIGIO and buffering characters itself,
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
26 or using CBREAK mode and making C-g cause SIGINT.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
27 The choice is controlled by the variable interrupt_input.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
28
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
29 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
30
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
31 Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
32 to indicate whether or not signal-driven I/O is possible. It uses
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
33 INTERRUPT_INPUT to decide whether to use it by default.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
34
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
35 SIGIO can be used only on systems that implement it (4.2 and 4.3).
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
36 CBREAK mode has two disadvantages
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
37 1) At least in 4.2, it is impossible to handle the Meta key properly.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
38 I hear that in system V this problem does not exist.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
39 2) Control-G causes output to be discarded.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
40 I do not know whether this can be fixed in system V.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
41
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
42 Another method of doing input is planned but not implemented.
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
43 It would have Emacs fork off a separate process
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
44 to read the input and send it to the true Emacs process
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
45 through a pipe. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
46 #undef INTERRUPT_INPUT
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
47
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
48 /* Define HAVE_TERMIOS if the system provides POSIX-style
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
49 functions and macros for terminal control.
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
50
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
51 Define HAVE_TERMIO if the system provides sysV-style ioctls
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
52 for terminal control.
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
53
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
54 Do not define both. HAVE_TERMIOS is preferred, if it is
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
55 supported on your system. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
56 #define HAVE_TERMIOS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
57
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
58 /* Define HAVE_PTYS if the system supports pty devices. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
59 #define HAVE_PTYS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
60 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
61 #define PTY_NAME_SPRINTF /* none */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
62 #define PTY_TTY_NAME_SPRINTF /* none */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
63 #define PTY_OPEN \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
64 do \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
65 { \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
66 int dummy; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
67 SIGMASKTYPE mask; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
68 mask = sigblock (sigmask (SIGCHLD)); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
69 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
70 fd = -1; \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
71 sigsetmask (mask); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
72 emacs_close (dummy); \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
73 } \
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
74 while (0)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
75
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
76 /* Define this symbol if your system has the functions bcopy, etc. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
77 #define BSTRING
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
78
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
79 /* Define CLASH_DETECTION if you want lock files to be written
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
80 so that Emacs can tell instantly when you try to modify
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
81 a file that someone else has modified in his Emacs. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
82 #define CLASH_DETECTION
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
83
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
84 /* If the system's imake configuration file defines `NeedWidePrototypes'
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
85 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
86 generated in the Makefile generated by `xmkmf'. If we don't
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
87 define NARROWPROTO, we will see the wrong function prototypes
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
88 for X functions taking float or double parameters. */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
89 #define NARROWPROTO 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
90
108511
f8e62c2bf3e9 Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents: 108507
diff changeset
91 /* Used in various places to enable cygwin-specific code changes. */
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
92 #define CYGWIN 1
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
93
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
94 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
95 #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
96 #define UNEXEC unexcw.o
106174
542223b15e9b * s/cygwin.h: Remove unneeded linker flags.
Chong Yidong <cyd@stupidchicken.com>
parents: 100951
diff changeset
97
49548
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
98 #define HAVE_SOCKETS
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
99
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
100 /* vfork() interacts badly with setsid(), causing ptys to fail to
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
101 change their controlling terminal */
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
102 #define vfork fork
8b1c605f8c9b Initial revision.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
103
84383
497448aab7db (GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 78259
diff changeset
104 /* 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
105 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
106 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
107 why it needed to be changed. */
497448aab7db (GC_MARK_STACK): Enable conservative stack marking.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 78259
diff changeset
108 #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
109
91394
237670472243 Define VIRT_ADDR_VARIES.
Jason Rumney <jasonr@gnu.org>
parents: 87649
diff changeset
110 /* Virtual addresses of pure and impure space can vary, as on Windows. */
237670472243 Define VIRT_ADDR_VARIES.
Jason Rumney <jasonr@gnu.org>
parents: 87649
diff changeset
111 #define VIRT_ADDR_VARIES
237670472243 Define VIRT_ADDR_VARIES.
Jason Rumney <jasonr@gnu.org>
parents: 87649
diff changeset
112
106497
d06619fa1742 * configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents: 106180
diff changeset
113 /* 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
114 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
115 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
116 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
117 #define G_SLICE_ALWAYS_MALLOC
d06619fa1742 * configure.in: Allow compiling Emacs with GTK on Cygwin.
Chong Yidong <cyd@stupidchicken.com>
parents: 106180
diff changeset
118
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
119 /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
120 (do not change this comment) */