comparison src/term.c @ 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 d6ac90c70d24
children 3e06f0e66062
comparison
equal deleted inserted replaced
103616:af77bf73dfe0 103617:9342805096db
3176 return Qnil; 3176 return Qnil;
3177 } 3177 }
3178 #endif /* HAVE_GPM */ 3178 #endif /* HAVE_GPM */
3179 3179
3180 3180
3181 #ifndef MSDOS
3181 /*********************************************************************** 3182 /***********************************************************************
3182 Initialization 3183 Initialization
3183 ***********************************************************************/ 3184 ***********************************************************************/
3184 3185
3185 /* Initialize the tty-dependent part of frame F. The frame must 3186 /* Initialize the tty-dependent part of frame F. The frame must
3213 free_frame_faces (f); 3214 free_frame_faces (f);
3214 3215
3215 xfree (f->output_data.tty); 3216 xfree (f->output_data.tty);
3216 } 3217 }
3217 3218
3219 #else /* MSDOS */
3220
3221 /* Delete frame F's face cache. */
3222
3223 static void
3224 tty_free_frame_resources (struct frame *f)
3225 {
3226 if (! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f))
3227 abort ();
3228
3229 if (FRAME_FACE_CACHE (f))
3230 free_frame_faces (f);
3231 }
3232 #endif /* MSDOS */
3218 3233
3219 /* Reset the hooks in TERMINAL. */ 3234 /* Reset the hooks in TERMINAL. */
3220 3235
3221 static void 3236 static void
3222 clear_tty_hooks (struct terminal *terminal) 3237 clear_tty_hooks (struct terminal *terminal)