(struct terminal): Make it into a pseudovector.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Sep 2007 21:26:01 +0000 (21:26 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 20 Sep 2007 21:26:01 +0000 (21:26 +0000)
Remove `deleted' replaced by checking `name's nullness.

src/termhooks.h

index 96ea5d7..c4b3839 100644 (file)
@@ -318,6 +318,11 @@ struct w32_display_info;
 /* Terminal-local parameters. */
 struct terminal
 {
+  /* The first two fields are really the header of a vector */
+  /* The terminal code does not refer to them.  */
+  EMACS_INT size;
+  struct Lisp_Vector *vec_next;
+
   /* Chain of all terminal devices. */
   struct terminal *next_terminal;
 
@@ -327,10 +332,6 @@ struct terminal
   /* The number of frames that are on this terminal. */
   int reference_count;
 
-  /* Nonzero while deleting this terminal.  Used to protect against
-     recursive calls to delete_terminal_hook.  */
-  int deleted;
-
   /* The type of the terminal device. */
   enum output_method type;