From: Dan Nicolaescu Date: Tue, 8 Jun 2010 03:02:41 +0000 (-0700) Subject: Remove INCLUDED_FCNTL. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~109 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a99ebb40a7fb95b9a50dc9df26e61955f3c061dd;p=emacs.git 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index d8990772d68..2290a515476 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2010-06-08 Dan Nicolaescu + + 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. + 2010-06-07 Martin Rudalics * 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 (); #endif #ifdef HAVE_FCNTL_H -#define INCLUDED_FCNTL #include #endif #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 . */ #include #ifdef HAVE_FCNTL_H -#define INCLUDED_FCNTL #include #endif @@ -53,7 +52,6 @@ along with GNU Emacs. If not, see . */ #endif #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ -#define INCLUDED_FCNTL #include #include #include 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 . */ #ifndef NO_TERMIO #include #endif /* not NO_TERMIO */ -#ifndef INCLUDED_FCNTL -#define INCLUDED_FCNTL #include -#endif #else /* not HAVE_TERMIO */ #ifdef HAVE_TERMIOS #ifndef NO_TERMIO #include #endif #include -#define INCLUDED_FCNTL #include #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ #ifndef DOS_NT @@ -247,10 +243,8 @@ struct emacs_tty { expression, so we moved them out to their own functions in sysdep.c. */ #define EMACS_GET_TTY(fd, p) (emacs_get_tty ((fd), (p))) #define EMACS_SET_TTY(fd, p, waitp) (emacs_set_tty ((fd), (p), (waitp))) -#ifdef P_ /* Unfortunately this file is sometimes included before lisp.h */ -extern int emacs_get_tty P_ ((int, struct emacs_tty *)); -extern int emacs_set_tty P_ ((int, struct emacs_tty *, int)); -#endif +extern int emacs_get_tty (int, struct emacs_tty *); +extern int emacs_set_tty (int, struct emacs_tty *, int); /* 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 . */ #include "systime.h" -#ifndef INCLUDED_FCNTL #include -#endif #include #include #include