diff options
| author | Dan Nicolaescu | 2010-06-07 20:02:41 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-06-07 20:02:41 -0700 |
| commit | a99ebb40a7fb95b9a50dc9df26e61955f3c061dd (patch) | |
| tree | 71425e4f0d13bf9e52dace6173571aef53c86e93 /src | |
| parent | 78a7a068403db34cfc96a4051a2798883a059688 (diff) | |
| download | emacs-a99ebb40a7fb95b9a50dc9df26e61955f3c061dd.tar.gz emacs-a99ebb40a7fb95b9a50dc9df26e61955f3c061dd.zip | |
Remove INCLUDED_FCNTL.
* xterm.c (INCLUDED_FCNTL):
* callproc.c (INCLUDED_FCNTL):
* alloc.c (INCLUDED_FCNTL):
* systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
(emacs_get_tty, emacs_set_tty): Declare unconditionally.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/alloc.c | 1 | ||||
| -rw-r--r-- | src/callproc.c | 2 | ||||
| -rw-r--r-- | src/systty.h | 10 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
5 files changed, 11 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d8990772d68..2290a515476 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Remove INCLUDED_FCNTL. | ||
| 4 | * xterm.c (INCLUDED_FCNTL): | ||
| 5 | * callproc.c (INCLUDED_FCNTL): | ||
| 6 | * alloc.c (INCLUDED_FCNTL): | ||
| 7 | * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore. | ||
| 8 | (emacs_get_tty, emacs_set_tty): Declare unconditionally. | ||
| 9 | |||
| 1 | 2010-06-07 Martin Rudalics <rudalics@gmx.at> | 10 | 2010-06-07 Martin Rudalics <rudalics@gmx.at> |
| 2 | 11 | ||
| 3 | * window.c (Fselect_window): Move `record_buffer' up to the | 12 | * window.c (Fselect_window): Move `record_buffer' up to the |
diff --git a/src/alloc.c b/src/alloc.c index c1f1094d15f..e0f07cc5f5a 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -70,7 +70,6 @@ extern POINTER_TYPE *sbrk (); | |||
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | #ifdef HAVE_FCNTL_H | 72 | #ifdef HAVE_FCNTL_H |
| 73 | #define INCLUDED_FCNTL | ||
| 74 | #include <fcntl.h> | 73 | #include <fcntl.h> |
| 75 | #endif | 74 | #endif |
| 76 | #ifndef O_WRONLY | 75 | #ifndef O_WRONLY |
diff --git a/src/callproc.c b/src/callproc.c index f922433eb42..82a5ebb90da 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -39,7 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | 39 | ||
| 40 | #include <sys/file.h> | 40 | #include <sys/file.h> |
| 41 | #ifdef HAVE_FCNTL_H | 41 | #ifdef HAVE_FCNTL_H |
| 42 | #define INCLUDED_FCNTL | ||
| 43 | #include <fcntl.h> | 42 | #include <fcntl.h> |
| 44 | #endif | 43 | #endif |
| 45 | 44 | ||
| @@ -53,7 +52,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 53 | #endif | 52 | #endif |
| 54 | 53 | ||
| 55 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ | 54 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ |
| 56 | #define INCLUDED_FCNTL | ||
| 57 | #include <fcntl.h> | 55 | #include <fcntl.h> |
| 58 | #include <sys/stat.h> | 56 | #include <sys/stat.h> |
| 59 | #include <sys/param.h> | 57 | #include <sys/param.h> |
diff --git a/src/systty.h b/src/systty.h index fcc6cf81e51..39feef9c3d0 100644 --- a/src/systty.h +++ b/src/systty.h | |||
| @@ -27,17 +27,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | #ifndef NO_TERMIO | 27 | #ifndef NO_TERMIO |
| 28 | #include <termio.h> | 28 | #include <termio.h> |
| 29 | #endif /* not NO_TERMIO */ | 29 | #endif /* not NO_TERMIO */ |
| 30 | #ifndef INCLUDED_FCNTL | ||
| 31 | #define INCLUDED_FCNTL | ||
| 32 | #include <fcntl.h> | 30 | #include <fcntl.h> |
| 33 | #endif | ||
| 34 | #else /* not HAVE_TERMIO */ | 31 | #else /* not HAVE_TERMIO */ |
| 35 | #ifdef HAVE_TERMIOS | 32 | #ifdef HAVE_TERMIOS |
| 36 | #ifndef NO_TERMIO | 33 | #ifndef NO_TERMIO |
| 37 | #include <termio.h> | 34 | #include <termio.h> |
| 38 | #endif | 35 | #endif |
| 39 | #include <termios.h> | 36 | #include <termios.h> |
| 40 | #define INCLUDED_FCNTL | ||
| 41 | #include <fcntl.h> | 37 | #include <fcntl.h> |
| 42 | #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ | 38 | #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ |
| 43 | #ifndef DOS_NT | 39 | #ifndef DOS_NT |
| @@ -247,10 +243,8 @@ struct emacs_tty { | |||
| 247 | expression, so we moved them out to their own functions in sysdep.c. */ | 243 | expression, so we moved them out to their own functions in sysdep.c. */ |
| 248 | #define EMACS_GET_TTY(fd, p) (emacs_get_tty ((fd), (p))) | 244 | #define EMACS_GET_TTY(fd, p) (emacs_get_tty ((fd), (p))) |
| 249 | #define EMACS_SET_TTY(fd, p, waitp) (emacs_set_tty ((fd), (p), (waitp))) | 245 | #define EMACS_SET_TTY(fd, p, waitp) (emacs_set_tty ((fd), (p), (waitp))) |
| 250 | #ifdef P_ /* Unfortunately this file is sometimes included before lisp.h */ | 246 | extern int emacs_get_tty (int, struct emacs_tty *); |
| 251 | extern int emacs_get_tty P_ ((int, struct emacs_tty *)); | 247 | extern int emacs_set_tty (int, struct emacs_tty *, int); |
| 252 | extern int emacs_set_tty P_ ((int, struct emacs_tty *, int)); | ||
| 253 | #endif | ||
| 254 | 248 | ||
| 255 | 249 | ||
| 256 | /* Define EMACS_TTY_TABS_OK. */ | 250 | /* Define EMACS_TTY_TABS_OK. */ |
diff --git a/src/xterm.c b/src/xterm.c index f867632f22f..f195c4fbbd5 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -56,9 +56,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 56 | 56 | ||
| 57 | #include "systime.h" | 57 | #include "systime.h" |
| 58 | 58 | ||
| 59 | #ifndef INCLUDED_FCNTL | ||
| 60 | #include <fcntl.h> | 59 | #include <fcntl.h> |
| 61 | #endif | ||
| 62 | #include <ctype.h> | 60 | #include <ctype.h> |
| 63 | #include <errno.h> | 61 | #include <errno.h> |
| 64 | #include <setjmp.h> | 62 | #include <setjmp.h> |