On 2011-10-10 11:53 +0200, Thomas Dickey wrote:
>> The problem is that we have two versions of the headers, one in
>> libncurses5-dev and one in libncursesw5-dev, and there does not seem to
>> be a shareable subset suitable for libtinfo-dev.
>> E.g. /usr/include/term.h #includes <ncurses_dll.h>, and
>> /usr/include/ncursesw/term.h #includes <ncursesw/ncurses_dll.h>.
>
> but ncurses_dll.h is identical in the two. It is ncurses.h that differs.
> (other than the #include line of course, which is generated).
So there might be a shareable subset after all (with some compatibility
symlinks required in /usr/include/ncursesw probably), but there are some
files which #include curses.h, namely form.h, menu.h, panel.h, tic.h and
unctrl.h. Those do not look shareable, since you may end up including
the wrong ncurses.h.
Also terminfo(3) says
The header files curses.h and term.h should be included (in this
order) to get the definitions for these strings, numbers, and flags.
So I don't think it is really possible to include a "complete" set of
headers in libtinfo-dev, and IMO it's not worth to include an incomplete
one.
Cheers,
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]