On Tue, Jan 06, 2004 at 05:51:42PM +0300, Stanislav Ievlev wrote:
> Hello, friends !
>
> -------------------------- curses.h ------------------------
> extern NCURSES_EXPORT(int) addstr (const char *); /* ...
> ------------------------------------------------------------
>
> --------------------------c++/cursesw.h---------------------
> #ifdef addstr
> /* The (char*) cast is to hack around missing const's */
> inline int UNDEF(addstr)(const char * str) { return addstr((char*)str); }
> #undef addstr
> #define addstr UNDEF(addstr)
> #endif
> ------------------------------------------------------------
>
> All this code in c++ bindings looks orphaned.
I wish it were - but not really. I can (have just done) remove the casts,
but the renamed entrypoints are a longstanding part of the library interface.
(And a quick look seems to show that some of the wrappers add functionality).
--
Thomas E. Dickey <address@hidden>
http://invisible-island.netftp://invisible-island.net