]> code.delx.au - gnu-emacs/blobdiff - src/terminal.c
Tune pseudovector allocation assuming Qnil == 0
[gnu-emacs] / src / terminal.c
index 92befd28543b6eb1b3cdf615e1dc476f1a7180c6..b48d0623e126822ec197cb8859eacfe2c253361a 100644 (file)
@@ -254,6 +254,15 @@ get_named_terminal (const char *name)
   return NULL;
 }
 
+/* Allocate basically initialized terminal.  */
+
+static struct terminal *
+allocate_terminal (void)
+{
+  return ALLOCATE_ZEROED_PSEUDOVECTOR
+    (struct terminal, next_terminal, PVEC_TERMINAL);
+}
+
 /* Create a new terminal object of TYPE and add it to the terminal list.  RIF
    may be NULL if this terminal type doesn't support window-based redisplay.  */