aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorDan Nicolaescu2010-08-22 08:14:37 -0700
committerDan Nicolaescu2010-08-22 08:14:37 -0700
commita7ebc409279c0d41ad60655d360d6c3c04ae77a1 (patch)
treefe0cb3183e7b5e5e677f015e88e3666ba8d4835b /src/ChangeLog
parent91bdeb6639bb1613eb91d9bb04ef7d8c78dc1d9d (diff)
downloademacs-a7ebc409279c0d41ad60655d360d6c3c04ae77a1.tar.gz
emacs-a7ebc409279c0d41ad60655d360d6c3c04ae77a1.zip
Simplify termio code.
All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so HAVE_TERMIO code is obsolete. Replace HAVE_TERMIOS conditionals with !DOS_NT. * src/systty.h: Do not define HAVE_TCATTR. Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code. Do not define EMACS_HAVE_TTY_PGRP. Only define EMACS_GET_TTY_PGRP for !DOS_NT. * src/sysdep.c: Include sysselect.h unconditionally. Do not include sys/ioctl.h and termios.h, systty.h does it. Use HAVE_SYS_UTSNAME_H instead of USG as an include guard. (init_baud_rate): Remove HAVE_TERMIO code. (child_setup_tty): Remove HAVE_TERMIO code. (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR. (new_ltchars, new_tchars): Remove, unused. (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS code. Remove special casing for __mips__, it was a no-op. Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS. (init_sys_modes): Remove HPUX special case. * src/process.c: Include stdlib.h unconditionally. Do not include fcntl.h, systty.h does it. Remove conditional code for HAVE_SERIAL, it is always true. (process_send_signal): Remove HAVE_TERMIOS conditional, it's always true when SIGNALS_VIA_CHARACTERS is true. (Fcontinue_process, Fprocess_send_eof): Simplify conditionals: !WINDOWSNT means HAVE_TERMIOS. (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS conditional, which is true for all HAVE_TERMIOS systems. * src/keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT instead of HAVE_TERMIOS. * src/emacs.c (shut_down_emacs): Use !defined DOS_NT instead of EMACS_HAVE_TTY_PGRP. * src/callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the non-MSDOS, non-WINDOWSNT code, it's only defined for such systems anyway.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 403a588df4c..782c87642ce 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,42 @@
12010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Simplify termio code.
4 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5 HAVE_TERMIO code is obsolete.
6 Replace HAVE_TERMIOS conditionals with !DOS_NT.
7 * systty.h: Do not define HAVE_TCATTR.
8 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
9 Do not define EMACS_HAVE_TTY_PGRP. Only define
10 EMACS_GET_TTY_PGRP for !DOS_NT.
11 * sysdep.c: Include sysselect.h unconditionally. Do not include
12 sys/ioctl.h and termios.h, systty.h does it. Use
13 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
14 (init_baud_rate): Remove HAVE_TERMIO code.
15 (child_setup_tty): Remove HAVE_TERMIO code.
16 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
17 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
18 (new_ltchars, new_tchars): Remove, unused.
19 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
20 code. Remove special casing for __mips__, it was a no-op. Remove
21 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
22 (init_sys_modes): Remove HPUX special case.
23 * process.c: Include stdlib.h unconditionally. Do not include
24 fcntl.h, systty.h does it. Remove conditional code for
25 HAVE_SERIAL, it is always true.
26 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
27 always true when SIGNALS_VIA_CHARACTERS is true.
28 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
29 !WINDOWSNT means HAVE_TERMIOS.
30 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
31 conditional, which is true for all HAVE_TERMIOS systems.
32 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
33 instead of HAVE_TERMIOS.
34 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
35 EMACS_HAVE_TTY_PGRP.
36 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
37 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
38 anyway.
39
12010-08-21 Eli Zaretskii <eliz@gnu.org> 402010-08-21 Eli Zaretskii <eliz@gnu.org>
2 41
3 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in 42 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in