tech-userlevel archive

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

Re: namespace pollution by curses



In article <20190308135342.GA17218%mail.duskware.de@localhost>,
Martin Husemann  <martin%duskware.de@localhost> wrote:
>On Fri, Mar 08, 2019 at 10:41:51PM +0900, Rin Okuyama wrote:
>
>> I've found that this is because curses uses a global variable "state":
>> https://nxr.netbsd.org/xref/src/lib/libcurses/getch.c#50
>> https://nxr.netbsd.org/xref/src/lib/libcurses/get_wch.c#52
>
>Can both variants of inkey() co-exist?
>I would just make both decalarations static.

Or you can change the symbol visibility :-) But unless Brett objects
the patch is good.

christos



Home | Main Index | Thread Index | Old Index