aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-07-11 10:55:24 -0700
committerPaul Eggert2014-07-11 10:55:24 -0700
commit6a89fc81ea7b94ddf20775a2c85811bdf9a775d6 (patch)
treed3c597bc6978b205b56fb03f228c5e56a5a78987 /src
parent47571310770234371eb6e361214056efd1b67137 (diff)
downloademacs-6a89fc81ea7b94ddf20775a2c85811bdf9a775d6.tar.gz
emacs-6a89fc81ea7b94ddf20775a2c85811bdf9a775d6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/minibuf.c4
-rw-r--r--src/sysdep.c3
-rw-r--r--src/systty.h4
4 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2838d3f692a..9265051e311 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12014-07-11 Paul Eggert <eggert@cs.ucla.edu>
2
3 Coalesce extern decls.
4 * minibuf.c (emacs_get_tty, emacs_set_tty, suppress_echo_on_tty):
5 * sysdep.c (emacs_get_tty, emacs_set_tty):
6 Move duplicate extern decls from here ...
7 * systty.h: ... to here, so that there's just one copy.
8
12014-07-11 Jan Djärv <jan.h.d@swipnet.se> 92014-07-11 Jan Djärv <jan.h.d@swipnet.se>
2 10
3 * nsterm.m (changeFont:): Add ifdef NS_IMPL_COCOA. 11 * nsterm.m (changeFont:): Add ifdef NS_IMPL_COCOA.
diff --git a/src/minibuf.c b/src/minibuf.c
index 5b6c9154621..1f2fb1fdf3f 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -38,11 +38,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
38#include "intervals.h" 38#include "intervals.h"
39#include "keymap.h" 39#include "keymap.h"
40#include "termhooks.h" 40#include "termhooks.h"
41
42#include "systty.h" 41#include "systty.h"
43extern void emacs_get_tty (int, struct emacs_tty *);
44extern int emacs_set_tty (int, struct emacs_tty *, bool);
45extern void suppress_echo_on_tty (int);
46 42
47/* List of buffers for use as minibuffers. 43/* List of buffers for use as minibuffers.
48 The first element of the list is used for the outermost minibuffer 44 The first element of the list is used for the outermost minibuffer
diff --git a/src/sysdep.c b/src/sysdep.c
index c5b3c43ea6d..eae15ea1ec3 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -105,9 +105,6 @@ int _cdecl _getpid (void);
105#include "syssignal.h" 105#include "syssignal.h"
106#include "systime.h" 106#include "systime.h"
107 107
108void emacs_get_tty (int, struct emacs_tty *) EXTERNALLY_VISIBLE;
109int emacs_set_tty (int, struct emacs_tty *, bool) EXTERNALLY_VISIBLE;
110
111/* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781. */ 108/* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781. */
112#ifndef ULLONG_MAX 109#ifndef ULLONG_MAX
113#define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int) 110#define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int)
diff --git a/src/systty.h b/src/systty.h
index dd4c07d32d9..dcab0268393 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23#include <fcntl.h> 23#include <fcntl.h>
24#endif /* not DOS_NT */ 24#endif /* not DOS_NT */
25 25
26#include <stdbool.h>
26#include <sys/ioctl.h> 27#include <sys/ioctl.h>
27 28
28#ifdef HPUX 29#ifdef HPUX
@@ -79,5 +80,8 @@ struct emacs_tty {
79}; 80};
80 81
81/* From sysdep.c or w32.c */ 82/* From sysdep.c or w32.c */
83extern void emacs_get_tty (int, struct emacs_tty *) EXTERNALLY_VISIBLE;
84extern int emacs_set_tty (int, struct emacs_tty *, bool) EXTERNALLY_VISIBLE;
85extern void suppress_echo_on_tty (int);
82extern int serial_open (Lisp_Object); 86extern int serial_open (Lisp_Object);
83extern void serial_configure (struct Lisp_Process *, Lisp_Object); 87extern void serial_configure (struct Lisp_Process *, Lisp_Object);