Subject: CVS commit: src/lib/libcurses
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 07/30/2003 11:19:02
Module Name:	src
Committed By:	dsl
Date:		Wed Jul 30 11:19:01 UTC 2003

Modified Files:
	src/lib/libcurses: curses_private.h delwin.c initscr.c newwin.c
	    screen.c

Log Message:
Remove __winlistp, add *screen to WINDOW and initialise in newwin().
Make delwin() remove window from list of windows on its screen.
Free win->lspace and win->lines for subwins (they only share text space).
Free things in the correct (and same) order if malloc() fails in __makenew().
Adjust delscreen() for delwin() removing itself from winlist.
Fixes potential massive corruptions if delwin() called on a main window.
NB: not responsible for the sysinst core dumps :-(


To generate a diff of this commit:
cvs rdiff -r1.31 -r1.32 src/lib/libcurses/curses_private.h
cvs rdiff -r1.11 -r1.12 src/lib/libcurses/delwin.c
cvs rdiff -r1.24 -r1.25 src/lib/libcurses/initscr.c
cvs rdiff -r1.38 -r1.39 src/lib/libcurses/newwin.c
cvs rdiff -r1.13 -r1.14 src/lib/libcurses/screen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.