From 503046802390401c7819ce404798c1c01d7d0f60 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Jun 2009 18:46:00 +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 dd069728a69..02090d5905e 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 Michael Albinus * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function diff --git a/src/term.c b/src/term.c index f9875f8bc06..ac285dbaccd 100644 --- a/src/term.c +++ b/src/term.c @@ -3181,6 +3181,7 @@ DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop, #endif /* HAVE_GPM */ +#ifndef MSDOS /*********************************************************************** Initialization ***********************************************************************/ @@ -3218,6 +3219,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