[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ncurses-bug
Subject:    Re: alternate window creation
From:       Thomas Dickey <dickey () his ! com>
Date:       2009-02-25 0:52:02
Message-ID: 20090224194756.I91754 () mail101 ! his ! com
[Download RAW message or body]

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 *_line
>
> yes - 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


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-ncurses
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic