Re: tigetstr() usage in init_xterm_support()



On Thu, 4 May 2006, Pavel Roskin wrote:

Hello, Pavel!

On Thu, 2006-05-04 at 16:41 +0200, Pavel Tsekov wrote:

init_xterm_support() uses tigetstr() to retrieve the xterm mouse
sequnce
from the terminfo database. Unfortunately, the prototype for
tigetstr() is
missing which is fatal for 64-bit builds of MC as the compiler assumes
that
tigetstr() returns int (32 bits) instead of pointer to char (64 bits).
Now,
the obvious solution is to include term.h which holds the prototype
for
tigetstr(), but unfortunately this doesn't work very well as term.h
defines
a series of macros which pollute the namespace badly i.e. lines,
buttons,
etc...

Please consider moving init_xterm_support() outside main.c, so that the
namespace pollution doesn't affect other code.

I've checked in a patch.




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