summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-11-14 22:10:35 -0800
committerDan Nicolaescu <dann@ics.uci.edu>2010-11-14 22:10:35 -0800
commit12e610e89e2a3ae9de569e12a57d310102952ce6 (patch)
treeb946605e1027b2a7c76e89cf7aab0abb962721e5 /src/term.c
parent92d3ab7e328831b39967bd92ad51c123a66756ce (diff)
downloademacs-12e610e89e2a3ae9de569e12a57d310102952ce6.tar.gz
emacs-12e610e89e2a3ae9de569e12a57d310102952ce6.tar.bz2
emacs-12e610e89e2a3ae9de569e12a57d310102952ce6.zip
Clean up src/systty.h macros.
* systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY) (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the definition in all uses. (EMACS_TTY_TABS_OK): Remove, it has a single user. * src/sysdep.c (discard_tty_input, child_setup_tty) (init_sys_modes, tabs_safe_p, reset_sys_modes): * src/emacs.c (shut_down_emacs): * src/callproc.c (child_setup): * src/term.c (dissociate_if_controlling_tty): Inline removed macros.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/term.c b/src/term.c
index 71df92822ac..4d452ed3e00 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3087,8 +3087,7 @@ static void
dissociate_if_controlling_tty (int fd)
{
#ifndef DOS_NT
- int pgid;
- EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */
+ int pgid = tcgetpgrp (fd); /* If tcgetpgrp succeeds, fd is the ctty. */
if (pgid != -1)
{
#if defined (USG5)
@@ -3832,7 +3831,3 @@ bigger, or it may make it blink, or it may do nothing at all. */);
encode_terminal_dst = NULL;
}
-
-
-/* arch-tag: 498e7449-6f2e-45e2-91dd-b7d4ca488193
- (do not change this comment) */