changeset 11165:d5cd4e375335

(wipe_kboard): Make this function static. (delete_kboard): New function, extracted from x_delete_display.
author Karl Heuer <kwzh@gnu.org>
date Fri, 31 Mar 1995 03:56:30 +0000
parents 039420ad38d0
children 0e9fad3ccf03
files src/keyboard.c
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Fri Mar 31 03:53:28 1995 +0000
+++ b/src/keyboard.c	Fri Mar 31 03:56:30 1995 +0000
@@ -6487,7 +6487,7 @@
  * We use this just before deleteing it, or if we're going to initialize
  * it a second time.
  */
-void
+static void
 wipe_kboard (kb)
      KBOARD *kb;
 {
@@ -6495,6 +6495,21 @@
     xfree (kb->kbd_macro_buffer);
 }
 
+#ifdef MULTI_KBOARD
+void
+delete_kboard (kb)
+  KBOARD *kb;
+{
+  KBOARD **kbp;
+  for (kbp = &all_kboards; *kbp != kb; kbp = &(*kbp)->next_kboard)
+    if (*kbp == NULL)
+      abort ();
+  *kbp = kb->next_kboard;
+  wipe_kboard (kb);
+  xfree (kb);
+}
+#endif
+
 init_keyboard ()
 {
   /* This is correct before outermost invocation of the editor loop */