bug-ncurses
[Top][All Lists]
Advanced

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

Re: Portable menu and forms libraries


From: Thomas Dickey
Subject: Re: Portable menu and forms libraries
Date: Sat, 27 Jul 2024 13:58:25 -0400

On Fri, Jul 26, 2024 at 06:34:07PM -0400, Bill Gray wrote:
> On 7/26/24 16:36, Thomas Dickey wrote:> But the prototype (X/Open) uses
> "int", and this causes warnings in the
> > stricter builds:
> 
>    Took me a little while to see why I didn't encounter that : my builds
> were using the macro definitions for those functions.  Add
> -DNCURSES_NOMACROS,  and hey presto,  I get those warnings. (Interestingly,
> I see that PDCurses* has those functions take attr_t values rather than
> integers.)
> 
>    Changing,  for example,
> 
> wattron(menu->win, (int)menu->back);
> 
>    to
> 
> wattr_on(menu->win, menu->back, NULL);
> 
>    appears to get around this obstacle,  resulting in the following patch.

That looks okay to me (thanks)

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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