diff options
| author | Dmitry Antipov | 2012-08-31 14:53:19 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-31 14:53:19 +0400 |
| commit | c650a5dec69902c684c5333befd35da6c518c5e0 (patch) | |
| tree | de6c150f78fa24b78a9dc3e3bdb319d5f40ab470 /src | |
| parent | c20643e2105117277d0b1d1880848e2ab31b967c (diff) | |
| download | emacs-c650a5dec69902c684c5333befd35da6c518c5e0.tar.gz emacs-c650a5dec69902c684c5333befd35da6c518c5e0.zip | |
Remove mark_ttys function and fix tty_display_info initialization.
* lisp.h (mark_ttys): Remove prototype.
* alloc.c (Fgarbage_collect): Remove redundant (and the only) call
to mark_ttys because all possible values of 'top_frame' slot are
the frames which are reachable from Vframe_list.
* term.c (mark_ttys): Remove.
(init_tty): Safely initialize 'top_frame' slot with Qnil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/alloc.c | 1 | ||||
| -rw-r--r-- | src/lisp.h | 1 | ||||
| -rw-r--r-- | src/term.c | 17 |
4 files changed, 11 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 00ce2e46f04..4db48bbb969 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | Remove mark_ttys function and fix tty_display_info initialization. | ||
| 4 | * lisp.h (mark_ttys): Remove prototype. | ||
| 5 | * alloc.c (Fgarbage_collect): Remove redundant (and the only) call | ||
| 6 | to mark_ttys because all possible values of 'top_frame' slot are | ||
| 7 | the frames which are reachable from Vframe_list. | ||
| 8 | * term.c (mark_ttys): Remove. | ||
| 9 | (init_tty): Safely initialize 'top_frame' slot with Qnil. | ||
| 10 | |||
| 11 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12 | |||
| 3 | Change struct frame bitfields from unsigned char to unsigned. | 13 | Change struct frame bitfields from unsigned char to unsigned. |
| 4 | * frame.h (struct frame): Change type of 'display_preempted', | 14 | * frame.h (struct frame): Change type of 'display_preempted', |
| 5 | 'visible', 'iconified', 'has_minibuffer', 'wants_modeline', | 15 | 'visible', 'iconified', 'has_minibuffer', 'wants_modeline', |
diff --git a/src/alloc.c b/src/alloc.c index 36ba22cc535..e8637471bc7 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5476,7 +5476,6 @@ See Info node `(elisp)Garbage Collection'. */) | |||
| 5476 | } | 5476 | } |
| 5477 | mark_terminals (); | 5477 | mark_terminals (); |
| 5478 | mark_kboards (); | 5478 | mark_kboards (); |
| 5479 | mark_ttys (); | ||
| 5480 | 5479 | ||
| 5481 | #ifdef USE_GTK | 5480 | #ifdef USE_GTK |
| 5482 | { | 5481 | { |
diff --git a/src/lisp.h b/src/lisp.h index 49a2832d686..80c49703f52 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3438,7 +3438,6 @@ extern Lisp_Object directory_files_internal (Lisp_Object, Lisp_Object, | |||
| 3438 | 3438 | ||
| 3439 | /* Defined in term.c */ | 3439 | /* Defined in term.c */ |
| 3440 | extern int *char_ins_del_vector; | 3440 | extern int *char_ins_del_vector; |
| 3441 | extern void mark_ttys (void); | ||
| 3442 | extern void syms_of_term (void); | 3441 | extern void syms_of_term (void); |
| 3443 | extern _Noreturn void fatal (const char *msgid, ...) | 3442 | extern _Noreturn void fatal (const char *msgid, ...) |
| 3444 | ATTRIBUTE_FORMAT_PRINTF (1, 2); | 3443 | ATTRIBUTE_FORMAT_PRINTF (1, 2); |
diff --git a/src/term.c b/src/term.c index 23e074287c1..f1a09b39cf9 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3001,6 +3001,7 @@ init_tty (const char *name, const char *terminal_type, int must_succeed) | |||
| 3001 | #else | 3001 | #else |
| 3002 | tty = xzalloc (sizeof *tty); | 3002 | tty = xzalloc (sizeof *tty); |
| 3003 | #endif | 3003 | #endif |
| 3004 | tty->top_frame = Qnil; | ||
| 3004 | tty->next = tty_list; | 3005 | tty->next = tty_list; |
| 3005 | tty_list = tty; | 3006 | tty_list = tty; |
| 3006 | 3007 | ||
| @@ -3541,22 +3542,6 @@ delete_tty (struct terminal *terminal) | |||
| 3541 | xfree (tty); | 3542 | xfree (tty); |
| 3542 | } | 3543 | } |
| 3543 | 3544 | ||
| 3544 | |||
| 3545 | |||
| 3546 | /* Mark the pointers in the tty_display_info objects. | ||
| 3547 | Called by Fgarbage_collect. */ | ||
| 3548 | |||
| 3549 | void | ||
| 3550 | mark_ttys (void) | ||
| 3551 | { | ||
| 3552 | struct tty_display_info *tty; | ||
| 3553 | |||
| 3554 | for (tty = tty_list; tty; tty = tty->next) | ||
| 3555 | mark_object (tty->top_frame); | ||
| 3556 | } | ||
| 3557 | |||
| 3558 | |||
| 3559 | |||
| 3560 | void | 3545 | void |
| 3561 | syms_of_term (void) | 3546 | syms_of_term (void) |
| 3562 | { | 3547 | { |