changeset 103617:9342805096db

(create_tty_output) [MSDOS]: #ifdef away. (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 28 Jun 2009 19:06:50 +0000
parents af77bf73dfe0
children cb172648c178
files src/term.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Sun Jun 28 17:52:45 2009 +0000
+++ b/src/term.c	Sun Jun 28 19:06:50 2009 +0000
@@ -3178,6 +3178,7 @@
 #endif /* HAVE_GPM */
 
 
+#ifndef MSDOS
 /***********************************************************************
 			    Initialization
  ***********************************************************************/
@@ -3215,6 +3216,20 @@
   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.  */