Commit e50b8090 authored by Karl Heuer's avatar Karl Heuer

(wipe_kboard): Make this function static.

(delete_kboard): New function, extracted from x_delete_display.
parent 5647f04f
......@@ -6487,7 +6487,7 @@ init_kboard (kb)
* 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 @@ wipe_kboard (kb)
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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment