[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another ncurses bugs?
From: |
Thomas Dickey |
Subject: |
Re: another ncurses bugs? |
Date: |
Sat, 10 Jan 2004 16:28:58 -0500 |
User-agent: |
Mutt/1.5.4i |
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.net
ftp://invisible-island.net
signature.asc
Description: Digital signature