bug-ncurses
[Top][All Lists]
Advanced

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

Re: color in subwindows


From: Thomas Dickey
Subject: Re: color in subwindows
Date: Tue, 17 Jun 2003 14:58:17 -0400
User-agent: Mutt/1.3.28i

On Tue, Jun 17, 2003 at 12:41:53PM -0600, D. Stimits wrote:
 
> Fair enough. One argument (no pun intended) I'll add is that a "const 
> char *" fmt argument does not violate a "char *" spec if the fmt 
> argument is not modified. Tell me who to petition for the curses spec, 
> and I'll start hounding them to make the non-modified arguments 

I'm not sure - it doesn't seem to be a priority of anyone at X/Open.

> const...non-const pointers in this case are just bad practice that the 
> older C code won't care about unless const warnings are turned on (and a 
> specification should care about every warning). In any case, the ncurses 
> man pages say fmt is a const, but the actual implementation is NOT a 
> const due to redefinition of the <curses.h> header (the installed 
> <curses.h> header is not the source of the non-const, and if the header 
> were not redefined in the implementation to be non-const, things would 
> be perfect).

It was NCURSES_CONST until

20021116
        + change type for *printw functions from NCURSES_CONST to const
          (prompted by comment by Pedro Palhoto Matos <address@hidden>,
          but really from a note on X/Open's website stating that either is
          acceptable, and the latter will be used in a future revision).

Perhaps you're still working from the 5.3 release w/o patches?

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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