bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ugly tinfo ABI problem


From: Stanislav Ievlev
Subject: Re: ugly tinfo ABI problem
Date: Tue, 18 Jan 2005 16:04:51 +0300

On Tue, Jan 18, 2005 at 06:39:37AM -0500, Thomas Dickey wrote:
> On Mon, 17 Jan 2005, Stanislav Ievlev wrote:
> 
> >In current snapshot libtinfo and libtinfow are binary incompatible,
> >because structures "screen" and "SLK" use NCURSES_CH_T type.
> 
> (having had some time to recall the pieces, I see why it's not a problem).
> 
> The struct's declared in curses.priv.h are all secrets of libncurses and 
> its variations.  They're passed around as pointers; the application cannot 
> (unless it includes curses.priv.h, which is against the rules) know the 
> size of these.  So the ABI hasn't changed.  I've made several changes over 
> the past 4-5 years within those guidelines.
> 
Unfortunately, problem not in tinfo ABI.
Problem is in scheme we want to have:
ncurses+tinfo
ncursesw+tinfo (note that tinfo are without "w").

ncurses and ncursesw libraries both use internal screen structure, and
depends of member offsets in it.

It's possible a misdesign, that hight level libraries not use general public 
interface.

So, tinfo and tinfow are binary compatible for external programs, but not for 
curses ;)

--
With best regards
Stanislav Ievlev.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]