]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove INCLUDED_FCNTL.
authorDan Nicolaescu <dann@ics.uci.edu>
Tue, 8 Jun 2010 03:02:41 +0000 (20:02 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Tue, 8 Jun 2010 03:02:41 +0000 (20:02 -0700)
* 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.

src/ChangeLog
src/alloc.c
src/callproc.c
src/systty.h
src/xterm.c

index d8990772d688f63451db0e6d0839b117f08b519e..2290a515476c18fb4d79b4347596e7d92a65cd6c 100644 (file)
@@ -1,3 +1,12 @@
+2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       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  <rudalics@gmx.at>
 
        * window.c (Fselect_window): Move `record_buffer' up to the
index c1f1094d15f36fcff268d317d4c54a1c2b59bb06..e0f07cc5f5a3150ba8be110b365b409a54d1c348 100644 (file)
@@ -70,7 +70,6 @@ extern POINTER_TYPE *sbrk ();
 #endif
 
 #ifdef HAVE_FCNTL_H
-#define INCLUDED_FCNTL
 #include <fcntl.h>
 #endif
 #ifndef O_WRONLY
index f922433eb428d7ee0a9da1b1879382c4533ff15a..82a5ebb90da50f1ebdea3b465820e517d5129737 100644 (file)
@@ -39,7 +39,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <sys/file.h>
 #ifdef HAVE_FCNTL_H
-#define INCLUDED_FCNTL
 #include <fcntl.h>
 #endif
 
@@ -53,7 +52,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif
 
 #ifdef MSDOS   /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */
-#define INCLUDED_FCNTL
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/param.h>
index fcc6cf81e51dcbcf6825ac22739abaf075b5fda7..39feef9c3d08415dc69438ff15c0cd7b7d0a6d16 100644 (file)
@@ -27,17 +27,13 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef NO_TERMIO
 #include <termio.h>
 #endif /* not NO_TERMIO */
-#ifndef INCLUDED_FCNTL
-#define INCLUDED_FCNTL
 #include <fcntl.h>
-#endif
 #else /* not HAVE_TERMIO */
 #ifdef HAVE_TERMIOS
 #ifndef NO_TERMIO
 #include <termio.h>
 #endif
 #include <termios.h>
-#define INCLUDED_FCNTL
 #include <fcntl.h>
 #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);
 
 \f
 /* Define EMACS_TTY_TABS_OK.  */
index f867632f22f74f55ea6d0eb6a5495043c94d70b1..f195c4fbbd5d6d3f3c7e4e92aeff1c6139711d40 100644 (file)
@@ -56,9 +56,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "systime.h"
 
-#ifndef INCLUDED_FCNTL
 #include <fcntl.h>
-#endif
 #include <ctype.h>
 #include <errno.h>
 #include <setjmp.h>