* Copyright (c) 1981, 1993, 1994
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)delwin.c 8.2 (Berkeley) %G%";
* Delete a window and release it back to the system.
register WINDOW
*wp
, *np
;
* If we are the original window, delete the space for all
* the subwindows, the line space and the window space.
* If we are a subwindow, take ourselves out of the list.
* NOTE: if we are a subwindow, the minimum list is orig
* followed by this subwindow, so there are always at least
* two windows in the list.
for (wp
= win
->nextp
; wp
->nextp
!= win
; wp
= wp
->nextp
)