aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorJoakim Verona2013-08-15 07:41:16 +0200
committerJoakim Verona2013-08-15 07:41:16 +0200
commit31800c9173af4d2c445bb52b2c338a3f0bde5b12 (patch)
tree18ba130472110da57d198d680933c78dd2a8cb62 /src/term.c
parent0b15597dcec4aaa6c4f35138da2471f6dd4fb003 (diff)
parent9c25330708e49ddaeb71f16a65cdc1b51be2a27d (diff)
downloademacs-31800c9173af4d2c445bb52b2c338a3f0bde5b12.tar.gz
emacs-31800c9173af4d2c445bb52b2c338a3f0bde5b12.zip
merge from trunk
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/term.c b/src/term.c
index fb69aefbe7a..2966466aed2 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2233,8 +2233,7 @@ get_named_tty (const char *name)
2233{ 2233{
2234 struct terminal *t; 2234 struct terminal *t;
2235 2235
2236 if (!name) 2236 eassert (name);
2237 emacs_abort ();
2238 2237
2239 for (t = terminal_list; t; t = t->next_terminal) 2238 for (t = terminal_list; t; t = t->next_terminal)
2240 { 2239 {
@@ -2786,8 +2785,7 @@ create_tty_output (struct frame *f)
2786{ 2785{
2787 struct tty_output *t = xzalloc (sizeof *t); 2786 struct tty_output *t = xzalloc (sizeof *t);
2788 2787
2789 if (! FRAME_TERMCAP_P (f)) 2788 eassert (FRAME_TERMCAP_P (f));
2790 emacs_abort ();
2791 2789
2792 t->display_info = FRAME_TERMINAL (f)->display_info.tty; 2790 t->display_info = FRAME_TERMINAL (f)->display_info.tty;
2793 2791
@@ -2799,8 +2797,7 @@ create_tty_output (struct frame *f)
2799static void 2797static void
2800tty_free_frame_resources (struct frame *f) 2798tty_free_frame_resources (struct frame *f)
2801{ 2799{
2802 if (! FRAME_TERMCAP_P (f)) 2800 eassert (FRAME_TERMCAP_P (f));
2803 emacs_abort ();
2804 2801
2805 if (FRAME_FACE_CACHE (f)) 2802 if (FRAME_FACE_CACHE (f))
2806 free_frame_faces (f); 2803 free_frame_faces (f);
@@ -2815,8 +2812,7 @@ tty_free_frame_resources (struct frame *f)
2815static void 2812static void
2816tty_free_frame_resources (struct frame *f) 2813tty_free_frame_resources (struct frame *f)
2817{ 2814{
2818 if (! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f)) 2815 eassert (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f));
2819 emacs_abort ();
2820 2816
2821 if (FRAME_FACE_CACHE (f)) 2817 if (FRAME_FACE_CACHE (f))
2822 free_frame_faces (f); 2818 free_frame_faces (f);
@@ -3443,8 +3439,7 @@ delete_tty (struct terminal *terminal)
3443 if (!terminal->name) 3439 if (!terminal->name)
3444 return; 3440 return;
3445 3441
3446 if (terminal->type != output_termcap) 3442 eassert (terminal->type == output_termcap);
3447 emacs_abort ();
3448 3443
3449 tty = terminal->display_info.tty; 3444 tty = terminal->display_info.tty;
3450 3445