diff options
| author | Karoly Lorentey | 2004-01-01 17:55:53 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-01 17:55:53 +0000 |
| commit | 28d7d09f841801cd052bb4ba0df92016b9245870 (patch) | |
| tree | eed006b0a32c39edb7a37d893bb2b192c63b69a5 /src/sysdep.c | |
| parent | 819b8f00ed7b8a9a2190efaa02376ed332ecf763 (diff) | |
| download | emacs-28d7d09f841801cd052bb4ba0df92016b9245870.tar.gz emacs-28d7d09f841801cd052bb4ba0df92016b9245870.zip | |
Separate frame-local, tty-dependent parameters from tty-local parameters.
src/termchar.h (struct tty_output): Redefined to contain frame-local
tty-dependent parameters. (Currently there are no such parameters, so
it consists of the tty_display_info pointer.)
(struct tty_display_info): New structure, with reference_count.
(FRAME_TTY): Updated to reflect new termcap frame structure.
src/term.c: Update prototypes. Use tty_display_info instead of tty_output.
src/cm.c (current_tty, cmcheckmagic, cmcostinit, calccost, cmgoto, Wcm_clear)
(Wcm_init): Use tty_display_info instead of tty_output.
src/cm.h: Update prototypes.
src/dispextern.h: Ditto.
src/dispnew.c (window_change_signal, init_display, make_terminal_frame):
Use tty_display_info instead of tty_output.
src/frame.c (Fdelete_frame): Use tty_display_info instead of
tty_output. Fix delete_tty check.
(make_terminal_frame): Allocate f->output_data.tty. Increase
reference count of tty device.
(delete_frame): Free f->output_data.tty. Use reference count to
decide if the tty should be closed.
src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): New,
unconditional definitions.
(struct device): New declaration (at the moment, it is defined as
empty in termhooks.h).
(struct frame): Added display, background_pixel, foreground_pixel member.
src/keyboard.c (read_avail_input): Use tty_display_info instead of tty_output.
src/lisp.h: Declare struct display. Update prototypes.
src/sysdep.c: Update prototypes.
(discard_tty_input, init_all_sys_modes, init_sys_modes, reset_all_sys_modes)
(reset_sys_modes, hft_init, hft_reset): Use tty_display_info instead
of tty_output.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-29
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 98a671ddbdc..7710c2ad8ce 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -252,8 +252,8 @@ int emacs_ospeed; | |||
| 252 | void croak P_ ((char *)); | 252 | void croak P_ ((char *)); |
| 253 | 253 | ||
| 254 | #ifdef AIXHFT | 254 | #ifdef AIXHFT |
| 255 | void hft_init P_ ((struct tty_output *)); | 255 | void hft_init P_ ((struct tty_display_info *)); |
| 256 | void hft_reset P_ ((struct tty_output *)); | 256 | void hft_reset P_ ((struct tty_display_info *)); |
| 257 | #endif | 257 | #endif |
| 258 | 258 | ||
| 259 | /* Temporary used by `sigblock' when defined in terms of signprocmask. */ | 259 | /* Temporary used by `sigblock' when defined in terms of signprocmask. */ |
| @@ -285,7 +285,7 @@ discard_tty_input () | |||
| 285 | #else /* not VMS */ | 285 | #else /* not VMS */ |
| 286 | #ifdef APOLLO | 286 | #ifdef APOLLO |
| 287 | { | 287 | { |
| 288 | struct tty_output *tty; | 288 | struct tty_display_info *tty; |
| 289 | for (tty = tty_list; tty; tty = tty->next) | 289 | for (tty = tty_list; tty; tty = tty->next) |
| 290 | { | 290 | { |
| 291 | int zero = 0; | 291 | int zero = 0; |
| @@ -298,7 +298,7 @@ discard_tty_input () | |||
| 298 | ; | 298 | ; |
| 299 | #else /* not MSDOS */ | 299 | #else /* not MSDOS */ |
| 300 | { | 300 | { |
| 301 | struct tty_output *tty; | 301 | struct tty_display_info *tty; |
| 302 | for (tty = tty_list; tty; tty = tty->next) | 302 | for (tty = tty_list; tty; tty = tty->next) |
| 303 | { | 303 | { |
| 304 | EMACS_GET_TTY (fileno (TTY_INPUT (tty)), &buf); | 304 | EMACS_GET_TTY (fileno (TTY_INPUT (tty)), &buf); |
| @@ -1295,14 +1295,14 @@ static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; | |||
| 1295 | void | 1295 | void |
| 1296 | init_all_sys_modes (void) | 1296 | init_all_sys_modes (void) |
| 1297 | { | 1297 | { |
| 1298 | struct tty_output *tty; | 1298 | struct tty_display_info *tty; |
| 1299 | for (tty = tty_list; tty; tty = tty->next) | 1299 | for (tty = tty_list; tty; tty = tty->next) |
| 1300 | init_sys_modes (tty); | 1300 | init_sys_modes (tty); |
| 1301 | } | 1301 | } |
| 1302 | 1302 | ||
| 1303 | void | 1303 | void |
| 1304 | init_sys_modes (tty_out) | 1304 | init_sys_modes (tty_out) |
| 1305 | struct tty_output *tty_out; | 1305 | struct tty_display_info *tty_out; |
| 1306 | { | 1306 | { |
| 1307 | struct emacs_tty tty; | 1307 | struct emacs_tty tty; |
| 1308 | 1308 | ||
| @@ -1796,7 +1796,7 @@ set_window_size (fd, height, width) | |||
| 1796 | void | 1796 | void |
| 1797 | reset_all_sys_modes (void) | 1797 | reset_all_sys_modes (void) |
| 1798 | { | 1798 | { |
| 1799 | struct tty_output *tty; | 1799 | struct tty_display_info *tty; |
| 1800 | for (tty = tty_list; tty; tty = tty->next) | 1800 | for (tty = tty_list; tty; tty = tty->next) |
| 1801 | reset_sys_modes (tty); | 1801 | reset_sys_modes (tty); |
| 1802 | } | 1802 | } |
| @@ -1805,7 +1805,7 @@ reset_all_sys_modes (void) | |||
| 1805 | bottom of the frame, turn off interrupt-driven I/O, etc. */ | 1805 | bottom of the frame, turn off interrupt-driven I/O, etc. */ |
| 1806 | void | 1806 | void |
| 1807 | reset_sys_modes (tty_out) | 1807 | reset_sys_modes (tty_out) |
| 1808 | struct tty_output *tty_out; | 1808 | struct tty_display_info *tty_out; |
| 1809 | { | 1809 | { |
| 1810 | if (noninteractive) | 1810 | if (noninteractive) |
| 1811 | { | 1811 | { |
| @@ -5110,7 +5110,7 @@ srandom (seed) | |||
| 5110 | 5110 | ||
| 5111 | /* Called from init_sys_modes. */ | 5111 | /* Called from init_sys_modes. */ |
| 5112 | void | 5112 | void |
| 5113 | hft_init (struct tty_output *tty_out) | 5113 | hft_init (struct tty_display_info *tty_out) |
| 5114 | { | 5114 | { |
| 5115 | int junk; | 5115 | int junk; |
| 5116 | 5116 | ||
| @@ -5165,7 +5165,7 @@ hft_init (struct tty_output *tty_out) | |||
| 5165 | /* Reset the rubout key to backspace. */ | 5165 | /* Reset the rubout key to backspace. */ |
| 5166 | 5166 | ||
| 5167 | void | 5167 | void |
| 5168 | hft_reset (struct tty_output *tty_out) | 5168 | hft_reset (struct tty_display_info *tty_out) |
| 5169 | { | 5169 | { |
| 5170 | struct hfbuf buf; | 5170 | struct hfbuf buf; |
| 5171 | struct hfkeymap keymap; | 5171 | struct hfkeymap keymap; |