comparison src/s/cygwin.h @ 108561:23f4cd23ea89

merge trunk
author Kenichi Handa <handa@etlken>
date Fri, 14 May 2010 13:15:58 +0900
parents f8e62c2bf3e9
children 5a44435f0c71
comparison
equal deleted inserted replaced
108552:03ab6621f67d 108561:23f4cd23ea89
1 /* System description header file for Cygwin. 1 /* System description header file for Cygwin.
2 Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006, 2
3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006,
4 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 5
5 This file is part of GNU Emacs. 6 This file is part of GNU Emacs.
6 7
7 GNU Emacs is free software: you can redistribute it and/or modify 8 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
17 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 20
20 /* SYSTEM_TYPE should indicate the kind of system you are using. 21 /* SYSTEM_TYPE should indicate the kind of system you are using.
21 It sets the Lisp variable system-type. */ 22 It sets the Lisp variable system-type. */
22
23 #define SYSTEM_TYPE "cygwin" 23 #define SYSTEM_TYPE "cygwin"
24 24
25 /* Emacs can read input using SIGIO and buffering characters itself, 25 /* Emacs can read input using SIGIO and buffering characters itself,
26 or using CBREAK mode and making C-g cause SIGINT. 26 or using CBREAK mode and making C-g cause SIGINT.
27 The choice is controlled by the variable interrupt_input. 27 The choice is controlled by the variable interrupt_input.
41 41
42 Another method of doing input is planned but not implemented. 42 Another method of doing input is planned but not implemented.
43 It would have Emacs fork off a separate process 43 It would have Emacs fork off a separate process
44 to read the input and send it to the true Emacs process 44 to read the input and send it to the true Emacs process
45 through a pipe. */ 45 through a pipe. */
46
47 #undef INTERRUPT_INPUT 46 #undef INTERRUPT_INPUT
48 47
49 /* 48 /* Define HAVE_TERMIOS if the system provides POSIX-style
50 * Define HAVE_TERMIOS if the system provides POSIX-style 49 functions and macros for terminal control.
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 50
51 Define HAVE_TERMIO if the system provides sysV-style ioctls
52 for terminal control.
53
54 Do not define both. HAVE_TERMIOS is preferred, if it is
55 supported on your system. */
60 #define HAVE_TERMIOS 56 #define HAVE_TERMIOS
61 57
62 /* 58 /* Define HAVE_PTYS if the system supports pty devices. */
63 * Define HAVE_PTYS if the system supports pty devices.
64 */
65
66 #define HAVE_PTYS 59 #define HAVE_PTYS
67 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ 60 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
68 #define PTY_NAME_SPRINTF /* none */ 61 #define PTY_NAME_SPRINTF /* none */
69 #define PTY_TTY_NAME_SPRINTF /* none */ 62 #define PTY_TTY_NAME_SPRINTF /* none */
70 #define PTY_OPEN \ 63 #define PTY_OPEN \
79 emacs_close (dummy); \ 72 emacs_close (dummy); \
80 } \ 73 } \
81 while (0) 74 while (0)
82 75
83 /* Define this symbol if your system has the functions bcopy, etc. */ 76 /* Define this symbol if your system has the functions bcopy, etc. */
84
85 #define BSTRING 77 #define BSTRING
86 78
87 /* Define CLASH_DETECTION if you want lock files to be written 79 /* Define CLASH_DETECTION if you want lock files to be written
88 so that Emacs can tell instantly when you try to modify 80 so that Emacs can tell instantly when you try to modify
89 a file that someone else has modified in his Emacs. */ 81 a file that someone else has modified in his Emacs. */
90
91 #define CLASH_DETECTION 82 #define CLASH_DETECTION
92 83
93 /* If the system's imake configuration file defines `NeedWidePrototypes' 84 /* If the system's imake configuration file defines `NeedWidePrototypes'
94 as `NO', we must define NARROWPROTO manually. Such a define is 85 as `NO', we must define NARROWPROTO manually. Such a define is
95 generated in the Makefile generated by `xmkmf'. If we don't 86 generated in the Makefile generated by `xmkmf'. If we don't
96 define NARROWPROTO, we will see the wrong function prototypes 87 define NARROWPROTO, we will see the wrong function prototypes
97 for X functions taking float or double parameters. */ 88 for X functions taking float or double parameters. */
98
99 #define NARROWPROTO 1 89 #define NARROWPROTO 1
100 90
101 /* used in various places to enable cygwin-specific code changes */ 91 /* Used in various places to enable cygwin-specific code changes. */
102 #define CYGWIN 1 92 #define CYGWIN 1
103 93
104 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 94 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
105 #define SYSV_SYSTEM_DIR 1 95 #define SYSV_SYSTEM_DIR 1
106 #define UNEXEC unexcw.o 96 #define UNEXEC unexcw.o
125 memalign and on Cygwin, that becomes the Cygwin-supplied memalign. 115 memalign and on Cygwin, that becomes the Cygwin-supplied memalign.
126 As malloc is not the Cygwin malloc, the Cygwin memalign always 116 As malloc is not the Cygwin malloc, the Cygwin memalign always
127 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ 117 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */
128 #define G_SLICE_ALWAYS_MALLOC 118 #define G_SLICE_ALWAYS_MALLOC
129 119
130 /* Don't link against static libgcc */
131 #define LIB_GCC
132
133 /* the end */
134
135 /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b 120 /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
136 (do not change this comment) */ 121 (do not change this comment) */