changeset 84953:0440e26f0af7

(struct terminal): Move all Lisp_Object fields traced by the GC to the beginning.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 27 Sep 2007 19:50:02 +0000
parents fd8f746ce48f
children e4706ef9521d
files src/ChangeLog src/termhooks.h
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Sep 27 18:56:16 2007 +0000
+++ b/src/ChangeLog	Thu Sep 27 19:50:02 2007 +0000
@@ -1,5 +1,8 @@
 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* termhooks.h (struct terminal): Move all Lisp_Object fields traced by
+	the GC to the beginning.
+
 	* indent.h:
 	* indent.c: Use EMACS_INT for ints coming from Elisp data.
 
--- a/src/termhooks.h	Thu Sep 27 18:56:16 2007 +0000
+++ b/src/termhooks.h	Thu Sep 27 19:50:02 2007 +0000
@@ -320,6 +320,12 @@
   EMACS_INT size;
   struct Lisp_Vector *vec_next;
 
+  /* Parameter alist of this terminal.  */
+  Lisp_Object param_alist;
+
+  /* All fields before `next_terminal' should be Lisp_Object and are traced
+     by the GC.  All fields afterwards are ignored by the GC.  */
+  
   /* Chain of all terminal devices. */
   struct terminal *next_terminal;
 
@@ -363,9 +369,6 @@
      the function `set-keyboard-coding-system'.  */
   struct coding_system *keyboard_coding;
 
-  /* Parameter alist of this terminal.  */
-  Lisp_Object param_alist;
-  
   /* Terminal characteristics. */
   /* XXX Are these really used on non-termcap displays? */