|
From: | Thomas Dickey |
Subject: | Re: alternate window creation |
Date: | Tue, 24 Feb 2009 19:52:02 -0500 (EST) |
On Tue, 24 Feb 2009, Thomas Dickey wrote:
On Tue, 24 Feb 2009, Bryan Christ wrote:I guess my answer would be don't call delwin() but instead call free() (or don't call anything for autos). Would there be a reclamation problem with that? For example: struct ldat *_lineyes - none of the implementations that I recall allocates a window as a single chunk of memory.
as an aside, it's possible to write a function that uses only the documented interfaces to build a structure in memory that contains all of a window's cell-data.
The members of WINDOW are technically undocumented (which is used in the NCURSES_OPAQUE feature), but iirc there aren't any "interesting" bits that aren't available through the corresponding opaque functions.
Putting the two together as one struct that also works with whatever curses implementation isn't portable though -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |