Re: tigetstr() usage in init_xterm_support()
- From: Pavel Tsekov <ptsekov gmx net>
- Cc: MC dev <mc-devel gnome org>
- Subject: Re: tigetstr() usage in init_xterm_support()
- Date: Mon, 15 May 2006 16:30:44 +0300 (EEST)
On Thu, 4 May 2006, Pavel Roskin wrote:
On Thu, 2006-05-04 at 16:41 +0200, Pavel Tsekov wrote:
init_xterm_support() uses tigetstr() to retrieve the xterm mouse
from the terminfo database. Unfortunately, the prototype for
missing which is fatal for 64-bit builds of MC as the compiler assumes
tigetstr() returns int (32 bits) instead of pointer to char (64 bits).
the obvious solution is to include term.h which holds the prototype
tigetstr(), but unfortunately this doesn't work very well as term.h
a series of macros which pollute the namespace badly i.e. lines,
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.
] [Thread Prev