diff options
| author | Dan Nicolaescu | 2010-11-14 22:10:35 -0800 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-11-14 22:10:35 -0800 |
| commit | 12e610e89e2a3ae9de569e12a57d310102952ce6 (patch) | |
| tree | b946605e1027b2a7c76e89cf7aab0abb962721e5 /src/term.c | |
| parent | 92d3ab7e328831b39967bd92ad51c123a66756ce (diff) | |
| download | emacs-12e610e89e2a3ae9de569e12a57d310102952ce6.tar.gz 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.c | 7 |
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 | |||
| 3087 | dissociate_if_controlling_tty (int fd) | 3087 | dissociate_if_controlling_tty (int fd) |
| 3088 | { | 3088 | { |
| 3089 | #ifndef DOS_NT | 3089 | #ifndef DOS_NT |
| 3090 | int pgid; | 3090 | int pgid = tcgetpgrp (fd); /* If tcgetpgrp succeeds, fd is the ctty. */ |
| 3091 | EMACS_GET_TTY_PGRP (fd, &pgid); /* If tcgetpgrp succeeds, fd is the ctty. */ | ||
| 3092 | if (pgid != -1) | 3091 | if (pgid != -1) |
| 3093 | { | 3092 | { |
| 3094 | #if defined (USG5) | 3093 | #if defined (USG5) |
| @@ -3832,7 +3831,3 @@ bigger, or it may make it blink, or it may do nothing at all. */); | |||
| 3832 | encode_terminal_dst = NULL; | 3831 | encode_terminal_dst = NULL; |
| 3833 | } | 3832 | } |
| 3834 | 3833 | ||
| 3835 | |||
| 3836 | |||
| 3837 | /* arch-tag: 498e7449-6f2e-45e2-91dd-b7d4ca488193 | ||
| 3838 | (do not change this comment) */ | ||