From 89ba96f4234f523ff40fda977fd461b2df442e13 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Jun 2009 19:07:16 +0000 Subject: [PATCH] (create_tty_output) [MSDOS]: #ifdef away. (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version. --- src/ChangeLog | 5 +++++ src/term.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 2c25979d9c5..c6a10fc978b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-06-28 Eli Zaretskii + + * term.c (create_tty_output) [MSDOS]: #ifdef away. + (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version. + 2009-06-28 Chong Yidong * xterm.c (x_update_window_begin, x_new_focus_frame) diff --git a/src/term.c b/src/term.c index 3f97a74cbd6..fc778012e23 100644 --- a/src/term.c +++ b/src/term.c @@ -3178,6 +3178,7 @@ DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, #endif /* HAVE_GPM */ +#ifndef MSDOS /*********************************************************************** Initialization ***********************************************************************/ @@ -3215,6 +3216,20 @@ tty_free_frame_resources (struct frame *f) xfree (f->output_data.tty); } +#else /* MSDOS */ + +/* Delete frame F's face cache. */ + +static void +tty_free_frame_resources (struct frame *f) +{ + if (! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f)) + abort (); + + if (FRAME_FACE_CACHE (f)) + free_frame_faces (f); +} +#endif /* MSDOS */ /* Reset the hooks in TERMINAL. */ -- 2.39.2