[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109829: Remove mark_ttys function an
From: |
Dmitry Antipov |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109829: Remove mark_ttys function and fix tty_display_info initialization. |
Date: |
Fri, 31 Aug 2012 14:53:19 +0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109829
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Fri 2012-08-31 14:53:19 +0400
message:
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.
modified:
src/ChangeLog
src/alloc.c
src/lisp.h
src/term.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-08-31 04:40:52 +0000
+++ b/src/ChangeLog 2012-08-31 10:53:19 +0000
@@ -1,5 +1,15 @@
2012-08-31 Dmitry Antipov <address@hidden>
+ 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.
+
+2012-08-31 Dmitry Antipov <address@hidden>
+
Change struct frame bitfields from unsigned char to unsigned.
* frame.h (struct frame): Change type of 'display_preempted',
'visible', 'iconified', 'has_minibuffer', 'wants_modeline',
=== modified file 'src/alloc.c'
--- a/src/alloc.c 2012-08-27 09:30:26 +0000
+++ b/src/alloc.c 2012-08-31 10:53:19 +0000
@@ -5476,7 +5476,6 @@
}
mark_terminals ();
mark_kboards ();
- mark_ttys ();
#ifdef USE_GTK
{
=== modified file 'src/lisp.h'
--- a/src/lisp.h 2012-08-28 00:33:56 +0000
+++ b/src/lisp.h 2012-08-31 10:53:19 +0000
@@ -3438,7 +3438,6 @@
/* Defined in term.c */
extern int *char_ins_del_vector;
-extern void mark_ttys (void);
extern void syms_of_term (void);
extern _Noreturn void fatal (const char *msgid, ...)
ATTRIBUTE_FORMAT_PRINTF (1, 2);
=== modified file 'src/term.c'
--- a/src/term.c 2012-08-17 23:38:43 +0000
+++ b/src/term.c 2012-08-31 10:53:19 +0000
@@ -3001,6 +3001,7 @@
#else
tty = xzalloc (sizeof *tty);
#endif
+ tty->top_frame = Qnil;
tty->next = tty_list;
tty_list = tty;
@@ -3541,22 +3542,6 @@
xfree (tty);
}
-
-
-/* Mark the pointers in the tty_display_info objects.
- Called by Fgarbage_collect. */
-
-void
-mark_ttys (void)
-{
- struct tty_display_info *tty;
-
- for (tty = tty_list; tty; tty = tty->next)
- mark_object (tty->top_frame);
-}
-
-
-
void
syms_of_term (void)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109829: Remove mark_ttys function and fix tty_display_info initialization.,
Dmitry Antipov <=