]> code.delx.au - gnu-emacs/commitdiff
Coalesce extern decls.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2014 17:55:24 +0000 (10:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2014 17:55:24 +0000 (10:55 -0700)
* minibuf.c (emacs_get_tty, emacs_set_tty, suppress_echo_on_tty):
* sysdep.c (emacs_get_tty, emacs_set_tty):
Move duplicate extern decls from here ...
* systty.h: ... to here, so that there's just one copy.

src/ChangeLog
src/minibuf.c
src/sysdep.c
src/systty.h

index 2838d3f692a5b601bc4bd9585cb2b30c8089e58b..9265051e311c853f1054b04d209181886f0b0d60 100644 (file)
@@ -1,3 +1,11 @@
+2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Coalesce extern decls.
+       * minibuf.c (emacs_get_tty, emacs_set_tty, suppress_echo_on_tty):
+       * sysdep.c (emacs_get_tty, emacs_set_tty):
+       Move duplicate extern decls from here ...
+       * systty.h: ... to here, so that there's just one copy.
+
 2014-07-11  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsterm.m (changeFont:): Add ifdef NS_IMPL_COCOA.
index 5b6c91546219cd009d0fee7d551a2afaf91a8b1d..1f2fb1fdf3f9bba6efa26d326dcccd9e15eef737 100644 (file)
@@ -38,11 +38,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "intervals.h"
 #include "keymap.h"
 #include "termhooks.h"
-
 #include "systty.h"
-extern void emacs_get_tty (int, struct emacs_tty *);
-extern int emacs_set_tty (int, struct emacs_tty *, bool);
-extern void suppress_echo_on_tty (int);
 
 /* List of buffers for use as minibuffers.
    The first element of the list is used for the outermost minibuffer
index c5b3c43ea6dbd71b42726236f57cd986ada23574..eae15ea1ec34171b9377a20ece4edf55d701c280 100644 (file)
@@ -105,9 +105,6 @@ int _cdecl _getpid (void);
 #include "syssignal.h"
 #include "systime.h"
 
-void emacs_get_tty (int, struct emacs_tty *) EXTERNALLY_VISIBLE;
-int emacs_set_tty (int, struct emacs_tty *, bool) EXTERNALLY_VISIBLE;
-
 /* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781.  */
 #ifndef ULLONG_MAX
 #define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int)
index dd4c07d32d95b63566d108059536f7e6699d7a24..dcab02683932e433a00b94cdd69d2562522e3e47 100644 (file)
@@ -23,6 +23,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <fcntl.h>
 #endif /* not DOS_NT */
 
+#include <stdbool.h>
 #include <sys/ioctl.h>
 
 #ifdef HPUX
@@ -79,5 +80,8 @@ struct emacs_tty {
 };
 \f
 /* From sysdep.c or w32.c  */
+extern void emacs_get_tty (int, struct emacs_tty *) EXTERNALLY_VISIBLE;
+extern int emacs_set_tty (int, struct emacs_tty *, bool) EXTERNALLY_VISIBLE;
+extern void suppress_echo_on_tty (int);
 extern int serial_open (Lisp_Object);
 extern void serial_configure (struct Lisp_Process *, Lisp_Object);